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

Unified Diff: ash/wm/window_cycle_list.h

Issue 2129773002: [CrOS] Initial rough cut of alt-tab window cycling UI. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: derat comments Created 4 years, 5 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/wm/window_cycle_list.h
diff --git a/ash/wm/window_cycle_list.h b/ash/wm/window_cycle_list.h
index 9420a29bc8a33990248dfa89e09a32cc1f97d6b5..745882c5805a60502005a9c42022b66043083576 100644
--- a/ash/wm/window_cycle_list.h
+++ b/ash/wm/window_cycle_list.h
@@ -13,9 +13,15 @@
#include "ash/wm/window_cycle_controller.h"
#include "base/macros.h"
+namespace views {
+class Label;
+class Widget;
+}
+
namespace ash {
class ScopedShowWindow;
+class WindowCycleView;
// Tracks a set of Windows that can be stepped through. This class is used by
// the WindowCycleController.
@@ -43,6 +49,9 @@ class ASH_EXPORT WindowCycleList : public WmWindowObserver {
// while window cycling.
void OnWindowDestroying(WmWindow* window) override;
+ // Returns true if the window list overlay should be shown.
+ bool ShouldShowUi();
varkha 2016/07/07 17:40:29 Maybe keep this in ash::MaterialDesignController (
+
// 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
// first time) and is emptied when the gesture is complete (i.e. releases the
@@ -56,6 +65,13 @@ class ASH_EXPORT WindowCycleList : public WmWindowObserver {
// Wrapper for the window brought to the front.
std::unique_ptr<ScopedShowWindow> showing_window_;
+ // The top level View for the window cycle UI. May be null if the UI is not
+ // showing.
+ WindowCycleView* cycle_view_;
+
+ // The widget that hosts the window cycle UI.
+ views::Widget* cycle_ui_widget_;
+
DISALLOW_COPY_AND_ASSIGN(WindowCycleList);
};

Powered by Google App Engine
This is Rietveld 408576698