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

Unified Diff: ash/shelf/shelf_layout_manager.cc

Issue 2871813002: Converts remaining usage of WmLayoutManager to aura::LayoutManager (Closed)
Patch Set: cleanup 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_layout_manager.h ('k') | ash/shelf/shelf_widget.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shelf/shelf_layout_manager.cc
diff --git a/ash/shelf/shelf_layout_manager.cc b/ash/shelf/shelf_layout_manager.cc
index 0d27fb1a19ac12b0fdfd1b49832ddbdc67acbe8e..19deab0a039b3bbec21e718d8e84468befbb781a 100644
--- a/ash/shelf/shelf_layout_manager.cc
+++ b/ash/shelf/shelf_layout_manager.cc
@@ -389,15 +389,14 @@ void ShelfLayoutManager::OnWindowResized() {
LayoutShelf();
}
-void ShelfLayoutManager::SetChildBounds(WmWindow* child,
+void ShelfLayoutManager::SetChildBounds(aura::Window* child,
const gfx::Rect& requested_bounds) {
wm::WmSnapToPixelLayoutManager::SetChildBounds(child, requested_bounds);
// We may contain other widgets (such as frame maximize bubble) but they don't
// effect the layout in anyway.
if (!updating_bounds_ &&
- ((WmWindow::Get(shelf_widget_->GetNativeWindow()) == child) ||
- (WmWindow::Get(shelf_widget_->status_area_widget()->GetNativeWindow()) ==
- child))) {
+ ((shelf_widget_->GetNativeWindow() == child) ||
+ (shelf_widget_->status_area_widget()->GetNativeWindow() == child))) {
LayoutShelf();
}
}
@@ -412,11 +411,11 @@ void ShelfLayoutManager::OnPinnedStateChanged(WmWindow* pinned_window) {
UpdateVisibilityState();
}
-void ShelfLayoutManager::OnVirtualKeyboardStateChanged(bool activated,
- WmWindow* root_window) {
+void ShelfLayoutManager::OnVirtualKeyboardStateChanged(
+ bool activated,
+ aura::Window* root_window) {
UpdateKeyboardObserverFromStateChanged(
- activated, root_window,
- WmWindow::Get(shelf_widget_->GetNativeWindow())->GetRootWindow(),
+ activated, root_window, shelf_widget_->GetNativeWindow()->GetRootWindow(),
&keyboard_observer_);
}
« no previous file with comments | « ash/shelf/shelf_layout_manager.h ('k') | ash/shelf/shelf_widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698