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

Unified Diff: ash/common/wm/window_cycle_list.h

Issue 2237703003: Ash Window Cycle UI - add initial show delay and fade in. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add widget name Created 4 years, 4 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 | « no previous file | 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 3ae21ae0f802db7ea5ad2066714ec01422b22698..34af309cdbf1802dfb837b67838a2786b2fc0ee7 100644
--- a/ash/common/wm/window_cycle_list.h
+++ b/ash/common/wm/window_cycle_list.h
@@ -12,6 +12,7 @@
#include "ash/common/wm/window_cycle_controller.h"
#include "ash/common/wm_window_observer.h"
#include "base/macros.h"
+#include "base/timer/timer.h"
namespace views {
class Label;
@@ -52,6 +53,9 @@ class ASH_EXPORT WindowCycleList : public WmWindowObserver {
// Returns true if the window list overlay should be shown.
bool ShouldShowUi();
+ // Initializes and shows |cycle_view_|.
+ void InitWindowCycleView();
+
// 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
@@ -72,6 +76,9 @@ class ASH_EXPORT WindowCycleList : public WmWindowObserver {
// The widget that hosts the window cycle UI.
std::unique_ptr<views::Widget> cycle_ui_widget_;
+ // A timer to delay showing the UI. Quick Alt+Tab should not flash a UI.
+ base::OneShotTimer show_ui_timer_;
+
DISALLOW_COPY_AND_ASSIGN(WindowCycleList);
};
« no previous file with comments | « no previous file | ash/common/wm/window_cycle_list.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698