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

Unified Diff: ash/common/wm/window_cycle_controller.cc

Issue 2612633002: CrOS Alt+Tab UI: no-op when UI is aborted (instead of switching window). (Closed)
Patch Set: Created 3 years, 12 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
Index: ash/common/wm/window_cycle_controller.cc
diff --git a/ash/common/wm/window_cycle_controller.cc b/ash/common/wm/window_cycle_controller.cc
index 5a0ede98a7c3c73c791afba3d4a897ec6ffaa71b..17fb0448624251c4a19f3e01833977c5f17d72cd 100644
--- a/ash/common/wm/window_cycle_controller.cc
+++ b/ash/common/wm/window_cycle_controller.cc
@@ -78,6 +78,15 @@ void WindowCycleController::StartCycling() {
window_list.size());
}
+void WindowCycleController::CompleteCycling() {
+ window_cycle_list_->set_user_did_accept(true);
+ StopCycling();
+}
+
+void WindowCycleController::CancelCycling() {
+ StopCycling();
+}
+
//////////////////////////////////////////////////////////////////////////////
// WindowCycleController, private:

Powered by Google App Engine
This is Rietveld 408576698