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

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..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);
};

Powered by Google App Engine
This is Rietveld 408576698