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

Unified Diff: ash/system/status_area_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/system/status_area_layout_manager.h ('k') | ash/wm/lock_layout_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/status_area_layout_manager.cc
diff --git a/ash/system/status_area_layout_manager.cc b/ash/system/status_area_layout_manager.cc
index f0959959d5328eca8534981379a7975827dfd4b1..05140c5b9b6a7bef2a29f04004d5ea35f4e2da9b 100644
--- a/ash/system/status_area_layout_manager.cc
+++ b/ash/system/status_area_layout_manager.cc
@@ -7,8 +7,8 @@
#include "ash/shelf/shelf_layout_manager.h"
#include "ash/shelf/shelf_widget.h"
#include "ash/system/status_area_widget.h"
-#include "ash/wm_window.h"
#include "base/auto_reset.h"
+#include "ui/aura/window.h"
namespace ash {
@@ -28,12 +28,11 @@ void StatusAreaLayoutManager::OnWindowResized() {
}
void StatusAreaLayoutManager::SetChildBounds(
- WmWindow* child,
+ aura::Window* child,
const gfx::Rect& requested_bounds) {
// Only need to have the shelf do a layout if the child changing is the status
// area and the shelf isn't in the process of doing a layout.
- if (child != WmWindow::Get(
- shelf_widget_->status_area_widget()->GetNativeWindow()) ||
+ if (child != shelf_widget_->status_area_widget()->GetNativeWindow() ||
in_layout_) {
wm::WmSnapToPixelLayoutManager::SetChildBounds(child, requested_bounds);
return;
« no previous file with comments | « ash/system/status_area_layout_manager.h ('k') | ash/wm/lock_layout_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698