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

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 InputMethodManager::FeaturesRestrictedState 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 b5c5d8a3a7c2e016d95cc24a5ca6d27d45946fff..106e0e221373850b59834fbdd6669fe49e2c7510 100644
--- a/chrome/browser/chromeos/input_method/input_method_manager_impl.h
+++ b/chrome/browser/chromeos/input_method/input_method_manager_impl.h
@@ -111,7 +111,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;
@@ -189,6 +188,9 @@ class InputMethodManagerImpl : public InputMethodManager,
void MaybeNotifyImeMenuActivationChanged() override;
void OverrideKeyboardUrlRef(const std::string& keyset) override;
bool IsEmojiHandwritingVoiceOnImeMenuEnabled() override;
+ void SetFeaturesRestrictedState(FeaturesRestrictedState feature,
+ bool restricted) override;
+ uint32_t GetFeaturesRestrictedState() override;
// chromeos::UserAddingScreen:
void OnUserAddingStarted() override;
@@ -305,6 +307,9 @@ class InputMethodManagerImpl : public InputMethodManager,
// Whether the expanded IME menu is activated.
bool is_ime_menu_activated_;
+ // The restricted state of keyboard features.
+ uint32_t features_restricted_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;

Powered by Google App Engine
This is Rietveld 408576698