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

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

Issue 10857021: Prepare a bunch of ash tests for workspace2. With Workspace2 you can't (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
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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 59
60 // Returns the window for rotate operation based on the |location|. 60 // Returns the window for rotate operation based on the |location|.
61 // TODO: this isn't currently used; remove if we do away with overview. 61 // TODO: this isn't currently used; remove if we do away with overview.
62 aura::Window* FindRotateWindowForLocation(const gfx::Point& location); 62 aura::Window* FindRotateWindowForLocation(const gfx::Point& location);
63 63
64 // Returns the bounds in which a window can be moved/resized. 64 // Returns the bounds in which a window can be moved/resized.
65 gfx::Rect GetDragAreaBounds(); 65 gfx::Rect GetDragAreaBounds();
66 66
67 // Sets the size of the grid. Newly added windows are forced to align to the 67 // Sets the size of the grid. Newly added windows are forced to align to the
68 // size of the grid. 68 // size of the grid.
69 void set_grid_size(int size) { grid_size_ = size; } 69 void SetGridSize(int grid_size);
70 int grid_size() const { return grid_size_; } 70 int grid_size() const { return grid_size_; }
71 71
72 void set_shelf(ShelfLayoutManager* shelf) { shelf_ = shelf; } 72 void set_shelf(ShelfLayoutManager* shelf) { shelf_ = shelf; }
73 73
74 // Updates the visibility and whether any windows overlap the shelf. 74 // Updates the visibility and whether any windows overlap the shelf.
75 void UpdateShelfVisibility(); 75 void UpdateShelfVisibility();
76 76
77 // Returns the current window state. 77 // Returns the current window state.
78 WorkspaceWindowState GetWindowState() const; 78 WorkspaceWindowState GetWindowState() const;
79 79
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 // Owned by the Shell container window LauncherContainer. May be NULL. 151 // Owned by the Shell container window LauncherContainer. May be NULL.
152 ShelfLayoutManager* shelf_; 152 ShelfLayoutManager* shelf_;
153 153
154 DISALLOW_COPY_AND_ASSIGN(WorkspaceManager); 154 DISALLOW_COPY_AND_ASSIGN(WorkspaceManager);
155 }; 155 };
156 156
157 } // namespace internal 157 } // namespace internal
158 } // namespace ash 158 } // namespace ash
159 159
160 #endif // ASH_WM_WORKSPACE_MANAGER_H_ 160 #endif // ASH_WM_WORKSPACE_MANAGER_H_
OLDNEW
« no previous file with comments | « ash/wm/workspace/workspace_event_filter_unittest.cc ('k') | ash/wm/workspace/workspace_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698