Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(286)

Unified Diff: ui/views/widget/widget_delegate.h

Issue 293833002: Fix Widget::InitParams::activatable logic (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
};

Powered by Google App Engine
This is Rietveld 408576698