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

Side by Side Diff: ui/base/ime/chromeos/mock_input_method_manager.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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_BASE_IME_CHROMEOS_MOCK_INPUT_METHOD_MANAGER_H_ 5 #ifndef UI_BASE_IME_CHROMEOS_MOCK_INPUT_METHOD_MANAGER_H_
6 #define UI_BASE_IME_CHROMEOS_MOCK_INPUT_METHOD_MANAGER_H_ 6 #define UI_BASE_IME_CHROMEOS_MOCK_INPUT_METHOD_MANAGER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "ui/base/ime/chromeos/input_method_manager.h" 9 #include "ui/base/ime/chromeos/input_method_manager.h"
10 10
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 Profile* profile) override; 101 Profile* profile) override;
102 scoped_refptr<InputMethodManager::State> GetActiveIMEState() override; 102 scoped_refptr<InputMethodManager::State> GetActiveIMEState() override;
103 void SetState(scoped_refptr<InputMethodManager::State> state) override; 103 void SetState(scoped_refptr<InputMethodManager::State> state) override;
104 void ImeMenuActivationChanged(bool is_active) override; 104 void ImeMenuActivationChanged(bool is_active) override;
105 void NotifyImeMenuItemsChanged( 105 void NotifyImeMenuItemsChanged(
106 const std::string& engine_id, 106 const std::string& engine_id,
107 const std::vector<InputMethodManager::MenuItem>& items) override; 107 const std::vector<InputMethodManager::MenuItem>& items) override;
108 void MaybeNotifyImeMenuActivationChanged() override; 108 void MaybeNotifyImeMenuActivationChanged() override;
109 void OverrideKeyboardUrlRef(const std::string& keyset) override; 109 void OverrideKeyboardUrlRef(const std::string& keyset) override;
110 bool IsEmojiHandwritingVoiceOnImeMenuEnabled() override; 110 bool IsEmojiHandwritingVoiceOnImeMenuEnabled() override;
111 void SetFeaturesRestrictedState(FeaturesRestrictedState feature,
112 bool restricted) override;
113 uint32_t GetFeaturesRestrictedState() override;
111 114
112 private: 115 private:
116 uint32_t features_restricted_state_;
117
113 DISALLOW_COPY_AND_ASSIGN(MockInputMethodManager); 118 DISALLOW_COPY_AND_ASSIGN(MockInputMethodManager);
114 }; 119 };
115 120
116 } // namespace input_method 121 } // namespace input_method
117 } // namespace chromeos 122 } // namespace chromeos
118 123
119 #endif // UI_BASE_IME_CHROMEOS_MOCK_INPUT_METHOD_MANAGER_H_ 124 #endif // UI_BASE_IME_CHROMEOS_MOCK_INPUT_METHOD_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698