| 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> |
| 11 | 11 |
| 12 #include "base/memory/singleton.h" | 12 #include "base/memory/singleton.h" |
| 13 #include "base/values.h" | 13 #include "base/values.h" |
| 14 #include "chrome/browser/chromeos/input_method/input_method_engine.h" | 14 #include "chrome/browser/chromeos/input_method/input_method_engine.h" |
| 15 #include "chrome/browser/extensions/api/profile_keyed_api_factory.h" | 15 #include "chrome/browser/extensions/api/profile_keyed_api_factory.h" |
| 16 #include "chrome/browser/extensions/extension_function.h" | 16 #include "chrome/browser/extensions/extension_function.h" |
| 17 #include "chrome/browser/profiles/profile_keyed_service.h" | 17 #include "chrome/browser/profiles/profile_keyed_service.h" |
| 18 #include "chrome/common/extensions/api/input_ime/input_components_handler.h" | |
| 19 #include "chrome/common/extensions/extension.h" | 18 #include "chrome/common/extensions/extension.h" |
| 20 #include "content/public/browser/notification_observer.h" | 19 #include "content/public/browser/notification_observer.h" |
| 21 #include "content/public/browser/notification_registrar.h" | 20 #include "content/public/browser/notification_registrar.h" |
| 22 | 21 |
| 23 class Profile; | 22 class Profile; |
| 24 | 23 |
| 25 namespace chromeos { | 24 namespace chromeos { |
| 26 class InputMethodEngine; | 25 class InputMethodEngine; |
| 27 class ImeObserver; | 26 class ImeObserver; |
| 28 } | 27 } |
| 29 | 28 |
| 30 namespace extensions { | 29 namespace extensions { |
| 30 class InputComponentInfo; |
| 31 | 31 |
| 32 class InputImeEventRouter { | 32 class InputImeEventRouter { |
| 33 public: | 33 public: |
| 34 static InputImeEventRouter* GetInstance(); | 34 static InputImeEventRouter* GetInstance(); |
| 35 | 35 |
| 36 bool RegisterIme(Profile* profile, | 36 bool RegisterIme(Profile* profile, |
| 37 const std::string& extension_id, | 37 const std::string& extension_id, |
| 38 const extensions::InputComponentInfo& component); | 38 const extensions::InputComponentInfo& component); |
| 39 void UnregisterAllImes(Profile* profile, const std::string& extension_id); | 39 void UnregisterAllImes(Profile* profile, const std::string& extension_id); |
| 40 chromeos::InputMethodEngine* GetEngine(const std::string& extension_id, | 40 chromeos::InputMethodEngine* GetEngine(const std::string& extension_id, |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 214 } | 214 } |
| 215 static const bool kServiceIsNULLWhileTesting = true; | 215 static const bool kServiceIsNULLWhileTesting = true; |
| 216 | 216 |
| 217 Profile* const profile_; | 217 Profile* const profile_; |
| 218 content::NotificationRegistrar registrar_; | 218 content::NotificationRegistrar registrar_; |
| 219 }; | 219 }; |
| 220 | 220 |
| 221 } // namespace extensions | 221 } // namespace extensions |
| 222 | 222 |
| 223 #endif // CHROME_BROWSER_EXTENSIONS_API_INPUT_IME_INPUT_IME_API_H_ | 223 #endif // CHROME_BROWSER_EXTENSIONS_API_INPUT_IME_INPUT_IME_API_H_ |
| OLD | NEW |