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

Unified Diff: ash/shelf/shelf_window_targeter.cc

Issue 2904273002: [mus+ash] Removes WmWindow from RootWindowcontroller implementation (Closed)
Patch Set: [mus+ash] Removes WmWindow from RootWindowcontroller implementation (rebased) 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_window_targeter.h ('k') | ash/wm/window_properties.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shelf/shelf_window_targeter.cc
diff --git a/ash/shelf/shelf_window_targeter.cc b/ash/shelf/shelf_window_targeter.cc
index eb377a1dd203d3a8f3d69436873260af2da83af1..06836bee2f26aad7dcfa853a2be173de78068e2a 100644
--- a/ash/shelf/shelf_window_targeter.cc
+++ b/ash/shelf/shelf_window_targeter.cc
@@ -7,7 +7,6 @@
#include "ash/public/cpp/shelf_types.h"
#include "ash/shelf/shelf.h"
#include "ash/shelf/shelf_constants.h"
-#include "ash/wm_window.h"
#include "ui/aura/window.h"
namespace ash {
@@ -24,13 +23,11 @@ gfx::Insets GetInsetsForAlignment(int distance, ShelfAlignment alignment) {
} // namespace
-ShelfWindowTargeter::ShelfWindowTargeter(WmWindow* container, Shelf* shelf)
- : ::wm::EasyResizeWindowTargeter(WmWindow::GetAuraWindow(container),
- gfx::Insets(),
- gfx::Insets()),
+ShelfWindowTargeter::ShelfWindowTargeter(aura::Window* container, Shelf* shelf)
+ : ::wm::EasyResizeWindowTargeter(container, gfx::Insets(), gfx::Insets()),
shelf_(shelf) {
WillChangeVisibilityState(shelf_->GetVisibilityState());
- container->aura_window()->AddObserver(this);
+ container->AddObserver(this);
shelf_->AddObserver(this);
}
« no previous file with comments | « ash/shelf/shelf_window_targeter.h ('k') | ash/wm/window_properties.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698