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 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 } | 168 } |
168 static const bool kServiceIsNULLWhileTesting = true; | 169 static const bool kServiceIsNULLWhileTesting = true; |
169 | 170 |
170 content::BrowserContext* const context_; | 171 content::BrowserContext* const context_; |
171 | 172 |
172 // Created lazily upon OnListenerAdded. | 173 // Created lazily upon OnListenerAdded. |
173 scoped_ptr<chromeos::ExtensionInputMethodEventRouter> | 174 scoped_ptr<chromeos::ExtensionInputMethodEventRouter> |
174 input_method_event_router_; | 175 input_method_event_router_; |
175 scoped_ptr<chromeos::ExtensionDictionaryEventRouter> | 176 scoped_ptr<chromeos::ExtensionDictionaryEventRouter> |
176 dictionary_event_router_; | 177 dictionary_event_router_; |
| 178 scoped_ptr<chromeos::ExtensionImeMenuEventRouter> ime_menu_event_router_; |
177 | 179 |
178 DISALLOW_COPY_AND_ASSIGN(InputMethodAPI); | 180 DISALLOW_COPY_AND_ASSIGN(InputMethodAPI); |
179 }; | 181 }; |
180 | 182 |
181 } // namespace extensions | 183 } // namespace extensions |
182 | 184 |
183 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_INPUT_METHOD_API_H_ | 185 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_INPUT_METHOD_API_H_ |
OLD | NEW |