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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 // is in FULL_WDITH mode. | 67 // is in FULL_WDITH mode. |
68 KEYBOARD_EXPORT gfx::Rect FullWidthKeyboardBoundsFromRootBounds( | 68 KEYBOARD_EXPORT gfx::Rect FullWidthKeyboardBoundsFromRootBounds( |
69 const gfx::Rect& root_bounds, int keyboard_height); | 69 const gfx::Rect& root_bounds, int keyboard_height); |
70 | 70 |
71 // Sets the state of the a11y onscreen keyboard. | 71 // Sets the state of the a11y onscreen keyboard. |
72 KEYBOARD_EXPORT void SetAccessibilityKeyboardEnabled(bool enabled); | 72 KEYBOARD_EXPORT void SetAccessibilityKeyboardEnabled(bool enabled); |
73 | 73 |
74 // Gets the state of the a11y onscreen keyboard. | 74 // Gets the state of the a11y onscreen keyboard. |
75 KEYBOARD_EXPORT bool GetAccessibilityKeyboardEnabled(); | 75 KEYBOARD_EXPORT bool GetAccessibilityKeyboardEnabled(); |
76 | 76 |
| 77 // Sets the state of the hotrod onscreen keyboard. |
| 78 KEYBOARD_EXPORT void SetHotrodKeyboardEnabled(bool enabled); |
| 79 |
| 80 // Gets the state of the hotrod onscreen keyboard. |
| 81 KEYBOARD_EXPORT bool GetHotrodKeyboardEnabled(); |
| 82 |
77 // Sets the state of the touch onscreen keyboard. | 83 // Sets the state of the touch onscreen keyboard. |
78 KEYBOARD_EXPORT void SetTouchKeyboardEnabled(bool enabled); | 84 KEYBOARD_EXPORT void SetTouchKeyboardEnabled(bool enabled); |
79 | 85 |
80 // Gets the state of the touch onscreen keyboard. | 86 // Gets the state of the touch onscreen keyboard. |
81 KEYBOARD_EXPORT bool GetTouchKeyboardEnabled(); | 87 KEYBOARD_EXPORT bool GetTouchKeyboardEnabled(); |
82 | 88 |
83 // Sets the requested state of the keyboard. | 89 // Sets the requested state of the keyboard. |
84 KEYBOARD_EXPORT void SetRequestedKeyboardState(KeyboardState state); | 90 KEYBOARD_EXPORT void SetRequestedKeyboardState(KeyboardState state); |
85 | 91 |
86 // Gets the requested state of the keyboard. | 92 // Gets the requested state of the keyboard. |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 | 173 |
168 // Gets the override content url. | 174 // Gets the override content url. |
169 KEYBOARD_EXPORT const GURL& GetOverrideContentUrl(); | 175 KEYBOARD_EXPORT const GURL& GetOverrideContentUrl(); |
170 | 176 |
171 // Logs the keyboard control event as a UMA stat. | 177 // Logs the keyboard control event as a UMA stat. |
172 void LogKeyboardControlEvent(KeyboardControlEvent event); | 178 void LogKeyboardControlEvent(KeyboardControlEvent event); |
173 | 179 |
174 } // namespace keyboard | 180 } // namespace keyboard |
175 | 181 |
176 #endif // UI_KEYBOARD_KEYBOARD_UTIL_H_ | 182 #endif // UI_KEYBOARD_KEYBOARD_UTIL_H_ |
OLD | NEW |