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

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

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

Powered by Google App Engine
This is Rietveld 408576698