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

Unified Diff: ash/wm/window_selector_controller.h

Issue 22667003: Reland "216874 - Use overview mode for alt-tab cycling." (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix use after free in event handling. Created 7 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 | « ash/wm/window_selector.cc ('k') | ash/wm/window_selector_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/window_selector_controller.h
diff --git a/ash/wm/window_selector_controller.h b/ash/wm/window_selector_controller.h
index 8b1100570b4bd5092eae914662a940d5e5a5eb9c..385c30ef245672bd86044cb94e6fe64260a6a8f0 100644
--- a/ash/wm/window_selector_controller.h
+++ b/ash/wm/window_selector_controller.h
@@ -9,6 +9,7 @@
#include <vector>
#include "ash/ash_export.h"
+#include "ash/wm/window_selector.h"
#include "ash/wm/window_selector_delegate.h"
#include "base/basictypes.h"
#include "base/memory/scoped_ptr.h"
@@ -18,6 +19,10 @@ namespace aura {
class Window;
}
+namespace ui {
+class EventHandler;
+}
+
namespace ash {
class WindowSelector;
@@ -39,6 +44,15 @@ class ASH_EXPORT WindowSelectorController
// or touch rather than keypresses.
void ToggleOverview();
+ // Cycles between windows in the given |direction|. It is assumed that the
+ // alt key is held down and a key filter is installed to watch for alt being
+ // released.
+ void HandleCycleWindow(WindowSelector::Direction direction);
+
+ // Informs the controller that the Alt key has been released and it can
+ // terminate the existing multi-step cycle.
+ void AltKeyReleased();
+
// Returns true if window selection mode is active.
bool IsSelecting();
@@ -48,6 +62,7 @@ class ASH_EXPORT WindowSelectorController
private:
scoped_ptr<WindowSelector> window_selector_;
+ scoped_ptr<ui::EventHandler> event_handler_;
DISALLOW_COPY_AND_ASSIGN(WindowSelectorController);
};
« no previous file with comments | « ash/wm/window_selector.cc ('k') | ash/wm/window_selector_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698