Index: ui/views/widget/widget_delegate.h |
diff --git a/ui/views/widget/widget_delegate.h b/ui/views/widget/widget_delegate.h |
index 1637ae9886e14b95dd169e17343ddd717b16d8a8..7aebf7de30bbc12fb915cb936a8953efff5ea00c 100644 |
--- a/ui/views/widget/widget_delegate.h |
+++ b/ui/views/widget/widget_delegate.h |
@@ -30,6 +30,11 @@ class VIEWS_EXPORT WidgetDelegate { |
public: |
WidgetDelegate(); |
+ // Sets whether the widget is activatable. |
sky
2014/05/20 17:43:20
Sets the return value of CanActivate. Default is t
|
+ void set_can_activate(bool can_activate) { |
+ can_activate_ = can_activate; |
+ } |
+ |
// Called whenever the widget's position changes. |
virtual void OnWidgetMove(); |
@@ -181,6 +186,8 @@ class VIEWS_EXPORT WidgetDelegate { |
private: |
View* default_contents_view_; |
+ bool can_activate_; |
+ |
DISALLOW_COPY_AND_ASSIGN(WidgetDelegate); |
}; |