summaryrefslogtreecommitdiff
path: root/chromium/ui/keyboard/keyboard_util.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/ui/keyboard/keyboard_util.h')
-rw-r--r--chromium/ui/keyboard/keyboard_util.h60
1 files changed, 0 insertions, 60 deletions
diff --git a/chromium/ui/keyboard/keyboard_util.h b/chromium/ui/keyboard/keyboard_util.h
index 740259d2967..5a82250a63b 100644
--- a/chromium/ui/keyboard/keyboard_util.h
+++ b/chromium/ui/keyboard/keyboard_util.h
@@ -14,41 +14,14 @@
// TODO(stevenjb/shuchen/shend): Many of these are accessed from both Chrome
// and Ash. We need to remove any Chrome dependencies. htpps://crbug.com/843332
-namespace aura {
-class WindowTreeHost;
-}
-
namespace keyboard {
-// An enumeration of keyboard policy settings.
-enum KeyboardShowOverride {
- KEYBOARD_SHOW_OVERRIDE_DISABLED = 0,
- KEYBOARD_SHOW_OVERRIDE_ENABLED,
- KEYBOARD_SHOW_OVERRIDE_NONE,
-};
-
-// An enumeration of keyboard states.
-enum KeyboardState {
- // Default state. System decides whether to show the keyboard or not.
- KEYBOARD_STATE_AUTO = 0,
- // Request virtual keyboard be deployed.
- KEYBOARD_STATE_ENABLED,
- // Request virtual keyboard be suppressed.
- KEYBOARD_STATE_DISABLED,
-};
-
// Sets the state of the a11y onscreen keyboard.
KEYBOARD_EXPORT void SetAccessibilityKeyboardEnabled(bool enabled);
// Gets the state of the a11y onscreen keyboard.
KEYBOARD_EXPORT bool GetAccessibilityKeyboardEnabled();
-// Sets the state of the hotrod onscreen keyboard.
-KEYBOARD_EXPORT void SetHotrodKeyboardEnabled(bool enabled);
-
-// Gets the state of the hotrod onscreen keyboard.
-KEYBOARD_EXPORT bool GetHotrodKeyboardEnabled();
-
// Sets whether the keyboard is enabled from the shelf.
KEYBOARD_EXPORT void SetKeyboardEnabledFromShelf(bool enabled);
@@ -61,42 +34,9 @@ KEYBOARD_EXPORT void SetTouchKeyboardEnabled(bool enabled);
// Gets the state of the touch onscreen keyboard.
KEYBOARD_EXPORT bool GetTouchKeyboardEnabled();
-// Sets the requested state of the keyboard.
-KEYBOARD_EXPORT void SetRequestedKeyboardState(KeyboardState state);
-
-// Gets the requested state of the keyboard.
-KEYBOARD_EXPORT int GetRequestedKeyboardState();
-
-// Gets the default keyboard layout.
-KEYBOARD_EXPORT std::string GetKeyboardLayout();
-
// Returns true if the virtual keyboard is enabled.
KEYBOARD_EXPORT bool IsKeyboardEnabled();
-// Sets policy override on whether to show the keyboard.
-KEYBOARD_EXPORT void SetKeyboardShowOverride(
- KeyboardShowOverride show_override);
-
-// Sets whehther the keyboards is in restricted state - state where advanced
-// virtual keyboard features are disabled.
-KEYBOARD_EXPORT void SetKeyboardRestricted(bool restricted);
-
-// Returns whether the keyboard is in restricted state.
-KEYBOARD_EXPORT bool GetKeyboardRestricted();
-
-// Sends a fabricated key event, where |type| is the event type, |key_value|
-// is the unicode value of the character, |key_code| is the legacy key code
-// value, |key_name| is the name of the key as defined in the DOM3 key event
-// specification, and |modifier| indicates if any modifier keys are being
-// virtually pressed. The event is dispatched to the active TextInputClient
-// associated with |root_window|. The type may be "keydown" or "keyup".
-KEYBOARD_EXPORT bool SendKeyEvent(std::string type,
- int key_value,
- int key_code,
- std::string key_name,
- int modifiers,
- aura::WindowTreeHost* host);
-
} // namespace keyboard
#endif // UI_KEYBOARD_KEYBOARD_UTIL_H_