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

Unified Diff: ash/wm/window_cycle_list.h

Issue 2042913002: Converts MruWindowTracker to work with common types (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: not equal Created 4 years, 6 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/wm/window_cycle_controller_unittest.cc ('k') | ash/wm/window_cycle_list.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/window_cycle_list.h
diff --git a/ash/wm/window_cycle_list.h b/ash/wm/window_cycle_list.h
index a7d2156003bf0fd1df56a4e9d9424f3448072142..722f8ac52f63f9288f7fa02eba74b4df7e2b274c 100644
--- a/ash/wm/window_cycle_list.h
+++ b/ash/wm/window_cycle_list.h
@@ -9,10 +9,9 @@
#include <vector>
#include "ash/ash_export.h"
+#include "ash/common/wm_window_observer.h"
#include "ash/wm/window_cycle_controller.h"
-#include "base/compiler_specific.h"
#include "base/macros.h"
-#include "ui/aura/window_observer.h"
namespace ash {
@@ -20,9 +19,9 @@ class ScopedShowWindow;
// Tracks a set of Windows that can be stepped through. This class is used by
// the WindowCycleController.
-class ASH_EXPORT WindowCycleList : public aura::WindowObserver {
+class ASH_EXPORT WindowCycleList : public WmWindowObserver {
public:
- typedef std::vector<aura::Window*> WindowList;
+ using WindowList = std::vector<WmWindow*>;
explicit WindowCycleList(const WindowList& windows);
~WindowCycleList() override;
@@ -40,7 +39,7 @@ class ASH_EXPORT WindowCycleList : public aura::WindowObserver {
// 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(aura::Window* window) override;
+ void OnWindowDestroying(WmWindow* window) override;
// List of weak pointers to windows to use while cycling with the keyboard.
// List is built when the user initiates the gesture (i.e. hits alt-tab the
« no previous file with comments | « ash/wm/window_cycle_controller_unittest.cc ('k') | ash/wm/window_cycle_list.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698