Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(862)

Side by Side Diff: chrome/browser/extensions/extension_function_dispatcher.cc

Issue 6869024: Add IME UI related extension API. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Rebase Created 9 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_input_ui_api.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 #include "content/common/notification_service.h" 56 #include "content/common/notification_service.h"
57 #include "content/common/result_codes.h" 57 #include "content/common/result_codes.h"
58 #include "ipc/ipc_message.h" 58 #include "ipc/ipc_message.h"
59 #include "ipc/ipc_message_macros.h" 59 #include "ipc/ipc_message_macros.h"
60 #include "third_party/skia/include/core/SkBitmap.h" 60 #include "third_party/skia/include/core/SkBitmap.h"
61 61
62 #if defined(TOOLKIT_VIEWS) 62 #if defined(TOOLKIT_VIEWS)
63 #include "chrome/browser/extensions/extension_input_api.h" 63 #include "chrome/browser/extensions/extension_input_api.h"
64 #endif 64 #endif
65 65
66 #if defined(OS_CHROMEOS) && defined(TOUCH_UI)
67 #include "chrome/browser/extensions/extension_input_ui_api.h"
68 #endif
69
66 #if defined(OS_CHROMEOS) 70 #if defined(OS_CHROMEOS)
67 #include "chrome/browser/extensions/extension_file_browser_private_api.h" 71 #include "chrome/browser/extensions/extension_file_browser_private_api.h"
68 #include "chrome/browser/extensions/extension_info_private_api_chromeos.h" 72 #include "chrome/browser/extensions/extension_info_private_api_chromeos.h"
69 #endif 73 #endif
70 74
71 // FactoryRegistry ------------------------------------------------------------- 75 // FactoryRegistry -------------------------------------------------------------
72 76
73 namespace { 77 namespace {
74 78
75 // Template for defining ExtensionFunctionFactory. 79 // Template for defining ExtensionFunctionFactory.
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 RegisterFunction<SetBadgeTextSidebarFunction>(); 270 RegisterFunction<SetBadgeTextSidebarFunction>();
267 RegisterFunction<SetIconSidebarFunction>(); 271 RegisterFunction<SetIconSidebarFunction>();
268 RegisterFunction<SetTitleSidebarFunction>(); 272 RegisterFunction<SetTitleSidebarFunction>();
269 RegisterFunction<ShowSidebarFunction>(); 273 RegisterFunction<ShowSidebarFunction>();
270 274
271 #if defined(TOOLKIT_VIEWS) 275 #if defined(TOOLKIT_VIEWS)
272 // Input. 276 // Input.
273 RegisterFunction<SendKeyboardEventInputFunction>(); 277 RegisterFunction<SendKeyboardEventInputFunction>();
274 #endif 278 #endif
275 279
280 #if defined(OS_CHROMEOS) && defined(TOUCH_UI)
281 // IME
282 RegisterFunction<CandidateClickedInputUiFunction>();
283 RegisterFunction<CursorUpInputUiFunction>();
284 RegisterFunction<CursorDownInputUiFunction>();
285 RegisterFunction<PageUpInputUiFunction>();
286 RegisterFunction<PageDownInputUiFunction>();
287 RegisterFunction<RegisterInputUiFunction>();
288 RegisterFunction<PageUpInputUiFunction>();
289 RegisterFunction<PageDownInputUiFunction>();
290 #endif
291
276 // Management. 292 // Management.
277 RegisterFunction<GetAllExtensionsFunction>(); 293 RegisterFunction<GetAllExtensionsFunction>();
278 RegisterFunction<GetExtensionByIdFunction>(); 294 RegisterFunction<GetExtensionByIdFunction>();
279 RegisterFunction<LaunchAppFunction>(); 295 RegisterFunction<LaunchAppFunction>();
280 RegisterFunction<SetEnabledFunction>(); 296 RegisterFunction<SetEnabledFunction>();
281 RegisterFunction<UninstallFunction>(); 297 RegisterFunction<UninstallFunction>();
282 298
283 // Extension module. 299 // Extension module.
284 RegisterFunction<SetUpdateUrlDataFunction>(); 300 RegisterFunction<SetUpdateUrlDataFunction>();
285 RegisterFunction<IsAllowedIncognitoAccessFunction>(); 301 RegisterFunction<IsAllowedIncognitoAccessFunction>();
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
535 NOTREACHED(); 551 NOTREACHED();
536 UserMetrics::RecordAction(UserMetricsAction("BadMessageTerminate_EFD")); 552 UserMetrics::RecordAction(UserMetricsAction("BadMessageTerminate_EFD"));
537 base::KillProcess(render_view_host_->process()->GetHandle(), 553 base::KillProcess(render_view_host_->process()->GetHandle(),
538 ResultCodes::KILLED_BAD_MESSAGE, false); 554 ResultCodes::KILLED_BAD_MESSAGE, false);
539 } 555 }
540 } 556 }
541 557
542 Profile* ExtensionFunctionDispatcher::profile() { 558 Profile* ExtensionFunctionDispatcher::profile() {
543 return profile_; 559 return profile_;
544 } 560 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_input_ui_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698