| 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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. | 71 // Returns true if keyboard overscroll mode is enabled. |
| 72 KEYBOARD_EXPORT bool IsKeyboardOverscrollEnabled(); | 72 KEYBOARD_EXPORT bool IsKeyboardOverscrollEnabled(); |
| 73 | 73 |
| 74 // Sets temporary keyboard overscroll enabled override. |
| 75 KEYBOARD_EXPORT void SetKeyboardOverscrollEnabledOverrideValue(bool enabled); |
| 76 |
| 77 // Enables temporary keyboard overscroll override. |
| 78 KEYBOARD_EXPORT void SetKeyboardOverscrollOverrideEnabled(bool enabled); |
| 79 |
| 74 // Returns true if an IME extension can specify a custom input view for the | 80 // Returns true if an IME extension can specify a custom input view for the |
| 75 // virtual keyboard window. | 81 // virtual keyboard window. |
| 76 KEYBOARD_EXPORT bool IsInputViewEnabled(); | 82 KEYBOARD_EXPORT bool IsInputViewEnabled(); |
| 77 | 83 |
| 78 // Insert |text| into the active TextInputClient associated with |root_window|, | 84 // Insert |text| into the active TextInputClient associated with |root_window|, |
| 79 // if there is one. Returns true if |text| was successfully inserted. Note | 85 // if there is one. Returns true if |text| was successfully inserted. Note |
| 80 // that this may convert |text| into ui::KeyEvents for injection in some | 86 // that this may convert |text| into ui::KeyEvents for injection in some |
| 81 // special circumstances (i.e. VKEY_RETURN, VKEY_BACK). | 87 // special circumstances (i.e. VKEY_RETURN, VKEY_BACK). |
| 82 KEYBOARD_EXPORT bool InsertText(const base::string16& text, | 88 KEYBOARD_EXPORT bool InsertText(const base::string16& text, |
| 83 aura::Window* root_window); | 89 aura::Window* root_window); |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 | 127 |
| 122 // Gets the override content url. | 128 // Gets the override content url. |
| 123 KEYBOARD_EXPORT const GURL& GetOverrideContentUrl(); | 129 KEYBOARD_EXPORT const GURL& GetOverrideContentUrl(); |
| 124 | 130 |
| 125 // Logs the keyboard control event as a UMA stat. | 131 // Logs the keyboard control event as a UMA stat. |
| 126 void LogKeyboardControlEvent(KeyboardControlEvent event); | 132 void LogKeyboardControlEvent(KeyboardControlEvent event); |
| 127 | 133 |
| 128 } // namespace keyboard | 134 } // namespace keyboard |
| 129 | 135 |
| 130 #endif // UI_KEYBOARD_KEYBOARD_UTIL_H_ | 136 #endif // UI_KEYBOARD_KEYBOARD_UTIL_H_ |
| OLD | NEW |