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

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

Issue 297503003: Revert: [Refactor] Consolidate the logic for whether a widget can be activated. This is a first ste (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/native_widget_aura_unittest.cc ('k') | ui/views/widget/widget.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/widget/widget.h
diff --git a/ui/views/widget/widget.h b/ui/views/widget/widget.h
index 9ade039d4a3c0e07813d7c0fceffde2d39a091c0..0d383adc522fba0895a7d3c4ee7cdb1a7d88d776 100644
--- a/ui/views/widget/widget.h
+++ b/ui/views/widget/widget.h
@@ -162,14 +162,6 @@ class VIEWS_EXPORT Widget : public internal::NativeWidgetDelegate,
TRANSLUCENT_WINDOW,
};
- enum Activatable {
- // Infer whether the window should be activatable from the window type.
- ACTIVATABLE_DEFAULT,
-
- ACTIVATABLE_YES,
- ACTIVATABLE_NO
- };
-
enum Ownership {
// Default. Creator is not responsible for managing the lifetime of the
// Widget, it is destroyed when the corresponding NativeWidget is
@@ -195,7 +187,7 @@ class VIEWS_EXPORT Widget : public internal::NativeWidgetDelegate,
// non-window widgets.
WindowOpacity opacity;
bool accept_events;
- Activatable activatable;
+ bool can_activate;
bool keep_on_top;
bool visible_on_all_workspaces;
Ownership ownership;
@@ -882,9 +874,6 @@ class VIEWS_EXPORT Widget : public internal::NativeWidgetDelegate,
// |saved_show_state_| is maximized.
gfx::Rect initial_restored_bounds_;
- // True if the widget can be activated.
- bool can_activate_;
-
// Focus is automatically set to the view provided by the delegate
// when the widget is shown. Set this value to false to override
// initial focus for the widget.
« no previous file with comments | « ui/views/widget/native_widget_aura_unittest.cc ('k') | ui/views/widget/widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698