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

Unified Diff: ash/common/test/test_shelf_delegate.h

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/common/shelf/shelf_window_watcher.cc ('k') | ash/common/test/test_shelf_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/test/test_shelf_delegate.h
diff --git a/ash/common/test/test_shelf_delegate.h b/ash/common/test/test_shelf_delegate.h
index cb71bc5df40d14325d56e9b0e7883c49ed7aaa10..a334848c0a7e25dcccb9a58735606e1c28723bca 100644
--- a/ash/common/test/test_shelf_delegate.h
+++ b/ash/common/test/test_shelf_delegate.h
@@ -10,17 +10,20 @@
#include <string>
#include "ash/common/shelf/shelf_delegate.h"
-#include "ash/common/wm_window_observer.h"
#include "base/macros.h"
+#include "ui/aura/window_observer.h"
namespace ash {
+
+class WmWindow;
+
namespace test {
class ShelfInitializer;
// Test implementation of ShelfDelegate.
// Tests may create icons for windows by calling AddShelfItem().
-class TestShelfDelegate : public ShelfDelegate, public WmWindowObserver {
+class TestShelfDelegate : public ShelfDelegate, public aura::WindowObserver {
public:
TestShelfDelegate();
~TestShelfDelegate() override;
@@ -45,9 +48,8 @@ class TestShelfDelegate : public ShelfDelegate, public WmWindowObserver {
static TestShelfDelegate* instance() { return instance_; }
// WindowObserver implementation
- void OnWindowDestroying(WmWindow* window) override;
- void OnWindowTreeChanging(WmWindow* window,
- const TreeChangeParams& params) override;
+ void OnWindowDestroying(aura::Window* window) override;
+ void OnWindowHierarchyChanging(const HierarchyChangeParams& params) override;
// ShelfDelegate implementation.
ShelfID GetShelfIDForAppID(const std::string& app_id) override;
« no previous file with comments | « ash/common/shelf/shelf_window_watcher.cc ('k') | ash/common/test/test_shelf_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698