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

Unified Diff: ash/common/wm/window_cycle_list.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/wm/system_modal_container_layout_manager.cc ('k') | ash/common/wm/window_cycle_list.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/wm/window_cycle_list.h
diff --git a/ash/common/wm/window_cycle_list.h b/ash/common/wm/window_cycle_list.h
index 6a1a1a75773605606e26d4507fa1b4662d1fd887..36e89409d219607e615592b1c3b288cdd80da829 100644
--- a/ash/common/wm/window_cycle_list.h
+++ b/ash/common/wm/window_cycle_list.h
@@ -10,10 +10,10 @@
#include "ash/ash_export.h"
#include "ash/common/wm/window_cycle_controller.h"
-#include "ash/common/wm_window_observer.h"
#include "base/macros.h"
#include "base/scoped_observer.h"
#include "base/timer/timer.h"
+#include "ui/aura/window_observer.h"
#include "ui/display/display_observer.h"
namespace display {
@@ -30,7 +30,7 @@ class WindowCycleView;
// Tracks a set of Windows that can be stepped through. This class is used by
// the WindowCycleController.
-class ASH_EXPORT WindowCycleList : public WmWindowObserver,
+class ASH_EXPORT WindowCycleList : public aura::WindowObserver,
public display::DisplayObserver {
public:
using WindowList = std::vector<WmWindow*>;
@@ -57,11 +57,11 @@ class ASH_EXPORT WindowCycleList : public WmWindowObserver,
const WindowList& windows() const { return windows_; }
- // WmWindowObserver overrides:
+ // aura::WindowObserver overrides:
// There is a chance a window is destroyed, for example by JS code. We need to
// take care of that even if it is not intended for the user to close a window
// while window cycling.
- void OnWindowDestroying(WmWindow* window) override;
+ void OnWindowDestroying(aura::Window* window) override;
// display::DisplayObserver overrides:
void OnDisplayAdded(const display::Display& new_display) override;
« no previous file with comments | « ash/common/wm/system_modal_container_layout_manager.cc ('k') | ash/common/wm/window_cycle_list.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698