| 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 18 matching lines...) Expand all Loading... |
| 29 } // namespace chromeos | 29 } // namespace chromeos |
| 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 RegisterIme(const std::string& extension_id, | 39 bool RegisterIme(Profile*, |
| 40 const std::string& extension_id, |
| 40 const extensions::InputComponentInfo& component); | 41 const extensions::InputComponentInfo& component); |
| 41 void UnregisterAllImes(const std::string& extension_id); | 42 void UnregisterAllImes(const std::string& extension_id); |
| 42 chromeos::InputMethodEngineInterface* GetEngine( | 43 chromeos::InputMethodEngineInterface* GetEngine( |
| 43 const std::string& extension_id, | 44 const std::string& extension_id, |
| 44 const std::string& engine_id); | 45 const std::string& engine_id); |
| 45 chromeos::InputMethodEngineInterface* GetActiveEngine( | 46 chromeos::InputMethodEngineInterface* GetActiveEngine( |
| 46 const std::string& extension_id); | 47 const std::string& extension_id); |
| 47 | 48 |
| 48 | 49 |
| 49 // Called when a key event was handled. | 50 // Called when a key event was handled. |
| (...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 253 content::BrowserContext* const browser_context_; | 254 content::BrowserContext* const browser_context_; |
| 254 | 255 |
| 255 // Listen to extension load, unloaded notifications. | 256 // Listen to extension load, unloaded notifications. |
| 256 ScopedObserver<ExtensionRegistry, ExtensionRegistryObserver> | 257 ScopedObserver<ExtensionRegistry, ExtensionRegistryObserver> |
| 257 extension_registry_observer_; | 258 extension_registry_observer_; |
| 258 }; | 259 }; |
| 259 | 260 |
| 260 } // namespace extensions | 261 } // namespace extensions |
| 261 | 262 |
| 262 #endif // CHROME_BROWSER_EXTENSIONS_API_INPUT_IME_INPUT_IME_API_H_ | 263 #endif // CHROME_BROWSER_EXTENSIONS_API_INPUT_IME_INPUT_IME_API_H_ |
| OLD | NEW |