OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_UI_ASH_EVENT_REWRITER_H_ | 5 #ifndef CHROME_BROWSER_UI_ASH_EVENT_REWRITER_H_ |
6 #define CHROME_BROWSER_UI_ASH_EVENT_REWRITER_H_ | 6 #define CHROME_BROWSER_UI_ASH_EVENT_REWRITER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 // * Alt+Backspace -> Delete | 166 // * Alt+Backspace -> Delete |
167 // * Alt+Up -> Prior (aka PageUp) | 167 // * Alt+Up -> Prior (aka PageUp) |
168 // * Alt+Down -> Next (aka PageDown) | 168 // * Alt+Down -> Next (aka PageDown) |
169 // * Ctrl+Alt+Up -> Home | 169 // * Ctrl+Alt+Up -> Home |
170 // * Ctrl+Alt+Down -> End | 170 // * Ctrl+Alt+Down -> End |
171 // When the Search key acts as a function key, it instead maps: | 171 // When the Search key acts as a function key, it instead maps: |
172 // * Search+Backspace -> Delete | 172 // * Search+Backspace -> Delete |
173 // * Search+Up -> Prior (aka PageUp) | 173 // * Search+Up -> Prior (aka PageUp) |
174 // * Search+Down -> Next (aka PageDown) | 174 // * Search+Down -> Next (aka PageDown) |
175 // * Search+Left -> Home | 175 // * Search+Left -> Home |
176 // * Search+right -> End | 176 // * Search+Right -> End |
| 177 // * Search+. -> Insert |
177 // Returns true when the |event| is rewritten. | 178 // Returns true when the |event| is rewritten. |
178 bool RewriteBackspaceAndArrowKeys(ui::KeyEvent* event); | 179 bool RewriteExtendedKeys(ui::KeyEvent* event); |
179 | 180 |
180 // When the Search key acts as a function key, it remaps Search+1 | 181 // When the Search key acts as a function key, it remaps Search+1 |
181 // through Search+= to F1 through F12. Returns true when the |event| is | 182 // through Search+= to F1 through F12. Returns true when the |event| is |
182 // rewritten. | 183 // rewritten. |
183 bool RewriteFunctionKeys(ui::KeyEvent* event); | 184 bool RewriteFunctionKeys(ui::KeyEvent* event); |
184 | 185 |
185 // Rewrites the located |event|. | 186 // Rewrites the located |event|. |
186 void RewriteLocatedEvent(ui::LocatedEvent* event); | 187 void RewriteLocatedEvent(ui::LocatedEvent* event); |
187 | 188 |
188 // Overwrites |event| with the keycodes and flags. | 189 // Overwrites |event| with the keycodes and flags. |
(...skipping 28 matching lines...) Expand all Loading... |
217 | 218 |
218 chromeos::input_method::XKeyboard* xkeyboard_; // for testing. | 219 chromeos::input_method::XKeyboard* xkeyboard_; // for testing. |
219 #endif | 220 #endif |
220 | 221 |
221 const PrefService* pref_service_; // for testing. | 222 const PrefService* pref_service_; // for testing. |
222 | 223 |
223 DISALLOW_COPY_AND_ASSIGN(EventRewriter); | 224 DISALLOW_COPY_AND_ASSIGN(EventRewriter); |
224 }; | 225 }; |
225 | 226 |
226 #endif // CHROME_BROWSER_UI_ASH_EVENT_REWRITER_H_ | 227 #endif // CHROME_BROWSER_UI_ASH_EVENT_REWRITER_H_ |
OLD | NEW |