| 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 | 72 |
| 73 // Gets the state of the touch onscreen keyboard. | 73 // Gets the state of the touch onscreen keyboard. |
| 74 KEYBOARD_EXPORT bool GetTouchKeyboardEnabled(); | 74 KEYBOARD_EXPORT bool GetTouchKeyboardEnabled(); |
| 75 | 75 |
| 76 // Gets the default keyboard layout. | 76 // Gets the default keyboard layout. |
| 77 KEYBOARD_EXPORT std::string GetKeyboardLayout(); | 77 KEYBOARD_EXPORT std::string GetKeyboardLayout(); |
| 78 | 78 |
| 79 // Returns true if the virtual keyboard is enabled. | 79 // Returns true if the virtual keyboard is enabled. |
| 80 KEYBOARD_EXPORT bool IsKeyboardEnabled(); | 80 KEYBOARD_EXPORT bool IsKeyboardEnabled(); |
| 81 | 81 |
| 82 // Returns true if the keyboard usability test is enabled. | |
| 83 KEYBOARD_EXPORT bool IsKeyboardUsabilityExperimentEnabled(); | |
| 84 | |
| 85 // Returns true if keyboard overscroll mode is enabled. | 82 // Returns true if keyboard overscroll mode is enabled. |
| 86 KEYBOARD_EXPORT bool IsKeyboardOverscrollEnabled(); | 83 KEYBOARD_EXPORT bool IsKeyboardOverscrollEnabled(); |
| 87 | 84 |
| 88 // Sets temporary keyboard overscroll override. | 85 // Sets temporary keyboard overscroll override. |
| 89 KEYBOARD_EXPORT void SetKeyboardOverscrollOverride( | 86 KEYBOARD_EXPORT void SetKeyboardOverscrollOverride( |
| 90 KeyboardOverscrolOverride override); | 87 KeyboardOverscrolOverride override); |
| 91 | 88 |
| 92 // Sets policy override on whether to show the keyboard. | 89 // Sets policy override on whether to show the keyboard. |
| 93 KEYBOARD_EXPORT void SetKeyboardShowOverride(KeyboardShowOverride override); | 90 KEYBOARD_EXPORT void SetKeyboardShowOverride(KeyboardShowOverride override); |
| 94 | 91 |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 | 142 |
| 146 // Gets the override content url. | 143 // Gets the override content url. |
| 147 KEYBOARD_EXPORT const GURL& GetOverrideContentUrl(); | 144 KEYBOARD_EXPORT const GURL& GetOverrideContentUrl(); |
| 148 | 145 |
| 149 // Logs the keyboard control event as a UMA stat. | 146 // Logs the keyboard control event as a UMA stat. |
| 150 void LogKeyboardControlEvent(KeyboardControlEvent event); | 147 void LogKeyboardControlEvent(KeyboardControlEvent event); |
| 151 | 148 |
| 152 } // namespace keyboard | 149 } // namespace keyboard |
| 153 | 150 |
| 154 #endif // UI_KEYBOARD_KEYBOARD_UTIL_H_ | 151 #endif // UI_KEYBOARD_KEYBOARD_UTIL_H_ |
| OLD | NEW |