| 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_EXTENSIONS_API_INPUT_IME_INPUT_IME_API_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_INPUT_IME_INPUT_IME_API_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_API_INPUT_IME_INPUT_IME_API_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_API_INPUT_IME_INPUT_IME_API_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 | 30 |
| 31 namespace extensions { | 31 namespace extensions { |
| 32 class ExtensionRegistry; | 32 class ExtensionRegistry; |
| 33 struct InputComponentInfo; | 33 struct InputComponentInfo; |
| 34 | 34 |
| 35 class InputImeEventRouter { | 35 class InputImeEventRouter { |
| 36 public: | 36 public: |
| 37 static InputImeEventRouter* GetInstance(); | 37 static InputImeEventRouter* GetInstance(); |
| 38 | 38 |
| 39 bool RegisterImeExtension( | 39 bool RegisterImeExtension( |
| 40 Profile* profile, |
| 40 const std::string& extension_id, | 41 const std::string& extension_id, |
| 41 const std::vector<extensions::InputComponentInfo>& input_components); | 42 const std::vector<extensions::InputComponentInfo>& input_components); |
| 42 void UnregisterAllImes(const std::string& extension_id); | 43 void UnregisterAllImes(const std::string& extension_id); |
| 43 | 44 |
| 44 chromeos::InputMethodEngineInterface* GetEngine( | 45 chromeos::InputMethodEngineInterface* GetEngine( |
| 45 const std::string& extension_id, | 46 const std::string& extension_id, |
| 46 const std::string& component_id); | 47 const std::string& component_id); |
| 47 chromeos::InputMethodEngineInterface* GetActiveEngine( | 48 chromeos::InputMethodEngineInterface* GetActiveEngine( |
| 48 const std::string& extension_id); | 49 const std::string& extension_id); |
| 49 | 50 |
| (...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 248 content::BrowserContext* const browser_context_; | 249 content::BrowserContext* const browser_context_; |
| 249 | 250 |
| 250 // Listen to extension load, unloaded notifications. | 251 // Listen to extension load, unloaded notifications. |
| 251 ScopedObserver<ExtensionRegistry, ExtensionRegistryObserver> | 252 ScopedObserver<ExtensionRegistry, ExtensionRegistryObserver> |
| 252 extension_registry_observer_; | 253 extension_registry_observer_; |
| 253 }; | 254 }; |
| 254 | 255 |
| 255 } // namespace extensions | 256 } // namespace extensions |
| 256 | 257 |
| 257 #endif // CHROME_BROWSER_EXTENSIONS_API_INPUT_IME_INPUT_IME_API_H_ | 258 #endif // CHROME_BROWSER_EXTENSIONS_API_INPUT_IME_INPUT_IME_API_H_ |
| OLD | NEW |