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

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

Issue 10910164: Removes the grid from ash. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix ShelfBrowserTest Created 8 years, 3 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/window_resizer.cc ('k') | ash/wm/workspace/frame_maximize_button.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_BASE_WORKSPACE_MANAGER_H_ 5 #ifndef ASH_WM_WORKSPACE_BASE_WORKSPACE_MANAGER_H_
6 #define ASH_WM_WORKSPACE_BASE_WORKSPACE_MANAGER_H_ 6 #define ASH_WM_WORKSPACE_BASE_WORKSPACE_MANAGER_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "ash/wm/workspace/workspace_types.h" 9 #include "ash/wm/workspace/workspace_types.h"
10 10
11 namespace aura { 11 namespace aura {
12 class Window; 12 class Window;
13 } 13 }
14 14
15 namespace ash { 15 namespace ash {
16 namespace internal { 16 namespace internal {
17 17
18 class ShelfLayoutManager; 18 class ShelfLayoutManager;
19 19
20 // TODO: this is temporary until WorkspaceManager2 is the default. 20 // TODO: this is temporary until WorkspaceManager2 is the default.
21 class ASH_EXPORT BaseWorkspaceManager { 21 class ASH_EXPORT BaseWorkspaceManager {
22 public: 22 public:
23 virtual ~BaseWorkspaceManager() {} 23 virtual ~BaseWorkspaceManager() {}
24 24
25 // Returns true if in maximized or fullscreen mode. 25 // Returns true if in maximized or fullscreen mode.
26 virtual bool IsInMaximizedMode() const = 0; 26 virtual bool IsInMaximizedMode() const = 0;
27 27
28 // Sets the size of the grid. Newly added windows are forced to align to the
29 // size of the grid.
30 virtual void SetGridSize(int size) = 0;
31 virtual int GetGridSize() const = 0;
32
33 // Returns the current window state. 28 // Returns the current window state.
34 virtual WorkspaceWindowState GetWindowState() const = 0; 29 virtual WorkspaceWindowState GetWindowState() const = 0;
35 30
36 virtual void SetShelf(ShelfLayoutManager* shelf) = 0; 31 virtual void SetShelf(ShelfLayoutManager* shelf) = 0;
37 32
38 // Activates the workspace containing |window|. Does nothing if |window| is 33 // Activates the workspace containing |window|. Does nothing if |window| is
39 // NULL or not contained in a workspace. 34 // NULL or not contained in a workspace.
40 virtual void SetActiveWorkspaceByWindow(aura::Window* window) = 0; 35 virtual void SetActiveWorkspaceByWindow(aura::Window* window) = 0;
41 36
42 // Returns the parent for |window|. This is invoked from StackingController 37 // Returns the parent for |window|. This is invoked from StackingController
43 // when a new Window is being added. 38 // when a new Window is being added.
44 virtual aura::Window* GetParentForNewWindow(aura::Window* window) = 0; 39 virtual aura::Window* GetParentForNewWindow(aura::Window* window) = 0;
45 }; 40 };
46 41
47 } // namespace internal 42 } // namespace internal
48 } // namespace ash 43 } // namespace ash
49 44
50 #endif // ASH_WM_WORKSPACE_BASE_WORKSPACE_MANAGER_H_ 45 #endif // ASH_WM_WORKSPACE_BASE_WORKSPACE_MANAGER_H_
OLDNEW
« no previous file with comments | « ash/wm/window_resizer.cc ('k') | ash/wm/workspace/frame_maximize_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698