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

Side by Side Diff: chrome/browser/chromeos/input_method/input_method_manager_impl.h

Issue 1552743003: Add chrome.inputMethodPrivate.onImeMenuActivationChanged API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_MANAGER_IMPL_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_MANAGER_IMPL_H_
6 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_MANAGER_IMPL_H_ 6 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_MANAGER_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 ~InputMethodManagerImpl() override; 146 ~InputMethodManagerImpl() override;
147 147
148 // Receives notification of an InputMethodManager::UISessionState transition. 148 // Receives notification of an InputMethodManager::UISessionState transition.
149 void SetUISessionState(UISessionState new_ui_session); 149 void SetUISessionState(UISessionState new_ui_session);
150 150
151 // InputMethodManager override: 151 // InputMethodManager override:
152 UISessionState GetUISessionState() override; 152 UISessionState GetUISessionState() override;
153 void AddObserver(InputMethodManager::Observer* observer) override; 153 void AddObserver(InputMethodManager::Observer* observer) override;
154 void AddCandidateWindowObserver( 154 void AddCandidateWindowObserver(
155 InputMethodManager::CandidateWindowObserver* observer) override; 155 InputMethodManager::CandidateWindowObserver* observer) override;
156 void AddImeMenuObserver(
157 InputMethodManager::ImeMenuObserver* observer) override;
156 void RemoveObserver(InputMethodManager::Observer* observer) override; 158 void RemoveObserver(InputMethodManager::Observer* observer) override;
157 void RemoveCandidateWindowObserver( 159 void RemoveCandidateWindowObserver(
158 InputMethodManager::CandidateWindowObserver* observer) override; 160 InputMethodManager::CandidateWindowObserver* observer) override;
161 void RemoveImeMenuObserver(
162 InputMethodManager::ImeMenuObserver* observer) override;
159 scoped_ptr<InputMethodDescriptors> GetSupportedInputMethods() const override; 163 scoped_ptr<InputMethodDescriptors> GetSupportedInputMethods() const override;
160 void ActivateInputMethodMenuItem(const std::string& key) override; 164 void ActivateInputMethodMenuItem(const std::string& key) override;
161 bool IsISOLevel5ShiftUsedByCurrentInputMethod() const override; 165 bool IsISOLevel5ShiftUsedByCurrentInputMethod() const override;
162 bool IsAltGrUsedByCurrentInputMethod() const override; 166 bool IsAltGrUsedByCurrentInputMethod() const override;
163 167
164 ImeKeyboard* GetImeKeyboard() override; 168 ImeKeyboard* GetImeKeyboard() override;
165 InputMethodUtil* GetInputMethodUtil() override; 169 InputMethodUtil* GetInputMethodUtil() override;
166 ComponentExtensionIMEManager* GetComponentExtensionIMEManager() override; 170 ComponentExtensionIMEManager* GetComponentExtensionIMEManager() override;
167 bool IsLoginKeyboard(const std::string& layout) const override; 171 bool IsLoginKeyboard(const std::string& layout) const override;
168 172
169 bool MigrateInputMethods(std::vector<std::string>* input_method_ids) override; 173 bool MigrateInputMethods(std::vector<std::string>* input_method_ids) override;
170 174
171 scoped_refptr<InputMethodManager::State> CreateNewState( 175 scoped_refptr<InputMethodManager::State> CreateNewState(
172 Profile* profile) override; 176 Profile* profile) override;
173 177
174 scoped_refptr<InputMethodManager::State> GetActiveIMEState() override; 178 scoped_refptr<InputMethodManager::State> GetActiveIMEState() override;
175 void SetState(scoped_refptr<InputMethodManager::State> state) override; 179 void SetState(scoped_refptr<InputMethodManager::State> state) override;
176 180
181 void ImeMenuActivationChanged(bool is_active) override;
182
177 // Sets |candidate_window_controller_|. 183 // Sets |candidate_window_controller_|.
178 void SetCandidateWindowControllerForTesting( 184 void SetCandidateWindowControllerForTesting(
179 CandidateWindowController* candidate_window_controller); 185 CandidateWindowController* candidate_window_controller);
180 // Sets |keyboard_|. 186 // Sets |keyboard_|.
181 void SetImeKeyboardForTesting(ImeKeyboard* keyboard); 187 void SetImeKeyboardForTesting(ImeKeyboard* keyboard);
182 // Initialize |component_extension_manager_|. 188 // Initialize |component_extension_manager_|.
183 void InitializeComponentExtensionForTesting( 189 void InitializeComponentExtensionForTesting(
184 scoped_ptr<ComponentExtensionIMEManagerDelegate> delegate); 190 scoped_ptr<ComponentExtensionIMEManagerDelegate> delegate);
185 191
186 private: 192 private:
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 void RecordInputMethodUsage(const std::string& input_method_id); 239 void RecordInputMethodUsage(const std::string& input_method_id);
234 240
235 scoped_ptr<InputMethodDelegate> delegate_; 241 scoped_ptr<InputMethodDelegate> delegate_;
236 242
237 // The current UI session status. 243 // The current UI session status.
238 UISessionState ui_session_; 244 UISessionState ui_session_;
239 245
240 // A list of objects that monitor the manager. 246 // A list of objects that monitor the manager.
241 base::ObserverList<InputMethodManager::Observer> observers_; 247 base::ObserverList<InputMethodManager::Observer> observers_;
242 base::ObserverList<CandidateWindowObserver> candidate_window_observers_; 248 base::ObserverList<CandidateWindowObserver> candidate_window_observers_;
249 base::ObserverList<ImeMenuObserver> ime_menu_observers_;
243 250
244 scoped_refptr<StateImpl> state_; 251 scoped_refptr<StateImpl> state_;
245 252
246 // The candidate window. This will be deleted when the APP_TERMINATING 253 // The candidate window. This will be deleted when the APP_TERMINATING
247 // message is sent. 254 // message is sent.
248 scoped_ptr<CandidateWindowController> candidate_window_controller_; 255 scoped_ptr<CandidateWindowController> candidate_window_controller_;
249 256
250 // An object which provides miscellaneous input method utility functions. Note 257 // An object which provides miscellaneous input method utility functions. Note
251 // that |util_| is required to initialize |keyboard_|. 258 // that |util_| is required to initialize |keyboard_|.
252 InputMethodUtil util_; 259 InputMethodUtil util_;
(...skipping 14 matching lines...) Expand all
267 typedef std::map<Profile*, EngineMap, ProfileCompare> ProfileEngineMap; 274 typedef std::map<Profile*, EngineMap, ProfileCompare> ProfileEngineMap;
268 ProfileEngineMap engine_map_; 275 ProfileEngineMap engine_map_;
269 276
270 DISALLOW_COPY_AND_ASSIGN(InputMethodManagerImpl); 277 DISALLOW_COPY_AND_ASSIGN(InputMethodManagerImpl);
271 }; 278 };
272 279
273 } // namespace input_method 280 } // namespace input_method
274 } // namespace chromeos 281 } // namespace chromeos
275 282
276 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_MANAGER_IMPL_H_ 283 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_MANAGER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698