| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_EXTENSIONS_INPUT_METHOD_API_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_INPUT_METHOD_API_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_INPUT_METHOD_API_H_ | 6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_INPUT_METHOD_API_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| 11 #include "chrome/common/extensions/api/input_method_private.h" | 11 #include "chrome/common/extensions/api/input_method_private.h" |
| 12 #include "extensions/browser/browser_context_keyed_api_factory.h" | 12 #include "extensions/browser/browser_context_keyed_api_factory.h" |
| 13 #include "extensions/browser/event_router.h" | 13 #include "extensions/browser/event_router.h" |
| 14 #include "extensions/browser/extension_function.h" | 14 #include "extensions/browser/extension_function.h" |
| 15 | 15 |
| 16 namespace chromeos { | 16 namespace chromeos { |
| 17 class ExtensionDictionaryEventRouter; | 17 class ExtensionDictionaryEventRouter; |
| 18 class ExtensionInputMethodEventRouter; | 18 class ExtensionInputMethodEventRouter; |
| 19 class ExtensionImeMenuEventRouter; |
| 19 } | 20 } |
| 20 | 21 |
| 21 namespace extensions { | 22 namespace extensions { |
| 22 | 23 |
| 23 // Implements the inputMethodPrivate.getInputMethodConfig method. | 24 // Implements the inputMethodPrivate.getInputMethodConfig method. |
| 24 class InputMethodPrivateGetInputMethodConfigFunction | 25 class InputMethodPrivateGetInputMethodConfigFunction |
| 25 : public UIThreadExtensionFunction { | 26 : public UIThreadExtensionFunction { |
| 26 public: | 27 public: |
| 27 InputMethodPrivateGetInputMethodConfigFunction() {} | 28 InputMethodPrivateGetInputMethodConfigFunction() {} |
| 28 | 29 |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 184 } | 185 } |
| 185 static const bool kServiceIsNULLWhileTesting = true; | 186 static const bool kServiceIsNULLWhileTesting = true; |
| 186 | 187 |
| 187 content::BrowserContext* const context_; | 188 content::BrowserContext* const context_; |
| 188 | 189 |
| 189 // Created lazily upon OnListenerAdded. | 190 // Created lazily upon OnListenerAdded. |
| 190 scoped_ptr<chromeos::ExtensionInputMethodEventRouter> | 191 scoped_ptr<chromeos::ExtensionInputMethodEventRouter> |
| 191 input_method_event_router_; | 192 input_method_event_router_; |
| 192 scoped_ptr<chromeos::ExtensionDictionaryEventRouter> | 193 scoped_ptr<chromeos::ExtensionDictionaryEventRouter> |
| 193 dictionary_event_router_; | 194 dictionary_event_router_; |
| 195 scoped_ptr<chromeos::ExtensionImeMenuEventRouter> ime_menu_event_router_; |
| 194 | 196 |
| 195 DISALLOW_COPY_AND_ASSIGN(InputMethodAPI); | 197 DISALLOW_COPY_AND_ASSIGN(InputMethodAPI); |
| 196 }; | 198 }; |
| 197 | 199 |
| 198 } // namespace extensions | 200 } // namespace extensions |
| 199 | 201 |
| 200 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_INPUT_METHOD_API_H_ | 202 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_INPUT_METHOD_API_H_ |
| OLD | NEW |