| 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 // is in FULL_WDITH mode. | 57 // is in FULL_WDITH mode. |
| 58 KEYBOARD_EXPORT gfx::Rect FullWidthKeyboardBoundsFromRootBounds( | 58 KEYBOARD_EXPORT gfx::Rect FullWidthKeyboardBoundsFromRootBounds( |
| 59 const gfx::Rect& root_bounds, int keyboard_height); | 59 const gfx::Rect& root_bounds, int keyboard_height); |
| 60 | 60 |
| 61 // Sets the state of the a11y onscreen keyboard. | 61 // Sets the state of the a11y onscreen keyboard. |
| 62 KEYBOARD_EXPORT void SetAccessibilityKeyboardEnabled(bool enabled); | 62 KEYBOARD_EXPORT void SetAccessibilityKeyboardEnabled(bool enabled); |
| 63 | 63 |
| 64 // Gets the state of the a11y onscreen keyboard. | 64 // Gets the state of the a11y onscreen keyboard. |
| 65 KEYBOARD_EXPORT bool GetAccessibilityKeyboardEnabled(); | 65 KEYBOARD_EXPORT bool GetAccessibilityKeyboardEnabled(); |
| 66 | 66 |
| 67 // Sets the state of the hotrod onscreen keyboard. |
| 68 KEYBOARD_EXPORT void SetHotrodKeyboardEnabled(bool enabled); |
| 69 |
| 70 // Gets the state of the hotrod onscreen keyboard. |
| 71 KEYBOARD_EXPORT bool GetHotrodKeyboardEnabled(); |
| 72 |
| 67 // Sets the state of the touch onscreen keyboard. | 73 // Sets the state of the touch onscreen keyboard. |
| 68 KEYBOARD_EXPORT void SetTouchKeyboardEnabled(bool enabled); | 74 KEYBOARD_EXPORT void SetTouchKeyboardEnabled(bool enabled); |
| 69 | 75 |
| 70 // Gets the state of the touch onscreen keyboard. | 76 // Gets the state of the touch onscreen keyboard. |
| 71 KEYBOARD_EXPORT bool GetTouchKeyboardEnabled(); | 77 KEYBOARD_EXPORT bool GetTouchKeyboardEnabled(); |
| 72 | 78 |
| 73 // Gets the default keyboard layout. | 79 // Gets the default keyboard layout. |
| 74 KEYBOARD_EXPORT std::string GetKeyboardLayout(); | 80 KEYBOARD_EXPORT std::string GetKeyboardLayout(); |
| 75 | 81 |
| 76 // Returns true if the virtual keyboard is enabled. | 82 // Returns true if the virtual keyboard is enabled. |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 | 157 |
| 152 // Gets the override content url. | 158 // Gets the override content url. |
| 153 KEYBOARD_EXPORT const GURL& GetOverrideContentUrl(); | 159 KEYBOARD_EXPORT const GURL& GetOverrideContentUrl(); |
| 154 | 160 |
| 155 // Logs the keyboard control event as a UMA stat. | 161 // Logs the keyboard control event as a UMA stat. |
| 156 void LogKeyboardControlEvent(KeyboardControlEvent event); | 162 void LogKeyboardControlEvent(KeyboardControlEvent event); |
| 157 | 163 |
| 158 } // namespace keyboard | 164 } // namespace keyboard |
| 159 | 165 |
| 160 #endif // UI_KEYBOARD_KEYBOARD_UTIL_H_ | 166 #endif // UI_KEYBOARD_KEYBOARD_UTIL_H_ |
| OLD | NEW |