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

Unified Diff: ui/aura_shell/workspace/workspace.cc

Issue 8430024: Add WorkspaceObserver to observe changes in workspace state (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update comments Created 9 years, 1 month 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 | « ui/aura_shell/show_state_controller.cc ('k') | ui/aura_shell/workspace/workspace_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura_shell/workspace/workspace.cc
diff --git a/ui/aura_shell/workspace/workspace.cc b/ui/aura_shell/workspace/workspace.cc
index cf762f34edd74622d053ffc2089d9c695836a600..7c9245b34cc2087d8252e91c861ad874c59d853c 100644
--- a/ui/aura_shell/workspace/workspace.cc
+++ b/ui/aura_shell/workspace/workspace.cc
@@ -180,6 +180,7 @@ void Workspace::Activate() {
}
void Workspace::Layout(aura::Window* ignore, aura::Window* no_animation) {
+ workspace_manager_->set_layout_in_progress(true);
gfx::Rect work_area = workspace_manager_->GetWorkAreaBounds(bounds_);
int total_width = GetTotalWindowsWidth();
if (total_width < work_area.width()) {
@@ -210,6 +211,7 @@ void Workspace::Layout(aura::Window* ignore, aura::Window* no_animation) {
no_animation != windows_[1]);
}
}
+ workspace_manager_->set_layout_in_progress(false);
}
bool Workspace::ContainsFullscreenWindow() const {
« no previous file with comments | « ui/aura_shell/show_state_controller.cc ('k') | ui/aura_shell/workspace/workspace_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698