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

Unified Diff: ash/wm/workspace/workspace_manager.h

Issue 16093036: Do not create a workspace for a maximized window. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix test failure Created 7 years, 6 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/workspace/workspace_layout_manager.cc ('k') | ash/wm/workspace/workspace_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/workspace/workspace_manager.h
diff --git a/ash/wm/workspace/workspace_manager.h b/ash/wm/workspace/workspace_manager.h
index d3a7389753bbdf30b26c1f29bf78d33baa666862..4f298a81393357dd22fafbf2d6079451f1db5fce 100644
--- a/ash/wm/workspace/workspace_manager.h
+++ b/ash/wm/workspace/workspace_manager.h
@@ -58,14 +58,9 @@ class ASH_EXPORT WorkspaceManager : public ash::ShellObserver {
explicit WorkspaceManager(aura::Window* viewport);
virtual ~WorkspaceManager();
- // Returns true if |window| is considered maximized and should exist in its
- // own workspace.
- static bool IsMaximized(aura::Window* window);
- static bool IsMaximizedState(ui::WindowShowState state);
-
- // Returns true if |window| is minimized and will restore to a maximized
- // window.
- static bool WillRestoreMaximized(aura::Window* window);
+ // Returns true if |window| is minimized and will restore to a window which
+ // exists in its own workspace.
+ static bool WillRestoreToWorkspace(aura::Window* window);
// Returns the current window state.
WorkspaceWindowState GetWindowState() const;
@@ -157,7 +152,7 @@ class ASH_EXPORT WorkspaceManager : public ash::ShellObserver {
// Creates a new workspace. The Workspace is not added to anything and is
// owned by the caller.
- Workspace* CreateWorkspace(bool maximized);
+ Workspace* CreateWorkspace(bool fullscren);
// Moves all the non-maximized child windows of |workspace| to the desktop
// stacked beneath |stack_beneath| (if non-NULL). After moving child windows
« no previous file with comments | « ash/wm/workspace/workspace_layout_manager.cc ('k') | ash/wm/workspace/workspace_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698