OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 UI_KEYBOARD_KEYBOARD_UTIL_H_ | 5 #ifndef UI_KEYBOARD_KEYBOARD_UTIL_H_ |
6 #define UI_KEYBOARD_KEYBOARD_UTIL_H_ | 6 #define UI_KEYBOARD_KEYBOARD_UTIL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
11 // TODO(beng): replace with forward decl once RootWindow is renamed. | 11 // TODO(beng): replace with forward decl once RootWindow is renamed. |
12 #include "ui/aura/window.h" | 12 #include "ui/aura/window.h" |
13 #include "ui/keyboard/keyboard_export.h" | 13 #include "ui/keyboard/keyboard_export.h" |
14 | 14 |
15 struct GritResourceMap; | 15 struct GritResourceMap; |
16 | 16 |
| 17 namespace aura { |
| 18 class WindowEventDispatcher; |
| 19 } |
| 20 |
17 namespace keyboard { | 21 namespace keyboard { |
18 | 22 |
19 // Enumeration of swipe directions. | 23 // Enumeration of swipe directions. |
20 enum CursorMoveDirection { | 24 enum CursorMoveDirection { |
21 kCursorMoveRight = 0x01, | 25 kCursorMoveRight = 0x01, |
22 kCursorMoveLeft = 0x02, | 26 kCursorMoveLeft = 0x02, |
23 kCursorMoveUp = 0x04, | 27 kCursorMoveUp = 0x04, |
24 kCursorMoveDown = 0x08 | 28 kCursorMoveDown = 0x08 |
25 }; | 29 }; |
26 | 30 |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 // resources in the returned array. | 90 // resources in the returned array. |
87 KEYBOARD_EXPORT const GritResourceMap* GetKeyboardExtensionResources( | 91 KEYBOARD_EXPORT const GritResourceMap* GetKeyboardExtensionResources( |
88 size_t* size); | 92 size_t* size); |
89 | 93 |
90 // Logs the keyboard control event as a UMA stat. | 94 // Logs the keyboard control event as a UMA stat. |
91 void LogKeyboardControlEvent(KeyboardControlEvent event); | 95 void LogKeyboardControlEvent(KeyboardControlEvent event); |
92 | 96 |
93 } // namespace keyboard | 97 } // namespace keyboard |
94 | 98 |
95 #endif // UI_KEYBOARD_KEYBOARD_UTIL_H_ | 99 #endif // UI_KEYBOARD_KEYBOARD_UTIL_H_ |
OLD | NEW |