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

Unified Diff: ash/wm/wm_types.h

Issue 149303003: [Refactor] Move the logic to update bounds for show type from WorkspaceLayoutManager to DefaultState (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: handle show_inactive Created 6 years, 10 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/wm/window_state_observer.h ('k') | ash/wm/workspace/workspace_layout_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/wm_types.h
diff --git a/ash/wm/wm_types.h b/ash/wm/wm_types.h
index 8a4d22df7ca269855c754c8db5d5745abe202e42..380728fe71ed4869ec301efadf0e71a80d717644 100644
--- a/ash/wm/wm_types.h
+++ b/ash/wm/wm_types.h
@@ -43,6 +43,22 @@ enum WindowShowType {
// Set of operations that can change the window's state.
enum WMEvent {
+ // Following events are the request to become corresponding state.
+ // Note that this does not mean the window will be in corresponding
+ // state and the request may not be fullfilled.
+
+ // NORMAL is used as a restore operation with a few exceptions.
+ NORMAL,
+ MAXIMIZE,
+ MINIMIZE,
+ FULLSCREEN,
+ // TODO(oshima): Consolidate these two events.
+ SNAP_LEFT,
+ SNAP_RIGHT,
+
+ // Following events are compond events which may lead to different
+ // states depending on the current state.
+
// A user requested to toggle maximized state by double clicking window
// header.
TOGGLE_MAXIMIZE_CAPTION,
@@ -57,6 +73,13 @@ enum WMEvent {
// A user requested to toggle horizontal maximize by double clicking
// left/right edge.
TOGGLE_HORIZONTAL_MAXIMIZE,
+
+ // A user requested to toggle fullscreen state.
+ TOGGLE_FULLSCREEN,
+
+ // TODO(oshima): Investigate if this can be removed from ash.
+ // Widget requested to show in inactive state.
+ SHOW_INACTIVE,
};
// Utility functions to convert WindowShowType <-> ui::WindowShowState.
« no previous file with comments | « ash/wm/window_state_observer.h ('k') | ash/wm/workspace/workspace_layout_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698