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

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

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: Make SetWorkSpaceBounds private. Created 8 years, 10 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_manager.h ('k') | ash/wm/workspace/workspace_manager_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/workspace/workspace_manager.cc
diff --git a/ash/wm/workspace/workspace_manager.cc b/ash/wm/workspace/workspace_manager.cc
index 3e8d25a66fbe5e96de0730c5a5d6cd1adf818f58..6401d01f31c30971a6cac34f1df4ff4d7fade46b 100644
--- a/ash/wm/workspace/workspace_manager.cc
+++ b/ash/wm/workspace/workspace_manager.cc
@@ -171,10 +171,11 @@ void WorkspaceManager::SetWorkspaceSize(const gfx::Size& workspace_size) {
if (workspace_size == workspace_size_)
return;
workspace_size_ = workspace_size;
- for (Workspaces::const_iterator i = workspaces_.begin();
- i != workspaces_.end(); ++i) {
- (*i)->SetBounds(GetWorkAreaBounds());
- }
+ SetWorkspaceBounds();
+}
+
+void WorkspaceManager::OnScreenWorkAreaInsetsChanged() {
+ SetWorkspaceBounds();
}
gfx::Rect WorkspaceManager::AlignBoundsToGrid(const gfx::Rect& bounds) {
@@ -358,6 +359,13 @@ void WorkspaceManager::SetFullScreenOrMaximizedBounds(aura::Window* window) {
SetWindowBounds(window, gfx::Screen::GetMonitorAreaNearestWindow(window));
}
+void WorkspaceManager::SetWorkspaceBounds() {
+ for (Workspaces::const_iterator i = workspaces_.begin();
+ i != workspaces_.end(); ++i) {
+ (*i)->SetBounds(GetWorkAreaBounds());
+ }
+}
+
void WorkspaceManager::OnTypeOfWorkspacedNeededChanged(aura::Window* window) {
DCHECK(IsManagedWindow(window));
Workspace* current_workspace = FindBy(window);
« no previous file with comments | « ash/wm/workspace/workspace_manager.h ('k') | ash/wm/workspace/workspace_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698