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

Unified Diff: ash/wm/sticky_keys.h

Issue 81863002: Sticky keys modifies an entire scroll sequence instead of just a single event. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebasing Created 7 years, 1 month 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/wm/sticky_keys.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/sticky_keys.h
diff --git a/ash/wm/sticky_keys.h b/ash/wm/sticky_keys.h
index 7b8f6f1deecfa624207264783c8b01e90cb39a90..1a2789214bbfb46af8ec4b1a3bf2e7cd662c36c1 100644
--- a/ash/wm/sticky_keys.h
+++ b/ash/wm/sticky_keys.h
@@ -222,6 +222,11 @@ class ASH_EXPORT StickyKeysHandler {
// the ENABLED state.
bool preparing_to_enable_;
+ // Tracks the scroll direction of the current scroll sequence. Sticky keys
+ // stops modifying the scroll events of the sequence when the direction
+ // changes. If no sequence is tracked, the value is 0.
+ int scroll_delta_;
+
// The modifier up key event to be sent on non modifier key on ENABLED state.
scoped_ptr<ui::KeyEvent> modifier_up_event_;
« no previous file with comments | « no previous file | ash/wm/sticky_keys.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698