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

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: Rename ime.ui to input.ui 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
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 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_input_ui_api.h » ('j') | chrome/browser/extensions/extension_input_ui_api.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698