OLD | NEW |
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 CHROMEOS_IME_INPUT_METHOD_MANAGER_H_ | 5 #ifndef CHROMEOS_IME_INPUT_METHOD_MANAGER_H_ |
6 #define CHROMEOS_IME_INPUT_METHOD_MANAGER_H_ | 6 #define CHROMEOS_IME_INPUT_METHOD_MANAGER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 | 177 |
178 // Sets the global instance. |instance| will be owned by the internal pointer | 178 // Sets the global instance. |instance| will be owned by the internal pointer |
179 // and deleted by Shutdown(). | 179 // and deleted by Shutdown(). |
180 // TODO(nona): Instanciate InputMethodManagerImpl inside of this function once | 180 // TODO(nona): Instanciate InputMethodManagerImpl inside of this function once |
181 // crbug.com/164375 is fixed. | 181 // crbug.com/164375 is fixed. |
182 static CHROMEOS_EXPORT void Initialize(InputMethodManager* instance); | 182 static CHROMEOS_EXPORT void Initialize(InputMethodManager* instance); |
183 | 183 |
184 // Destroy the global instance. | 184 // Destroy the global instance. |
185 static CHROMEOS_EXPORT void Shutdown(); | 185 static CHROMEOS_EXPORT void Shutdown(); |
186 | 186 |
| 187 // Check whether the experimental IME features flag are enabled. |
| 188 static CHROMEOS_EXPORT bool IsExperimentalImeFeaturesEnabled(); |
| 189 |
187 // Get the current UI session state (e.g. login screen, lock screen, etc.). | 190 // Get the current UI session state (e.g. login screen, lock screen, etc.). |
188 virtual UISessionState GetUISessionState() = 0; | 191 virtual UISessionState GetUISessionState() = 0; |
189 | 192 |
190 // Adds an observer to receive notifications of input method related | 193 // Adds an observer to receive notifications of input method related |
191 // changes as desribed in the Observer class above. | 194 // changes as desribed in the Observer class above. |
192 virtual void AddObserver(Observer* observer) = 0; | 195 virtual void AddObserver(Observer* observer) = 0; |
193 virtual void AddCandidateWindowObserver( | 196 virtual void AddCandidateWindowObserver( |
194 CandidateWindowObserver* observer) = 0; | 197 CandidateWindowObserver* observer) = 0; |
195 virtual void RemoveObserver(Observer* observer) = 0; | 198 virtual void RemoveObserver(Observer* observer) = 0; |
196 virtual void RemoveCandidateWindowObserver( | 199 virtual void RemoveCandidateWindowObserver( |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
233 virtual scoped_refptr<InputMethodManager::State> GetActiveIMEState() = 0; | 236 virtual scoped_refptr<InputMethodManager::State> GetActiveIMEState() = 0; |
234 | 237 |
235 // Replaces active state. | 238 // Replaces active state. |
236 virtual void SetState(scoped_refptr<State> state) = 0; | 239 virtual void SetState(scoped_refptr<State> state) = 0; |
237 }; | 240 }; |
238 | 241 |
239 } // namespace input_method | 242 } // namespace input_method |
240 } // namespace chromeos | 243 } // namespace chromeos |
241 | 244 |
242 #endif // CHROMEOS_IME_INPUT_METHOD_MANAGER_H_ | 245 #endif // CHROMEOS_IME_INPUT_METHOD_MANAGER_H_ |
OLD | NEW |