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

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

Issue 8399027: Makes overview center the active workspace. This avoids leaving extra (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 2 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: ui/aura_shell/workspace/workspace.cc
diff --git a/ui/aura_shell/workspace/workspace.cc b/ui/aura_shell/workspace/workspace.cc
index 5623e43c654a1e8d74557c725a2c48b1821c185d..8e9f2cda5d8401e96b8737527ccca47062402141 100644
--- a/ui/aura_shell/workspace/workspace.cc
+++ b/ui/aura_shell/workspace/workspace.cc
@@ -60,7 +60,6 @@ void Workspace::RemoveWindow(aura::Window* window) {
Layout(NULL);
}
-
bool Workspace::Contains(aura::Window* window) const {
return std::find(windows_.begin(), windows_.end(), window) != windows_.end();
}
@@ -74,7 +73,7 @@ void Workspace::Layout(aura::Window* no_animation) {
int total_width = 0;
for (aura::Window::Windows::const_iterator i = windows_.begin();
i != windows_.end();
- i++) {
+ ++i) {
if (total_width)
total_width += kWindowHorizontalMargin;
// TODO(oshima): use restored bounds.
@@ -85,7 +84,7 @@ void Workspace::Layout(aura::Window* no_animation) {
int dx = (work_area.width() - total_width) / 2;
for (aura::Window::Windows::iterator i = windows_.begin();
i != windows_.end();
- i++) {
+ ++i) {
MoveWindowTo(*i,
gfx::Point(work_area.x() + dx, work_area.y()),
no_animation != *i);
« no previous file with comments | « no previous file | ui/aura_shell/workspace/workspace_manager.cc » ('j') | ui/aura_shell/workspace/workspace_manager.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698