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

Unified Diff: ash/wm/workspace/workspace_layout_manager2.h

Issue 10878079: Changes workspace code to only move windows when the work area changes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove include 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ash/wm/workspace/workspace_layout_manager2.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/workspace/workspace_layout_manager2.h
diff --git a/ash/wm/workspace/workspace_layout_manager2.h b/ash/wm/workspace/workspace_layout_manager2.h
index 3c0e6ab4d5af5f76c915f4f78eec9d6f608408d5..1f35e04855ad420b9cd600f4855c42ddda1ed6bb 100644
--- a/ash/wm/workspace/workspace_layout_manager2.h
+++ b/ash/wm/workspace/workspace_layout_manager2.h
@@ -15,6 +15,7 @@
#include "ui/aura/root_window_observer.h"
#include "ui/base/ui_base_types.h"
#include "ui/aura/window_observer.h"
+#include "ui/gfx/rect.h"
namespace aura {
class RootWindow;
@@ -101,6 +102,10 @@ class ASH_EXPORT WorkspaceLayoutManager2
// Set of windows we're listening to.
WindowSet windows_;
+ // The work area. Cached to avoid unnecessarily moving windows during a
+ // workspace switch.
+ gfx::Rect work_area_;
+
DISALLOW_COPY_AND_ASSIGN(WorkspaceLayoutManager2);
};
« no previous file with comments | « no previous file | ash/wm/workspace/workspace_layout_manager2.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698