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

Unified Diff: ash/wm/window_properties.h

Issue 2613793002: Removes/promotes functions from WmWindowMus to WmWindowAura (Closed)
Patch Set: move WmWindowAuraTestApi to ash/test Created 3 years, 11 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 | « ash/test/wm_window_aura_test_api.cc ('k') | ash/wm/window_properties.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/window_properties.h
diff --git a/ash/wm/window_properties.h b/ash/wm/window_properties.h
index 3ec15c05c9b5d2401fbd09001c6d2428a7cc89ec..e4cf4dbf13bdb7a55b21adc5fb8d1e602c573333 100644
--- a/ash/wm/window_properties.h
+++ b/ash/wm/window_properties.h
@@ -22,6 +22,22 @@ namespace wm {
class WindowState;
} // namespace wm
+// Used with kWidgetCreationType to indicate source of the widget creation.
+enum class WidgetCreationType {
+ // The widget was created internally, and not at the request of a client.
+ // For example, overview mode creates a number of widgets. These widgets are
+ // created with a type of INTERNAL. This is the default.
+ INTERNAL,
+
+ // The widget was created for a client. In other words there is a client
+ // embedded in the aura::Window. For example, when Chrome creates a new
+ // browser window the window manager is asked to create the aura::Window.
+ // The window manager creates an aura::Window and a views::Widget to show
+ // the non-client frame decorations. In this case the creation type is
+ // FOR_CLIENT.
+ FOR_CLIENT,
+};
+
// Shell-specific window property keys; some keys are exported for use in tests.
// Alphabetical sort.
@@ -58,6 +74,9 @@ extern const aura::WindowProperty<bool>* const kSnapChildrenToPixelBoundary;
// Property to tell if the container uses the screen coordinates.
extern const aura::WindowProperty<bool>* const kUsesScreenCoordinatesKey;
+ASH_EXPORT extern const aura::WindowProperty<WidgetCreationType>* const
+ kWidgetCreationTypeKey;
+
// A property key to store WindowState in the window. The window state
// is owned by the window.
extern const aura::WindowProperty<wm::WindowState*>* const kWindowStateKey;
« no previous file with comments | « ash/test/wm_window_aura_test_api.cc ('k') | ash/wm/window_properties.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698