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..03e6ed94097fbda9ac40afe19f4d4b54db306be4 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 the default value of CanActivate(). |
sky
2014/05/20 15:02:55
Why default here? Isn't this just set_can_activate
pkotwicz
2014/05/20 16:13:52
I do not think that's possible. In particular, I t
pkotwicz
2014/05/20 16:33:30
ToastContentsView is the only easy override to cha
sky
2014/05/20 17:33:20
I still prefer set_can_activate. Rationale being t
|
+ void set_default_can_activate(bool can_activate) { |
+ default_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 default_can_activate_; |
+ |
DISALLOW_COPY_AND_ASSIGN(WidgetDelegate); |
}; |