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

Unified Diff: ash/wm/window_cycle_event_filter_aura.h

Issue 2642273002: CrOS - Make it possible to Alt+Tab while dragging a tab (Closed)
Patch Set: fix tests Created 3 years, 11 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_unittest.cc ('k') | ash/wm/window_cycle_event_filter_aura.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/window_cycle_event_filter_aura.h
diff --git a/ash/wm/window_cycle_event_filter_aura.h b/ash/wm/window_cycle_event_filter_aura.h
index d3a8e44c660ee1646f32b30b98ab2275b87ccb11..eb567f62b7a7f1415d6a2214e9e7e73e0c6639fe 100644
--- a/ash/wm/window_cycle_event_filter_aura.h
+++ b/ash/wm/window_cycle_event_filter_aura.h
@@ -20,14 +20,28 @@ class WindowCycleEventFilterAura : public ui::EventHandler,
// Overridden from ui::EventHandler:
void OnKeyEvent(ui::KeyEvent* event) override;
+ void OnMouseEvent(ui::MouseEvent* event) override;
private:
+ class AltReleaseHandler : public ui::EventHandler {
+ public:
+ AltReleaseHandler();
+ ~AltReleaseHandler() override;
+
+ void OnKeyEvent(ui::KeyEvent* event) override;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(AltReleaseHandler);
+ };
+
// When the user holds Alt+Tab, this timer is used to send repeated
// cycle commands to WindowCycleController. Note this is not accomplished
// by marking the Alt+Tab accelerator as "repeatable" in the accelerator
// table because we wish to control the repeat interval.
base::RepeatingTimer repeat_timer_;
+ AltReleaseHandler alt_release_handler_;
+
DISALLOW_COPY_AND_ASSIGN(WindowCycleEventFilterAura);
};
« no previous file with comments | « ash/wm/window_cycle_controller_unittest.cc ('k') | ash/wm/window_cycle_event_filter_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698