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

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

Issue 9515003: Fix the full screen switching browser window dipping below launcher bar issue. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix the issue for managed window mode, add tests. Created 8 years, 9 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 // Turn on/off overview mode. 67 // Turn on/off overview mode.
68 void SetOverview(bool overview); 68 void SetOverview(bool overview);
69 bool is_overview() const { return is_overview_; } 69 bool is_overview() const { return is_overview_; }
70 70
71 // Sets the size of a single workspace (all workspaces have the same size). 71 // Sets the size of a single workspace (all workspaces have the same size).
72 void SetWorkspaceSize(const gfx::Size& workspace_size); 72 void SetWorkspaceSize(const gfx::Size& workspace_size);
73 73
74 // Sets the bounds of all workspaces.
75 void SetWorkspaceBounds();
76
74 // Returns the window the layout manager should allow the size to be set for. 77 // Returns the window the layout manager should allow the size to be set for.
75 // TODO: maybe this should be set on WorkspaceLayoutManager. 78 // TODO: maybe this should be set on WorkspaceLayoutManager.
76 aura::Window* ignored_window() { return ignored_window_; } 79 aura::Window* ignored_window() { return ignored_window_; }
77 80
78 // Sets whether newly added windows open maximized. This is only applicable if 81 // Sets whether newly added windows open maximized. This is only applicable if
79 // the size of the root window is less than kOpenMaximizedThreshold. Default 82 // the size of the root window is less than kOpenMaximizedThreshold. Default
80 // is true. 83 // is true.
81 void set_open_new_windows_maximized(bool value) { 84 void set_open_new_windows_maximized(bool value) {
82 open_new_windows_maximized_ = value; 85 open_new_windows_maximized_ = value;
83 } 86 }
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 // Owned by the Shell container window LauncherContainer. May be NULL. 194 // Owned by the Shell container window LauncherContainer. May be NULL.
192 ShelfLayoutManager* shelf_; 195 ShelfLayoutManager* shelf_;
193 196
194 DISALLOW_COPY_AND_ASSIGN(WorkspaceManager); 197 DISALLOW_COPY_AND_ASSIGN(WorkspaceManager);
195 }; 198 };
196 199
197 } // namespace internal 200 } // namespace internal
198 } // namespace ash 201 } // namespace ash
199 202
200 #endif // ASH_WM_WORKSPACE_MANAGER_H_ 203 #endif // ASH_WM_WORKSPACE_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698