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 #include "chrome/browser/extensions/extension_function_dispatcher.h" | 5 #include "chrome/browser/extensions/extension_function_dispatcher.h" |
6 | 6 |
7 #include <map> | 7 #include <map> |
8 | 8 |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "base/memory/singleton.h" | 10 #include "base/memory/singleton.h" |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 #include "content/common/notification_service.h" | 59 #include "content/common/notification_service.h" |
60 #include "content/common/result_codes.h" | 60 #include "content/common/result_codes.h" |
61 #include "ipc/ipc_message.h" | 61 #include "ipc/ipc_message.h" |
62 #include "ipc/ipc_message_macros.h" | 62 #include "ipc/ipc_message_macros.h" |
63 #include "third_party/skia/include/core/SkBitmap.h" | 63 #include "third_party/skia/include/core/SkBitmap.h" |
64 | 64 |
65 #if defined(TOOLKIT_VIEWS) | 65 #if defined(TOOLKIT_VIEWS) |
66 #include "chrome/browser/extensions/extension_input_api.h" | 66 #include "chrome/browser/extensions/extension_input_api.h" |
67 #endif | 67 #endif |
68 | 68 |
| 69 #if defined(OS_CHROMEOS) && defined(TOUCH_UI) |
| 70 #include "chrome/browser/extensions/extension_input_ui_api.h" |
| 71 #endif |
| 72 |
69 #if defined(OS_CHROMEOS) | 73 #if defined(OS_CHROMEOS) |
70 #include "chrome/browser/extensions/extension_file_browser_private_api.h" | 74 #include "chrome/browser/extensions/extension_file_browser_private_api.h" |
71 #include "chrome/browser/extensions/extension_info_private_api_chromeos.h" | 75 #include "chrome/browser/extensions/extension_info_private_api_chromeos.h" |
72 #endif | 76 #endif |
73 | 77 |
74 // FactoryRegistry ------------------------------------------------------------- | 78 // FactoryRegistry ------------------------------------------------------------- |
75 | 79 |
76 namespace { | 80 namespace { |
77 | 81 |
78 // Template for defining ExtensionFunctionFactory. | 82 // Template for defining ExtensionFunctionFactory. |
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
274 RegisterFunction<SetBadgeTextSidebarFunction>(); | 278 RegisterFunction<SetBadgeTextSidebarFunction>(); |
275 RegisterFunction<SetIconSidebarFunction>(); | 279 RegisterFunction<SetIconSidebarFunction>(); |
276 RegisterFunction<SetTitleSidebarFunction>(); | 280 RegisterFunction<SetTitleSidebarFunction>(); |
277 RegisterFunction<ShowSidebarFunction>(); | 281 RegisterFunction<ShowSidebarFunction>(); |
278 | 282 |
279 #if defined(TOOLKIT_VIEWS) | 283 #if defined(TOOLKIT_VIEWS) |
280 // Input. | 284 // Input. |
281 RegisterFunction<SendKeyboardEventInputFunction>(); | 285 RegisterFunction<SendKeyboardEventInputFunction>(); |
282 #endif | 286 #endif |
283 | 287 |
| 288 #if defined(OS_CHROMEOS) && defined(TOUCH_UI) |
| 289 // IME |
| 290 RegisterFunction<CandidateClickedInputUiFunction>(); |
| 291 RegisterFunction<CursorUpInputUiFunction>(); |
| 292 RegisterFunction<CursorDownInputUiFunction>(); |
| 293 RegisterFunction<PageUpInputUiFunction>(); |
| 294 RegisterFunction<PageDownInputUiFunction>(); |
| 295 RegisterFunction<RegisterInputUiFunction>(); |
| 296 RegisterFunction<PageUpInputUiFunction>(); |
| 297 RegisterFunction<PageDownInputUiFunction>(); |
| 298 #endif |
| 299 |
284 // Management. | 300 // Management. |
285 RegisterFunction<GetAllExtensionsFunction>(); | 301 RegisterFunction<GetAllExtensionsFunction>(); |
286 RegisterFunction<GetExtensionByIdFunction>(); | 302 RegisterFunction<GetExtensionByIdFunction>(); |
287 RegisterFunction<LaunchAppFunction>(); | 303 RegisterFunction<LaunchAppFunction>(); |
288 RegisterFunction<SetEnabledFunction>(); | 304 RegisterFunction<SetEnabledFunction>(); |
289 RegisterFunction<UninstallFunction>(); | 305 RegisterFunction<UninstallFunction>(); |
290 | 306 |
291 // Extension module. | 307 // Extension module. |
292 RegisterFunction<SetUpdateUrlDataFunction>(); | 308 RegisterFunction<SetUpdateUrlDataFunction>(); |
293 RegisterFunction<IsAllowedIncognitoAccessFunction>(); | 309 RegisterFunction<IsAllowedIncognitoAccessFunction>(); |
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
553 NOTREACHED(); | 569 NOTREACHED(); |
554 UserMetrics::RecordAction(UserMetricsAction("BadMessageTerminate_EFD")); | 570 UserMetrics::RecordAction(UserMetricsAction("BadMessageTerminate_EFD")); |
555 base::KillProcess(render_view_host_->process()->GetHandle(), | 571 base::KillProcess(render_view_host_->process()->GetHandle(), |
556 ResultCodes::KILLED_BAD_MESSAGE, false); | 572 ResultCodes::KILLED_BAD_MESSAGE, false); |
557 } | 573 } |
558 } | 574 } |
559 | 575 |
560 Profile* ExtensionFunctionDispatcher::profile() { | 576 Profile* ExtensionFunctionDispatcher::profile() { |
561 return profile_; | 577 return profile_; |
562 } | 578 } |
OLD | NEW |