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

Unified Diff: ui/aura_shell/shelf_layout_manager.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/shadow_controller_unittest.cc ('k') | ui/aura_shell/shell.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura_shell/shelf_layout_manager.cc
===================================================================
--- ui/aura_shell/shelf_layout_manager.cc (revision 113260)
+++ ui/aura_shell/shelf_layout_manager.cc (working copy)
@@ -5,7 +5,7 @@
#include "ui/aura_shell/shelf_layout_manager.h"
#include "base/auto_reset.h"
-#include "ui/aura/desktop.h"
+#include "ui/aura/root_window.h"
#include "ui/aura/screen_aura.h"
#include "ui/gfx/compositor/layer.h"
#include "ui/gfx/compositor/layer_animator.h"
@@ -55,7 +55,7 @@
GetLayer(status_)->SetOpacity(target_opacity);
launcher_->SetBounds(target_bounds.launcher_bounds);
status_->SetBounds(target_bounds.status_bounds);
- aura::Desktop::GetInstance()->screen()->set_work_area_insets(
+ aura::RootWindow::GetInstance()->screen()->set_work_area_insets(
target_bounds.work_area_insets);
}
@@ -112,7 +112,7 @@
void ShelfLayoutManager::CalculateTargetBounds(bool visible,
TargetBounds* target_bounds) {
- const gfx::Rect& available_bounds(aura::Desktop::GetInstance()->bounds());
+ const gfx::Rect& available_bounds(aura::RootWindow::GetInstance()->bounds());
int y = available_bounds.bottom() - (visible ? max_height_ : 0);
gfx::Rect status_bounds(status_->GetWindowScreenBounds());
target_bounds->status_bounds = gfx::Rect(
@@ -145,7 +145,7 @@
visible_ = !visible_;
TargetBounds target_bounds;
CalculateTargetBounds(visible_, &target_bounds);
- aura::Desktop::GetInstance()->screen()->set_work_area_insets(
+ aura::RootWindow::GetInstance()->screen()->set_work_area_insets(
target_bounds.work_area_insets);
}
« no previous file with comments | « ui/aura_shell/shadow_controller_unittest.cc ('k') | ui/aura_shell/shell.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698