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

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
« no previous file with comments | « ui/views/widget/widget.cc ('k') | ui/views/widget/widget_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..b9903096c14c6920a544afbf2270f78859bff4e2 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 return value of CanActivate(). Default is true.
+ 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);
};
« no previous file with comments | « ui/views/widget/widget.cc ('k') | ui/views/widget/widget_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698