| 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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 | 88 |
| 89 // Gets the requested state of the keyboard. | 89 // Gets the requested state of the keyboard. |
| 90 KEYBOARD_EXPORT int GetRequestedKeyboardState(); | 90 KEYBOARD_EXPORT int GetRequestedKeyboardState(); |
| 91 | 91 |
| 92 // Gets the default keyboard layout. | 92 // Gets the default keyboard layout. |
| 93 KEYBOARD_EXPORT std::string GetKeyboardLayout(); | 93 KEYBOARD_EXPORT std::string GetKeyboardLayout(); |
| 94 | 94 |
| 95 // Returns true if the virtual keyboard is enabled. | 95 // Returns true if the virtual keyboard is enabled. |
| 96 KEYBOARD_EXPORT bool IsKeyboardEnabled(); | 96 KEYBOARD_EXPORT bool IsKeyboardEnabled(); |
| 97 | 97 |
| 98 // Returns true if the virtual keyboard is currently visible. |
| 99 KEYBOARD_EXPORT bool IsKeyboardVisible(); |
| 100 |
| 98 // Returns true if smart deployment of the virtual keyboard is enabled. | 101 // Returns true if smart deployment of the virtual keyboard is enabled. |
| 99 KEYBOARD_EXPORT bool IsSmartDeployEnabled(); | 102 KEYBOARD_EXPORT bool IsSmartDeployEnabled(); |
| 100 | 103 |
| 101 // Returns true if keyboard overscroll mode is enabled. | 104 // Returns true if keyboard overscroll mode is enabled. |
| 102 KEYBOARD_EXPORT bool IsKeyboardOverscrollEnabled(); | 105 KEYBOARD_EXPORT bool IsKeyboardOverscrollEnabled(); |
| 103 | 106 |
| 104 // Sets temporary keyboard overscroll override. | 107 // Sets temporary keyboard overscroll override. |
| 105 KEYBOARD_EXPORT void SetKeyboardOverscrollOverride( | 108 KEYBOARD_EXPORT void SetKeyboardOverscrollOverride( |
| 106 KeyboardOverscrolOverride override); | 109 KeyboardOverscrolOverride override); |
| 107 | 110 |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 // Logs the keyboard control event as a UMA stat. | 181 // Logs the keyboard control event as a UMA stat. |
| 179 void LogKeyboardControlEvent(KeyboardControlEvent event); | 182 void LogKeyboardControlEvent(KeyboardControlEvent event); |
| 180 | 183 |
| 181 // Sets true if keyboard overscrolling is enabled with accessibility keyboard. | 184 // Sets true if keyboard overscrolling is enabled with accessibility keyboard. |
| 182 KEYBOARD_EXPORT void SetOverscrollEnabledWithAccessibilityKeyboard( | 185 KEYBOARD_EXPORT void SetOverscrollEnabledWithAccessibilityKeyboard( |
| 183 bool enabled); | 186 bool enabled); |
| 184 | 187 |
| 185 } // namespace keyboard | 188 } // namespace keyboard |
| 186 | 189 |
| 187 #endif // UI_KEYBOARD_KEYBOARD_UTIL_H_ | 190 #endif // UI_KEYBOARD_KEYBOARD_UTIL_H_ |
| OLD | NEW |