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

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

Issue 598733002: Support search as a sticky key. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkcr
Patch Set: Add Search+Left test. Created 6 years, 2 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 | 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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 141
142 // Whether the current layout has an altgr key. 142 // Whether the current layout has an altgr key.
143 bool altgr_enabled_; 143 bool altgr_enabled_;
144 144
145 // Sticky key handlers. 145 // Sticky key handlers.
146 scoped_ptr<StickyKeysHandler> shift_sticky_key_; 146 scoped_ptr<StickyKeysHandler> shift_sticky_key_;
147 scoped_ptr<StickyKeysHandler> alt_sticky_key_; 147 scoped_ptr<StickyKeysHandler> alt_sticky_key_;
148 scoped_ptr<StickyKeysHandler> altgr_sticky_key_; 148 scoped_ptr<StickyKeysHandler> altgr_sticky_key_;
149 scoped_ptr<StickyKeysHandler> ctrl_sticky_key_; 149 scoped_ptr<StickyKeysHandler> ctrl_sticky_key_;
150 scoped_ptr<StickyKeysHandler> mod3_sticky_key_; 150 scoped_ptr<StickyKeysHandler> mod3_sticky_key_;
151 scoped_ptr<StickyKeysHandler> search_sticky_key_;
151 152
152 scoped_ptr<StickyKeysOverlay> overlay_; 153 scoped_ptr<StickyKeysOverlay> overlay_;
153 154
154 DISALLOW_COPY_AND_ASSIGN(StickyKeysController); 155 DISALLOW_COPY_AND_ASSIGN(StickyKeysController);
155 }; 156 };
156 157
157 // StickyKeysHandler handles key event and controls sticky keysfor specific 158 // StickyKeysHandler handles key event and controls sticky keysfor specific
158 // modifier keys. If monitored keyboard events are recieved, StickyKeysHandler 159 // modifier keys. If monitored keyboard events are recieved, StickyKeysHandler
159 // changes internal state. If non modifier keyboard events or mouse events are 160 // changes internal state. If non modifier keyboard events or mouse events are
160 // received, StickyKeysHandler will append modifier based on internal state. 161 // received, StickyKeysHandler will append modifier based on internal state.
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 271
271 // The modifier up key event to be sent on non modifier key on ENABLED state. 272 // The modifier up key event to be sent on non modifier key on ENABLED state.
272 scoped_ptr<ui::KeyEvent> modifier_up_event_; 273 scoped_ptr<ui::KeyEvent> modifier_up_event_;
273 274
274 DISALLOW_COPY_AND_ASSIGN(StickyKeysHandler); 275 DISALLOW_COPY_AND_ASSIGN(StickyKeysHandler);
275 }; 276 };
276 277
277 } // namespace ash 278 } // namespace ash
278 279
279 #endif // ASH_STICKY_KEYS_STICKY_KEYS_CONTROLLER_H_ 280 #endif // ASH_STICKY_KEYS_STICKY_KEYS_CONTROLLER_H_
OLDNEW
« no previous file with comments | « no previous file | ash/sticky_keys/sticky_keys_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698