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

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

Issue 8651001: Move functions out of TOUCH_UI defines. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review comments Created 9 years 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 #include "chrome/common/url_constants.h" 67 #include "chrome/common/url_constants.h"
68 #include "content/browser/renderer_host/render_view_host.h" 68 #include "content/browser/renderer_host/render_view_host.h"
69 #include "ipc/ipc_message.h" 69 #include "ipc/ipc_message.h"
70 #include "ipc/ipc_message_macros.h" 70 #include "ipc/ipc_message_macros.h"
71 #include "third_party/skia/include/core/SkBitmap.h" 71 #include "third_party/skia/include/core/SkBitmap.h"
72 72
73 #if defined(TOOLKIT_VIEWS) 73 #if defined(TOOLKIT_VIEWS)
74 #include "chrome/browser/extensions/extension_input_api.h" 74 #include "chrome/browser/extensions/extension_input_api.h"
75 #endif 75 #endif
76 76
77 #if defined(OS_CHROMEOS) && defined(TOUCH_UI) 77 #if defined(OS_CHROMEOS) && defined(USE_VIRTUAL_KEYBOARD)
78 #include "chrome/browser/extensions/extension_input_ui_api.h" 78 #include "chrome/browser/extensions/extension_input_ui_api.h"
79 #endif 79 #endif
80 80
81 #if defined(OS_CHROMEOS) 81 #if defined(OS_CHROMEOS)
82 #include "chrome/browser/extensions/extension_file_browser_private_api.h" 82 #include "chrome/browser/extensions/extension_file_browser_private_api.h"
83 #include "chrome/browser/extensions/extension_info_private_api_chromeos.h" 83 #include "chrome/browser/extensions/extension_info_private_api_chromeos.h"
84 #include "chrome/browser/extensions/extension_input_ime_api.h" 84 #include "chrome/browser/extensions/extension_input_ime_api.h"
85 #include "chrome/browser/extensions/extension_input_method_api.h" 85 #include "chrome/browser/extensions/extension_input_method_api.h"
86 #include "chrome/browser/extensions/extension_mediaplayer_private_api.h" 86 #include "chrome/browser/extensions/extension_mediaplayer_private_api.h"
87 #endif 87 #endif
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
321 RegisterFunction<SetCompositionFunction>(); 321 RegisterFunction<SetCompositionFunction>();
322 RegisterFunction<ClearCompositionFunction>(); 322 RegisterFunction<ClearCompositionFunction>();
323 RegisterFunction<CommitTextFunction>(); 323 RegisterFunction<CommitTextFunction>();
324 RegisterFunction<SetCandidateWindowPropertiesFunction>(); 324 RegisterFunction<SetCandidateWindowPropertiesFunction>();
325 RegisterFunction<SetCandidatesFunction>(); 325 RegisterFunction<SetCandidatesFunction>();
326 RegisterFunction<SetCursorPositionFunction>(); 326 RegisterFunction<SetCursorPositionFunction>();
327 RegisterFunction<SetMenuItemsFunction>(); 327 RegisterFunction<SetMenuItemsFunction>();
328 RegisterFunction<UpdateMenuItemsFunction>(); 328 RegisterFunction<UpdateMenuItemsFunction>();
329 329
330 RegisterFunction<InputEventHandled>(); 330 RegisterFunction<InputEventHandled>();
331 #if defined(TOUCH_UI) 331 #if defined(USE_VIRTUAL_KEYBOARD)
332 RegisterFunction<CandidateClickedInputUiFunction>(); 332 RegisterFunction<CandidateClickedInputUiFunction>();
333 RegisterFunction<CursorUpInputUiFunction>(); 333 RegisterFunction<CursorUpInputUiFunction>();
334 RegisterFunction<CursorDownInputUiFunction>(); 334 RegisterFunction<CursorDownInputUiFunction>();
335 RegisterFunction<PageUpInputUiFunction>(); 335 RegisterFunction<PageUpInputUiFunction>();
336 RegisterFunction<PageDownInputUiFunction>(); 336 RegisterFunction<PageDownInputUiFunction>();
337 RegisterFunction<RegisterInputUiFunction>(); 337 RegisterFunction<RegisterInputUiFunction>();
338 RegisterFunction<PageUpInputUiFunction>(); 338 RegisterFunction<PageUpInputUiFunction>();
339 RegisterFunction<PageDownInputUiFunction>(); 339 RegisterFunction<PageDownInputUiFunction>();
340 #endif 340 #endif
341 #endif 341 #endif
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
404 // Mediaplayer 404 // Mediaplayer
405 RegisterFunction<PlayAtMediaplayerFunction>(); 405 RegisterFunction<PlayAtMediaplayerFunction>();
406 RegisterFunction<SetPlaybackErrorMediaplayerFunction>(); 406 RegisterFunction<SetPlaybackErrorMediaplayerFunction>();
407 RegisterFunction<GetPlaylistMediaplayerFunction>(); 407 RegisterFunction<GetPlaylistMediaplayerFunction>();
408 RegisterFunction<TogglePlaylistPanelMediaplayerFunction>(); 408 RegisterFunction<TogglePlaylistPanelMediaplayerFunction>();
409 RegisterFunction<ToggleFullscreenMediaplayerFunction>(); 409 RegisterFunction<ToggleFullscreenMediaplayerFunction>();
410 410
411 // InputMethod 411 // InputMethod
412 RegisterFunction<GetInputMethodFunction>(); 412 RegisterFunction<GetInputMethodFunction>();
413 413
414 #if defined(TOUCH_UI) 414 #if defined(USE_VIRTUAL_KEYBOARD)
415 // Input 415 // Input
416 RegisterFunction<SendHandwritingStrokeFunction>(); 416 RegisterFunction<SendHandwritingStrokeFunction>();
417 RegisterFunction<CancelHandwritingStrokesFunction>(); 417 RegisterFunction<CancelHandwritingStrokesFunction>();
418 #endif 418 #endif
419 #endif 419 #endif
420 420
421 // Websocket to TCP proxy. Currently noop on anything other than ChromeOS. 421 // Websocket to TCP proxy. Currently noop on anything other than ChromeOS.
422 RegisterFunction<WebSocketProxyPrivateGetPassportForTCPFunction>(); 422 RegisterFunction<WebSocketProxyPrivateGetPassportForTCPFunction>();
423 RegisterFunction<WebSocketProxyPrivateGetURLForTCPFunction>(); 423 RegisterFunction<WebSocketProxyPrivateGetURLForTCPFunction>();
424 424
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
682 return function; 682 return function;
683 } 683 }
684 684
685 // static 685 // static
686 void ExtensionFunctionDispatcher::SendAccessDenied( 686 void ExtensionFunctionDispatcher::SendAccessDenied(
687 IPC::Message::Sender* ipc_sender, int routing_id, int request_id) { 687 IPC::Message::Sender* ipc_sender, int routing_id, int request_id) {
688 ipc_sender->Send(new ExtensionMsg_Response( 688 ipc_sender->Send(new ExtensionMsg_Response(
689 routing_id, request_id, false, std::string(), 689 routing_id, request_id, false, std::string(),
690 "Access to extension API denied.")); 690 "Access to extension API denied."));
691 } 691 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_input_api.h » ('j') | chrome/browser/extensions/extension_service.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698