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

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: Fix build errors 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
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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 #include "content/common/notification_service.h" 57 #include "content/common/notification_service.h"
58 #include "content/common/result_codes.h" 58 #include "content/common/result_codes.h"
59 #include "ipc/ipc_message.h" 59 #include "ipc/ipc_message.h"
60 #include "ipc/ipc_message_macros.h" 60 #include "ipc/ipc_message_macros.h"
61 #include "third_party/skia/include/core/SkBitmap.h" 61 #include "third_party/skia/include/core/SkBitmap.h"
62 62
63 #if defined(TOOLKIT_VIEWS) 63 #if defined(TOOLKIT_VIEWS)
64 #include "chrome/browser/extensions/extension_input_api.h" 64 #include "chrome/browser/extensions/extension_input_api.h"
65 #endif 65 #endif
66 66
67 #if defined(OS_CHROMEOS) && defined(TOUCH_UI)
68 #include "chrome/browser/extensions/extension_input_ui_api.h"
69 #endif
70
67 #if defined(OS_CHROMEOS) 71 #if defined(OS_CHROMEOS)
68 #include "chrome/browser/extensions/extension_file_browser_private_api.h" 72 #include "chrome/browser/extensions/extension_file_browser_private_api.h"
69 #include "chrome/browser/extensions/extension_info_private_api_chromeos.h" 73 #include "chrome/browser/extensions/extension_info_private_api_chromeos.h"
70 #endif 74 #endif
71 75
72 // FactoryRegistry ------------------------------------------------------------- 76 // FactoryRegistry -------------------------------------------------------------
73 77
74 namespace { 78 namespace {
75 79
76 // Template for defining ExtensionFunctionFactory. 80 // Template for defining ExtensionFunctionFactory.
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 RegisterFunction<SetBadgeTextSidebarFunction>(); 276 RegisterFunction<SetBadgeTextSidebarFunction>();
273 RegisterFunction<SetIconSidebarFunction>(); 277 RegisterFunction<SetIconSidebarFunction>();
274 RegisterFunction<SetTitleSidebarFunction>(); 278 RegisterFunction<SetTitleSidebarFunction>();
275 RegisterFunction<ShowSidebarFunction>(); 279 RegisterFunction<ShowSidebarFunction>();
276 280
277 #if defined(TOOLKIT_VIEWS) 281 #if defined(TOOLKIT_VIEWS)
278 // Input. 282 // Input.
279 RegisterFunction<SendKeyboardEventInputFunction>(); 283 RegisterFunction<SendKeyboardEventInputFunction>();
280 #endif 284 #endif
281 285
286 #if defined(OS_CHROMEOS) && defined(TOUCH_UI)
287 // IME
288 RegisterFunction<CandidateClickedInputUiFunction>();
289 RegisterFunction<CursorUpInputUiFunction>();
290 RegisterFunction<CursorDownInputUiFunction>();
291 RegisterFunction<PageUpInputUiFunction>();
292 RegisterFunction<PageDownInputUiFunction>();
293 RegisterFunction<RegisterInputUiFunction>();
294 RegisterFunction<PageUpInputUiFunction>();
295 RegisterFunction<PageDownInputUiFunction>();
296 #endif
297
282 // Management. 298 // Management.
283 RegisterFunction<GetAllExtensionsFunction>(); 299 RegisterFunction<GetAllExtensionsFunction>();
284 RegisterFunction<GetExtensionByIdFunction>(); 300 RegisterFunction<GetExtensionByIdFunction>();
285 RegisterFunction<LaunchAppFunction>(); 301 RegisterFunction<LaunchAppFunction>();
286 RegisterFunction<SetEnabledFunction>(); 302 RegisterFunction<SetEnabledFunction>();
287 RegisterFunction<UninstallFunction>(); 303 RegisterFunction<UninstallFunction>();
288 304
289 // Extension module. 305 // Extension module.
290 RegisterFunction<SetUpdateUrlDataFunction>(); 306 RegisterFunction<SetUpdateUrlDataFunction>();
291 RegisterFunction<IsAllowedIncognitoAccessFunction>(); 307 RegisterFunction<IsAllowedIncognitoAccessFunction>();
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
542 NOTREACHED(); 558 NOTREACHED();
543 UserMetrics::RecordAction(UserMetricsAction("BadMessageTerminate_EFD")); 559 UserMetrics::RecordAction(UserMetricsAction("BadMessageTerminate_EFD"));
544 base::KillProcess(render_view_host_->process()->GetHandle(), 560 base::KillProcess(render_view_host_->process()->GetHandle(),
545 ResultCodes::KILLED_BAD_MESSAGE, false); 561 ResultCodes::KILLED_BAD_MESSAGE, false);
546 } 562 }
547 } 563 }
548 564
549 Profile* ExtensionFunctionDispatcher::profile() { 565 Profile* ExtensionFunctionDispatcher::profile() {
550 return profile_; 566 return profile_;
551 } 567 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_input_ui_api.h » ('j') | chrome/chrome_browser.gypi » ('J')

Powered by Google App Engine
This is Rietveld 408576698