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

Side by Side Diff: chrome/browser/chromeos/events/event_rewriter.h

Issue 399443004: Maintain Diamond (F15) modifier state when rewriting. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/chromeos/events/event_rewriter.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_CHROMEOS_EVENTS_EVENT_REWRITER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_EVENTS_EVENT_REWRITER_H_
6 #define CHROME_BROWSER_CHROMEOS_EVENTS_EVENT_REWRITER_H_ 6 #define CHROME_BROWSER_CHROMEOS_EVENTS_EVENT_REWRITER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 // used to interpret modifiers on pointer events. 175 // used to interpret modifiers on pointer events.
176 int last_keyboard_device_id_; 176 int last_keyboard_device_id_;
177 177
178 chromeos::input_method::ImeKeyboard* ime_keyboard_for_testing_; 178 chromeos::input_method::ImeKeyboard* ime_keyboard_for_testing_;
179 const PrefService* pref_service_for_testing_; 179 const PrefService* pref_service_for_testing_;
180 180
181 // The sticky keys controller is not owned here; 181 // The sticky keys controller is not owned here;
182 // at time of writing it is a singleton in ash::Shell> 182 // at time of writing it is a singleton in ash::Shell>
183 ash::StickyKeysController* sticky_keys_controller_; 183 ash::StickyKeysController* sticky_keys_controller_;
184 184
185 // The ChromeOS Diamond key arrives as F15. Since F15 is not a modifier,
186 // we need to track its pressed state explicitly, and apply the selected
187 // modifier flag to key and mouse presses that arrive while F15 is down.
188 int active_diamond_modifier_;
Daniel Erat 2014/07/15 23:53:25 nit: document what this actually holds (i.e. an ev
kpschoedel 2014/07/16 15:12:28 Done.
189
185 DISALLOW_COPY_AND_ASSIGN(EventRewriter); 190 DISALLOW_COPY_AND_ASSIGN(EventRewriter);
186 }; 191 };
187 192
188 } // namespace chromeos 193 } // namespace chromeos
189 194
190 #endif // CHROME_BROWSER_CHROMEOS_EVENTS_EVENT_REWRITER_H_ 195 #endif // CHROME_BROWSER_CHROMEOS_EVENTS_EVENT_REWRITER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/events/event_rewriter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698