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

Side by Side Diff: ash/wm/workspace/workspace_manager.h

Issue 10828026: Renames two WorkspaceManager methods so that they are more clearly (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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 unified diff | Download patch | Annotate | Revision Log
« 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef ASH_WM_WORKSPACE_MANAGER_H_ 5 #ifndef ASH_WM_WORKSPACE_MANAGER_H_
6 #define ASH_WM_WORKSPACE_MANAGER_H_ 6 #define ASH_WM_WORKSPACE_MANAGER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "ash/ash_export.h" 10 #include "ash/ash_export.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 // At least one window overlaps the shelf. 42 // At least one window overlaps the shelf.
43 WINDOW_STATE_WINDOW_OVERLAPS_SHELF, 43 WINDOW_STATE_WINDOW_OVERLAPS_SHELF,
44 44
45 // None of the windows are fullscreen, maximized or touch the shelf. 45 // None of the windows are fullscreen, maximized or touch the shelf.
46 WINDOW_STATE_DEFAULT, 46 WINDOW_STATE_DEFAULT,
47 }; 47 };
48 48
49 explicit WorkspaceManager(aura::Window* viewport); 49 explicit WorkspaceManager(aura::Window* viewport);
50 virtual ~WorkspaceManager(); 50 virtual ~WorkspaceManager();
51 51
52 // Returns true if |window| should be managed by the WorkspaceManager. 52 // Returns true if |window| should be managed by the WorkspaceManager. Use
53 bool IsManagedWindow(aura::Window* window) const; 53 // Contains() to test if the Window is currently managed by WorkspaceManager.
54 static bool ShouldManageWindow(aura::Window* window);
54 55
55 // Returns true if the |window| is managed by the WorkspaceManager. 56 // Returns true if |window| has been added to this WorkspaceManager.
56 bool IsManagingWindow(aura::Window* window) const; 57 bool Contains(aura::Window* window) const;
57 58
58 // Returns true if in maximized or fullscreen mode. 59 // Returns true if in maximized or fullscreen mode.
59 bool IsInMaximizedMode() const; 60 bool IsInMaximizedMode() const;
60 61
61 // Adds/removes a window creating/destroying workspace as necessary. 62 // Adds/removes a window creating/destroying workspace as necessary.
62 void AddWindow(aura::Window* window); 63 void AddWindow(aura::Window* window);
63 void RemoveWindow(aura::Window* window); 64 void RemoveWindow(aura::Window* window);
64 65
65 // Activates the workspace containing |window|. Does nothing if |window| is 66 // Activates the workspace containing |window|. Does nothing if |window| is
66 // NULL or not contained in a workspace. 67 // NULL or not contained in a workspace.
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 // Owned by the Shell container window LauncherContainer. May be NULL. 164 // Owned by the Shell container window LauncherContainer. May be NULL.
164 ShelfLayoutManager* shelf_; 165 ShelfLayoutManager* shelf_;
165 166
166 DISALLOW_COPY_AND_ASSIGN(WorkspaceManager); 167 DISALLOW_COPY_AND_ASSIGN(WorkspaceManager);
167 }; 168 };
168 169
169 } // namespace internal 170 } // namespace internal
170 } // namespace ash 171 } // namespace ash
171 172
172 #endif // ASH_WM_WORKSPACE_MANAGER_H_ 173 #endif // ASH_WM_WORKSPACE_MANAGER_H_
OLDNEW
« 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