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

Unified Diff: ash/shelf/shelf.cc

Issue 2907853002: [mus+ash] Removes WmWindow from ash/shelf and ash/shell (Closed)
Patch Set: [mus+ash] Removes WmWindow from ash/shelf and ash/shell (removed some more wm_window.h) Created 3 years, 7 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 | « ash/shelf/shelf.h ('k') | ash/shelf/shelf_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shelf/shelf.cc
diff --git a/ash/shelf/shelf.cc b/ash/shelf/shelf.cc
index 8068204d5fecafd76e0a967a925eae1679e7ab9e..90d4912b2d6805f76d45a680b6ce71325c177565 100644
--- a/ash/shelf/shelf.cc
+++ b/ash/shelf/shelf.cc
@@ -105,10 +105,10 @@ bool Shelf::CanChangeShelfAlignment() {
return false;
}
-void Shelf::CreateShelfWidget(WmWindow* root) {
+void Shelf::CreateShelfWidget(aura::Window* root) {
DCHECK(!shelf_widget_);
- WmWindow* shelf_container =
- root->GetChildByShellWindowId(kShellWindowId_ShelfContainer);
+ aura::Window* shelf_container =
+ root->GetChildById(kShellWindowId_ShelfContainer);
shelf_widget_.reset(new ShelfWidget(shelf_container, this));
DCHECK(!shelf_layout_manager_);
@@ -118,8 +118,8 @@ void Shelf::CreateShelfWidget(WmWindow* root) {
// Must occur after |shelf_widget_| is constructed because the system tray
// constructors call back into Shelf::shelf_widget().
DCHECK(!shelf_widget_->status_area_widget());
- WmWindow* status_container =
- root->GetChildByShellWindowId(kShellWindowId_StatusContainer);
+ aura::Window* status_container =
+ root->GetChildById(kShellWindowId_StatusContainer);
shelf_widget_->CreateStatusAreaWidget(status_container);
}
@@ -138,8 +138,8 @@ void Shelf::NotifyShelfInitialized() {
Shell::Get()->shelf_controller()->NotifyShelfInitialized(this);
}
-WmWindow* Shelf::GetWindow() {
- return WmWindow::Get(shelf_widget_->GetNativeWindow());
+aura::Window* Shelf::GetWindow() {
+ return shelf_widget_->GetNativeWindow();
}
void Shelf::SetAlignment(ShelfAlignment alignment) {
@@ -236,11 +236,11 @@ gfx::Rect Shelf::GetUserWorkAreaBounds() const {
: gfx::Rect();
}
-void Shelf::UpdateIconPositionForPanel(WmWindow* panel) {
+void Shelf::UpdateIconPositionForPanel(aura::Window* panel) {
shelf_widget_->UpdateIconPositionForPanel(panel);
}
-gfx::Rect Shelf::GetScreenBoundsOfItemIconForWindow(WmWindow* window) {
+gfx::Rect Shelf::GetScreenBoundsOfItemIconForWindow(aura::Window* window) {
if (!shelf_widget_)
return gfx::Rect();
return shelf_widget_->GetScreenBoundsOfItemIconForWindow(window);
« no previous file with comments | « ash/shelf/shelf.h ('k') | ash/shelf/shelf_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698