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" |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 | 50 |
51 // Gets the default keyboard layout. | 51 // Gets the default keyboard layout. |
52 KEYBOARD_EXPORT std::string GetKeyboardLayout(); | 52 KEYBOARD_EXPORT std::string GetKeyboardLayout(); |
53 | 53 |
54 // Returns true if the virtual keyboard is enabled. | 54 // Returns true if the virtual keyboard is enabled. |
55 KEYBOARD_EXPORT bool IsKeyboardEnabled(); | 55 KEYBOARD_EXPORT bool IsKeyboardEnabled(); |
56 | 56 |
57 // Returns true if the keyboard usability test is enabled. | 57 // Returns true if the keyboard usability test is enabled. |
58 KEYBOARD_EXPORT bool IsKeyboardUsabilityExperimentEnabled(); | 58 KEYBOARD_EXPORT bool IsKeyboardUsabilityExperimentEnabled(); |
59 | 59 |
| 60 // Returns true if keyboard overscroll mode is enabled. |
| 61 KEYBOARD_EXPORT bool IsKeyboardOverscrollEnabled(); |
| 62 |
60 // Insert |text| into the active TextInputClient associated with |root_window|, | 63 // Insert |text| into the active TextInputClient associated with |root_window|, |
61 // if there is one. Returns true if |text| was successfully inserted. Note | 64 // if there is one. Returns true if |text| was successfully inserted. Note |
62 // that this may convert |text| into ui::KeyEvents for injection in some | 65 // that this may convert |text| into ui::KeyEvents for injection in some |
63 // special circumstances (i.e. VKEY_RETURN, VKEY_BACK). | 66 // special circumstances (i.e. VKEY_RETURN, VKEY_BACK). |
64 KEYBOARD_EXPORT bool InsertText(const base::string16& text, | 67 KEYBOARD_EXPORT bool InsertText(const base::string16& text, |
65 aura::Window* root_window); | 68 aura::Window* root_window); |
66 | 69 |
67 // Move cursor when swipe on the virtualkeyboard. Returns true if cursor was | 70 // Move cursor when swipe on the virtualkeyboard. Returns true if cursor was |
68 // successfully moved according to |swipe_direction|. | 71 // successfully moved according to |swipe_direction|. |
69 KEYBOARD_EXPORT bool MoveCursor(int swipe_direction, | 72 KEYBOARD_EXPORT bool MoveCursor(int swipe_direction, |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 | 106 |
104 // Gets the override content url. | 107 // Gets the override content url. |
105 KEYBOARD_EXPORT const GURL& GetOverrideContentUrl(); | 108 KEYBOARD_EXPORT const GURL& GetOverrideContentUrl(); |
106 | 109 |
107 // Logs the keyboard control event as a UMA stat. | 110 // Logs the keyboard control event as a UMA stat. |
108 void LogKeyboardControlEvent(KeyboardControlEvent event); | 111 void LogKeyboardControlEvent(KeyboardControlEvent event); |
109 | 112 |
110 } // namespace keyboard | 113 } // namespace keyboard |
111 | 114 |
112 #endif // UI_KEYBOARD_KEYBOARD_UTIL_H_ | 115 #endif // UI_KEYBOARD_KEYBOARD_UTIL_H_ |
OLD | NEW |