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

Side by Side Diff: ash/sticky_keys/sticky_keys_controller.h

Issue 175343007: Add sticky key support for AltGr (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « ash/ash_strings.grd ('k') | ash/sticky_keys/sticky_keys_controller.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 ASH_STICKY_KEYS_STICKY_KEYS_CONTROLLER_H_ 5 #ifndef ASH_STICKY_KEYS_STICKY_KEYS_CONTROLLER_H_
6 #define ASH_STICKY_KEYS_STICKY_KEYS_CONTROLLER_H_ 6 #define ASH_STICKY_KEYS_STICKY_KEYS_CONTROLLER_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "ash/sticky_keys/sticky_keys_state.h" 9 #include "ash/sticky_keys/sticky_keys_state.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 88
89 // Updates the overlay UI with the current state of the sticky keys. 89 // Updates the overlay UI with the current state of the sticky keys.
90 void UpdateOverlay(); 90 void UpdateOverlay();
91 91
92 // Whether sticky keys is activated and modifying events. 92 // Whether sticky keys is activated and modifying events.
93 bool enabled_; 93 bool enabled_;
94 94
95 // Sticky key handlers. 95 // Sticky key handlers.
96 scoped_ptr<StickyKeysHandler> shift_sticky_key_; 96 scoped_ptr<StickyKeysHandler> shift_sticky_key_;
97 scoped_ptr<StickyKeysHandler> alt_sticky_key_; 97 scoped_ptr<StickyKeysHandler> alt_sticky_key_;
98 scoped_ptr<StickyKeysHandler> altgr_sticky_key_;
98 scoped_ptr<StickyKeysHandler> ctrl_sticky_key_; 99 scoped_ptr<StickyKeysHandler> ctrl_sticky_key_;
99 100
100 scoped_ptr<StickyKeysOverlay> overlay_; 101 scoped_ptr<StickyKeysOverlay> overlay_;
101 102
102 DISALLOW_COPY_AND_ASSIGN(StickyKeysController); 103 DISALLOW_COPY_AND_ASSIGN(StickyKeysController);
103 }; 104 };
104 105
105 // StickyKeysHandler handles key event and controls sticky keysfor specific 106 // StickyKeysHandler handles key event and controls sticky keysfor specific
106 // modifier keys. If monitored keyboard events are recieved, StickyKeysHandler 107 // modifier keys. If monitored keyboard events are recieved, StickyKeysHandler
107 // changes internal state. If non modifier keyboard events or mouse events are 108 // changes internal state. If non modifier keyboard events or mouse events are
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 scoped_ptr<ui::KeyEvent> modifier_up_event_; 230 scoped_ptr<ui::KeyEvent> modifier_up_event_;
230 231
231 scoped_ptr<StickyKeysHandlerDelegate> delegate_; 232 scoped_ptr<StickyKeysHandlerDelegate> delegate_;
232 233
233 DISALLOW_COPY_AND_ASSIGN(StickyKeysHandler); 234 DISALLOW_COPY_AND_ASSIGN(StickyKeysHandler);
234 }; 235 };
235 236
236 } // namespace ash 237 } // namespace ash
237 238
238 #endif // ASH_STICKY_KEYS_STICKY_KEYS_CONTROLLER_H_ 239 #endif // ASH_STICKY_KEYS_STICKY_KEYS_CONTROLLER_H_
OLDNEW
« no previous file with comments | « ash/ash_strings.grd ('k') | ash/sticky_keys/sticky_keys_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698