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

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: Fix the issue for managed window mode, add tests. 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
Index: ash/wm/workspace/workspace_manager.cc
diff --git a/ash/wm/workspace/workspace_manager.cc b/ash/wm/workspace/workspace_manager.cc
index 098c4e91a52de89c20abc818d9360a171af33f14..5eace102f8520aad8127ac76a724f18cb7a31987 100644
--- a/ash/wm/workspace/workspace_manager.cc
+++ b/ash/wm/workspace/workspace_manager.cc
@@ -187,6 +187,10 @@ void WorkspaceManager::SetWorkspaceSize(const gfx::Size& workspace_size) {
if (workspace_size == workspace_size_)
return;
workspace_size_ = workspace_size;
+ SetWorkspaceBounds();
+}
+
+void WorkspaceManager::SetWorkspaceBounds() {
for (Workspaces::const_iterator i = workspaces_.begin();
i != workspaces_.end(); ++i) {
(*i)->SetBounds(GetWorkAreaBounds());

Powered by Google App Engine
This is Rietveld 408576698