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 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 22 matching lines...) Expand all Loading... |
33 // Constructs an InputMethodManager instance. The client is responsible for | 33 // Constructs an InputMethodManager instance. The client is responsible for |
34 // calling |SetState| in response to relevant changes in browser state. | 34 // calling |SetState| in response to relevant changes in browser state. |
35 explicit InputMethodManagerImpl(scoped_ptr<InputMethodDelegate> delegate); | 35 explicit InputMethodManagerImpl(scoped_ptr<InputMethodDelegate> delegate); |
36 virtual ~InputMethodManagerImpl(); | 36 virtual ~InputMethodManagerImpl(); |
37 | 37 |
38 // Receives notification of an InputMethodManager::State transition. | 38 // Receives notification of an InputMethodManager::State transition. |
39 void SetState(State new_state); | 39 void SetState(State new_state); |
40 | 40 |
41 // InputMethodManager override: | 41 // InputMethodManager override: |
42 virtual State GetState() OVERRIDE; | 42 virtual State GetState() OVERRIDE; |
43 virtual void InitializeComponentExtension() OVERRIDE; | |
44 virtual void AddObserver(InputMethodManager::Observer* observer) OVERRIDE; | 43 virtual void AddObserver(InputMethodManager::Observer* observer) OVERRIDE; |
45 virtual void AddCandidateWindowObserver( | 44 virtual void AddCandidateWindowObserver( |
46 InputMethodManager::CandidateWindowObserver* observer) OVERRIDE; | 45 InputMethodManager::CandidateWindowObserver* observer) OVERRIDE; |
47 virtual void RemoveObserver(InputMethodManager::Observer* observer) OVERRIDE; | 46 virtual void RemoveObserver(InputMethodManager::Observer* observer) OVERRIDE; |
48 virtual void RemoveCandidateWindowObserver( | 47 virtual void RemoveCandidateWindowObserver( |
49 InputMethodManager::CandidateWindowObserver* observer) OVERRIDE; | 48 InputMethodManager::CandidateWindowObserver* observer) OVERRIDE; |
50 virtual scoped_ptr<InputMethodDescriptors> | 49 virtual scoped_ptr<InputMethodDescriptors> |
51 GetSupportedInputMethods() const OVERRIDE; | 50 GetSupportedInputMethods() const OVERRIDE; |
52 virtual scoped_ptr<InputMethodDescriptors> | 51 virtual scoped_ptr<InputMethodDescriptors> |
53 GetActiveInputMethods() const OVERRIDE; | 52 GetActiveInputMethods() const OVERRIDE; |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
207 // The engine map from extension_id to an engine. | 206 // The engine map from extension_id to an engine. |
208 std::map<std::string, InputMethodEngineInterface*> engine_map_; | 207 std::map<std::string, InputMethodEngineInterface*> engine_map_; |
209 | 208 |
210 DISALLOW_COPY_AND_ASSIGN(InputMethodManagerImpl); | 209 DISALLOW_COPY_AND_ASSIGN(InputMethodManagerImpl); |
211 }; | 210 }; |
212 | 211 |
213 } // namespace input_method | 212 } // namespace input_method |
214 } // namespace chromeos | 213 } // namespace chromeos |
215 | 214 |
216 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_MANAGER_IMPL_H_ | 215 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_MANAGER_IMPL_H_ |
OLD | NEW |