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

Unified Diff: chrome/browser/chromeos/input_method/input_method_manager_impl.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: chrome/browser/chromeos/input_method/input_method_manager_impl.h
diff --git a/chrome/browser/chromeos/input_method/input_method_manager_impl.h b/chrome/browser/chromeos/input_method/input_method_manager_impl.h
index 7a4dd459546997092f36d0b1b5759a751e0905a0..99e1cd68a58577d3db899ba6350a0893fc307c26 100644
--- a/chrome/browser/chromeos/input_method/input_method_manager_impl.h
+++ b/chrome/browser/chromeos/input_method/input_method_manager_impl.h
@@ -105,7 +105,6 @@ class InputMethodManagerImpl : public InputMethodManager,
InputMethodDescriptor GetCurrentInputMethod() const override;
bool ReplaceEnabledInputMethods(
const std::vector<std::string>& new_active_input_method_ids) override;
-
bool SetAllowedInputMethods(
const std::vector<std::string>& new_allowed_input_method_ids) override;
const std::vector<std::string>& GetAllowedInputMethods() override;
@@ -183,6 +182,8 @@ class InputMethodManagerImpl : public InputMethodManager,
void MaybeNotifyImeMenuActivationChanged() override;
void OverrideKeyboardUrlRef(const std::string& keyset) override;
bool IsEmojiHandwritingVoiceOnImeMenuEnabled() override;
+ void SetImeMenuFeatureEnabled(ImeMenuFeature feature, bool enabled) override;
+ bool GetImeMenuFeatureEnabled(ImeMenuFeature feature) const override;
// chromeos::UserAddingScreen:
void OnUserAddingStarted() override;
@@ -299,6 +300,9 @@ class InputMethodManagerImpl : public InputMethodManager,
// Whether the expanded IME menu is activated.
bool is_ime_menu_activated_;
+ // The enabled state of keyboard features.
+ uint32_t features_enabled_state_;
+
// The engine map from extension_id to an engine.
typedef std::map<std::string, ui::IMEEngineHandlerInterface*> EngineMap;
typedef std::map<Profile*, EngineMap, ProfileCompare> ProfileEngineMap;
« no previous file with comments | « ash/system/ime_menu/ime_menu_tray_unittest.cc ('k') | chrome/browser/chromeos/input_method/input_method_manager_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698