| 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 // TODO(beng): replace with forward decl once RootWindow is renamed. | 10 // TODO(beng): replace with forward decl once RootWindow is renamed. |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 | 117 |
| 118 // Returns true if floating virtual keyboard feature is enabled. | 118 // Returns true if floating virtual keyboard feature is enabled. |
| 119 KEYBOARD_EXPORT bool IsFloatingVirtualKeyboardEnabled(); | 119 KEYBOARD_EXPORT bool IsFloatingVirtualKeyboardEnabled(); |
| 120 | 120 |
| 121 // Returns true if gesture typing option is enabled for virtual keyboard. | 121 // Returns true if gesture typing option is enabled for virtual keyboard. |
| 122 KEYBOARD_EXPORT bool IsGestureTypingEnabled(); | 122 KEYBOARD_EXPORT bool IsGestureTypingEnabled(); |
| 123 | 123 |
| 124 // Returns true if gesture editing option is enabled for virtual keyboard. | 124 // Returns true if gesture editing option is enabled for virtual keyboard. |
| 125 KEYBOARD_EXPORT bool IsGestureEditingEnabled(); | 125 KEYBOARD_EXPORT bool IsGestureEditingEnabled(); |
| 126 | 126 |
| 127 // Returns true if voice input is enabled for the keyboard. | 127 // Returns true if voice input is not disabled for the keyboard by the command |
| 128 // line switch. It's up to the client to check if there is an input device |
| 129 // available. |
| 128 KEYBOARD_EXPORT bool IsVoiceInputEnabled(); | 130 KEYBOARD_EXPORT bool IsVoiceInputEnabled(); |
| 129 | 131 |
| 130 // Insert |text| into the active TextInputClient if there is one. Returns true | 132 // Insert |text| into the active TextInputClient if there is one. Returns true |
| 131 // if |text| was successfully inserted. | 133 // if |text| was successfully inserted. |
| 132 KEYBOARD_EXPORT bool InsertText(const base::string16& text); | 134 KEYBOARD_EXPORT bool InsertText(const base::string16& text); |
| 133 | 135 |
| 134 // Move cursor when swipe on the virtualkeyboard. Returns true if cursor was | 136 // Move cursor when swipe on the virtualkeyboard. Returns true if cursor was |
| 135 // successfully moved according to |swipe_direction|. | 137 // successfully moved according to |swipe_direction|. |
| 136 KEYBOARD_EXPORT bool MoveCursor(int swipe_direction, | 138 KEYBOARD_EXPORT bool MoveCursor(int swipe_direction, |
| 137 int modifier_flags, | 139 int modifier_flags, |
| (...skipping 27 matching lines...) Expand all Loading... |
| 165 | 167 |
| 166 // Gets the override content url. | 168 // Gets the override content url. |
| 167 KEYBOARD_EXPORT const GURL& GetOverrideContentUrl(); | 169 KEYBOARD_EXPORT const GURL& GetOverrideContentUrl(); |
| 168 | 170 |
| 169 // Logs the keyboard control event as a UMA stat. | 171 // Logs the keyboard control event as a UMA stat. |
| 170 void LogKeyboardControlEvent(KeyboardControlEvent event); | 172 void LogKeyboardControlEvent(KeyboardControlEvent event); |
| 171 | 173 |
| 172 } // namespace keyboard | 174 } // namespace keyboard |
| 173 | 175 |
| 174 #endif // UI_KEYBOARD_KEYBOARD_UTIL_H_ | 176 #endif // UI_KEYBOARD_KEYBOARD_UTIL_H_ |
| OLD | NEW |