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

Unified Diff: ui/aura_shell/workspace_controller.cc

Issue 8771015: Rename Desktop->RootWindow. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years 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/workspace_controller.h ('k') | ui/base/ime/input_method.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura_shell/workspace_controller.cc
===================================================================
--- ui/aura_shell/workspace_controller.cc (revision 113260)
+++ ui/aura_shell/workspace_controller.cc (working copy)
@@ -4,7 +4,7 @@
#include "ui/aura_shell/workspace_controller.h"
-#include "ui/aura/desktop.h"
+#include "ui/aura/root_window.h"
#include "ui/aura/window.h"
#include "ui/aura_shell/default_container_layout_manager.h"
#include "ui/aura_shell/launcher/launcher.h"
@@ -21,14 +21,14 @@
launcher_model_(NULL),
ignore_move_event_(false) {
workspace_manager_->AddObserver(this);
- aura::Desktop::GetInstance()->AddObserver(this);
+ aura::RootWindow::GetInstance()->AddObserver(this);
}
WorkspaceController::~WorkspaceController() {
workspace_manager_->RemoveObserver(this);
if (launcher_model_)
launcher_model_->RemoveObserver(this);
- aura::Desktop::GetInstance()->RemoveObserver(this);
+ aura::RootWindow::GetInstance()->RemoveObserver(this);
}
void WorkspaceController::ToggleOverview() {
@@ -42,9 +42,9 @@
}
////////////////////////////////////////////////////////////////////////////////
-// WorkspaceController, aura::DesktopObserver overrides:
+// WorkspaceController, aura::RootWindowObserver overrides:
-void WorkspaceController::OnDesktopResized(const gfx::Size& new_size) {
+void WorkspaceController::OnRootWindowResized(const gfx::Size& new_size) {
workspace_manager_->SetWorkspaceSize(new_size);
}
« no previous file with comments | « ui/aura_shell/workspace_controller.h ('k') | ui/base/ime/input_method.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698