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

Unified Diff: ash/wm/window_cycle_controller.cc

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.h ('k') | ash/wm/window_cycle_controller_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/window_cycle_controller.cc
diff --git a/ash/wm/window_cycle_controller.cc b/ash/wm/window_cycle_controller.cc
index 12d880f0d2e66026e920dee741e8bae5c2fb8585..3361a71300e16a9844736f30f937959fab59dc16 100644
--- a/ash/wm/window_cycle_controller.cc
+++ b/ash/wm/window_cycle_controller.cc
@@ -10,7 +10,6 @@
#include "ash/wm/mru_window_tracker.h"
#include "ash/wm/window_cycle_list.h"
#include "base/metrics/histogram.h"
-#include "ui/aura/window.h"
#include "ui/events/event.h"
#include "ui/events/event_handler.h"
@@ -20,7 +19,7 @@ namespace {
// Returns the most recently active window from the |window_list| or nullptr
// if the list is empty.
-aura::Window* GetActiveWindow(const MruWindowTracker::WindowList& window_list) {
+WmWindow* GetActiveWindow(const MruWindowTracker::WindowList& window_list) {
return window_list.empty() ? nullptr : window_list[0];
}
@@ -110,7 +109,7 @@ void WindowCycleController::Step(Direction direction) {
void WindowCycleController::StopCycling() {
window_cycle_list_.reset();
- aura::Window* active_window_after_window_cycle = GetActiveWindow(
+ WmWindow* active_window_after_window_cycle = GetActiveWindow(
Shell::GetInstance()->mru_window_tracker()->BuildMruWindowList());
// Remove our key event filter.
« no previous file with comments | « ash/wm/window_cycle_controller.h ('k') | ash/wm/window_cycle_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698