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

Unified Diff: ash/shelf/shelf_window_targeter.cc

Issue 2699033002: Replace WmWindowObserver with aura::WindowObserver. (Closed)
Patch Set: Check for null images in ShelfWindowWatcher. Created 3 years, 10 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/screen_pinning_controller.cc » ('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 e8198b2dd782a86b2cc5a53949f8c53f5915ba1c..24ba0e8bb5dba3b2e8d589201bdfc22527a84989 100644
--- a/ash/shelf/shelf_window_targeter.cc
+++ b/ash/shelf/shelf_window_targeter.cc
@@ -8,6 +8,7 @@
#include "ash/common/shelf/wm_shelf.h"
#include "ash/common/wm_window.h"
#include "ash/public/cpp/shelf_types.h"
+#include "ui/aura/window.h"
namespace ash {
@@ -29,7 +30,7 @@ ShelfWindowTargeter::ShelfWindowTargeter(WmWindow* container, WmShelf* shelf)
gfx::Insets()),
shelf_(shelf) {
WillChangeVisibilityState(shelf_->GetVisibilityState());
- container->AddObserver(this);
+ container->aura_window()->AddObserver(this);
shelf_->AddObserver(this);
}
@@ -38,7 +39,7 @@ ShelfWindowTargeter::~ShelfWindowTargeter() {
DCHECK(!shelf_);
}
-void ShelfWindowTargeter::OnWindowDestroying(WmWindow* window) {
+void ShelfWindowTargeter::OnWindowDestroying(aura::Window* window) {
window->RemoveObserver(this);
shelf_->RemoveObserver(this);
shelf_ = nullptr;
« no previous file with comments | « ash/shelf/shelf_window_targeter.h ('k') | ash/wm/screen_pinning_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698