Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(154)

Unified Diff: ui/base/ime/chromeos/input_method_manager.h

Issue 2953033002: Hide handwriting and voice buttons when keyboard is in restricted state (Closed)
Patch Set: Add FEATURE_ALL Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ui/base/ime/chromeos/input_method_manager.h
diff --git a/ui/base/ime/chromeos/input_method_manager.h b/ui/base/ime/chromeos/input_method_manager.h
index be32e0d50aa0e441fdcf7138753d3f842ff7418c..653319e52cfcff39a25efe5ac5ea4ad7ba35ebed 100644
--- a/ui/base/ime/chromeos/input_method_manager.h
+++ b/ui/base/ime/chromeos/input_method_manager.h
@@ -64,6 +64,13 @@ class UI_BASE_IME_EXPORT InputMethodManager {
std::vector<MenuItem> children;
};
+ enum ImeMenuFeature {
+ FEATURE_EMOJI = 1 << 0,
+ FEATURE_HANDWRITING = 1 << 1,
+ FEATURE_VOICE = 1 << 2,
+ FEATURE_ALL = ~0,
+ };
+
class Observer {
public:
virtual ~Observer() {}
@@ -306,6 +313,13 @@ class UI_BASE_IME_EXPORT InputMethodManager {
// Returns whether the extra inputs: emoji, handwriting and voice inputs on
// opt-in IME menu has been enabled.
virtual bool IsEmojiHandwritingVoiceOnImeMenuEnabled() = 0;
+
+ // Enables or disables some advanced features, e.g. handwiring, voices input.
+ virtual void SetImeMenuFeatureEnabled(ImeMenuFeature feature,
+ bool enabled) = 0;
+
+ // Returns the true if the given feature is enabled.
+ virtual bool GetImeMenuFeatureEnabled(ImeMenuFeature feature) const = 0;
};
} // namespace input_method
« no previous file with comments | « extensions/browser/api/virtual_keyboard/virtual_keyboard_api.cc ('k') | ui/base/ime/chromeos/mock_input_method_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698