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