| 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_interface.h" | 14 #include "chrome/browser/chromeos/input_method/input_method_engine_interface.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 "components/browser_context_keyed_service/browser_context_keyed_service
.h" | 16 #include "components/browser_context_keyed_service/browser_context_keyed_service
.h" |
| 17 #include "content/public/browser/notification_observer.h" | 17 #include "content/public/browser/notification_observer.h" |
| 18 #include "content/public/browser/notification_registrar.h" | 18 #include "content/public/browser/notification_registrar.h" |
| 19 #include "extensions/browser/extension_function.h" | 19 #include "extensions/browser/extension_function.h" |
| 20 #include "extensions/common/extension.h" | 20 #include "extensions/common/extension.h" |
| 21 | 21 |
| 22 class Profile; | 22 class Profile; |
| 23 | 23 |
| 24 namespace chromeos { | 24 namespace chromeos { |
| 25 class InputMethodEngineInterface; | 25 class InputMethodEngineInterface; |
| 26 class ImeObserver; | 26 class ImeObserver; |
| 27 } | 27 } // namespace chromeos |
| 28 | 28 |
| 29 namespace extensions { | 29 namespace extensions { |
| 30 struct InputComponentInfo; | 30 struct 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, |
| (...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 237 } | 237 } |
| 238 static const bool kServiceIsNULLWhileTesting = true; | 238 static const bool kServiceIsNULLWhileTesting = true; |
| 239 | 239 |
| 240 Profile* const profile_; | 240 Profile* const profile_; |
| 241 content::NotificationRegistrar registrar_; | 241 content::NotificationRegistrar registrar_; |
| 242 }; | 242 }; |
| 243 | 243 |
| 244 } // namespace extensions | 244 } // namespace extensions |
| 245 | 245 |
| 246 #endif // CHROME_BROWSER_EXTENSIONS_API_INPUT_IME_INPUT_IME_API_H_ | 246 #endif // CHROME_BROWSER_EXTENSIONS_API_INPUT_IME_INPUT_IME_API_H_ |
| OLD | NEW |