| 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 | 56 |
| 57 // Gets the default keyboard layout. | 57 // Gets the default keyboard layout. |
| 58 KEYBOARD_EXPORT std::string GetKeyboardLayout(); | 58 KEYBOARD_EXPORT std::string GetKeyboardLayout(); |
| 59 | 59 |
| 60 // Returns true if the virtual keyboard is enabled. | 60 // Returns true if the virtual keyboard is enabled. |
| 61 KEYBOARD_EXPORT bool IsKeyboardEnabled(); | 61 KEYBOARD_EXPORT bool IsKeyboardEnabled(); |
| 62 | 62 |
| 63 // Returns true if the keyboard usability test is enabled. | 63 // Returns true if the keyboard usability test is enabled. |
| 64 KEYBOARD_EXPORT bool IsKeyboardUsabilityExperimentEnabled(); | 64 KEYBOARD_EXPORT bool IsKeyboardUsabilityExperimentEnabled(); |
| 65 | 65 |
| 66 // Returns true if keyboard overscroll mode is enabled. |
| 67 KEYBOARD_EXPORT bool IsKeyboardOverscrollEnabled(); |
| 68 |
| 66 // Returns true if an IME extension can specify a custom input view for the | 69 // Returns true if an IME extension can specify a custom input view for the |
| 67 // virtual keyboard window. | 70 // virtual keyboard window. |
| 68 KEYBOARD_EXPORT bool IsInputViewEnabled(); | 71 KEYBOARD_EXPORT bool IsInputViewEnabled(); |
| 69 | 72 |
| 70 // Insert |text| into the active TextInputClient associated with |root_window|, | 73 // Insert |text| into the active TextInputClient associated with |root_window|, |
| 71 // if there is one. Returns true if |text| was successfully inserted. Note | 74 // if there is one. Returns true if |text| was successfully inserted. Note |
| 72 // that this may convert |text| into ui::KeyEvents for injection in some | 75 // that this may convert |text| into ui::KeyEvents for injection in some |
| 73 // special circumstances (i.e. VKEY_RETURN, VKEY_BACK). | 76 // special circumstances (i.e. VKEY_RETURN, VKEY_BACK). |
| 74 KEYBOARD_EXPORT bool InsertText(const base::string16& text, | 77 KEYBOARD_EXPORT bool InsertText(const base::string16& text, |
| 75 aura::Window* root_window); | 78 aura::Window* root_window); |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 | 116 |
| 114 // Gets the override content url. | 117 // Gets the override content url. |
| 115 KEYBOARD_EXPORT const GURL& GetOverrideContentUrl(); | 118 KEYBOARD_EXPORT const GURL& GetOverrideContentUrl(); |
| 116 | 119 |
| 117 // Logs the keyboard control event as a UMA stat. | 120 // Logs the keyboard control event as a UMA stat. |
| 118 void LogKeyboardControlEvent(KeyboardControlEvent event); | 121 void LogKeyboardControlEvent(KeyboardControlEvent event); |
| 119 | 122 |
| 120 } // namespace keyboard | 123 } // namespace keyboard |
| 121 | 124 |
| 122 #endif // UI_KEYBOARD_KEYBOARD_UTIL_H_ | 125 #endif // UI_KEYBOARD_KEYBOARD_UTIL_H_ |
| OLD | NEW |