| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/json/json_value_serializer.h" | 9 #include "base/json/json_value_serializer.h" |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 416 RegisterFunction<TogglePlaylistPanelMediaplayerFunction>(); | 416 RegisterFunction<TogglePlaylistPanelMediaplayerFunction>(); |
| 417 RegisterFunction<ToggleFullscreenMediaplayerFunction>(); | 417 RegisterFunction<ToggleFullscreenMediaplayerFunction>(); |
| 418 | 418 |
| 419 // InputMethod | 419 // InputMethod |
| 420 RegisterFunction<GetInputMethodFunction>(); | 420 RegisterFunction<GetInputMethodFunction>(); |
| 421 | 421 |
| 422 // Terminal | 422 // Terminal |
| 423 RegisterFunction<OpenTerminalProcessFunction>(); | 423 RegisterFunction<OpenTerminalProcessFunction>(); |
| 424 RegisterFunction<SendInputToTerminalProcessFunction>(); | 424 RegisterFunction<SendInputToTerminalProcessFunction>(); |
| 425 RegisterFunction<CloseTerminalProcessFunction>(); | 425 RegisterFunction<CloseTerminalProcessFunction>(); |
| 426 RegisterFunction<OnTerminalResizeFunction>(); |
| 426 | 427 |
| 427 #if defined(USE_VIRTUAL_KEYBOARD) | 428 #if defined(USE_VIRTUAL_KEYBOARD) |
| 428 // Input | 429 // Input |
| 429 RegisterFunction<SendHandwritingStrokeFunction>(); | 430 RegisterFunction<SendHandwritingStrokeFunction>(); |
| 430 RegisterFunction<CancelHandwritingStrokesFunction>(); | 431 RegisterFunction<CancelHandwritingStrokesFunction>(); |
| 431 #endif | 432 #endif |
| 432 #endif | 433 #endif |
| 433 | 434 |
| 434 // Websocket to TCP proxy. Currently noop on anything other than ChromeOS. | 435 // Websocket to TCP proxy. Currently noop on anything other than ChromeOS. |
| 435 RegisterFunction<WebSocketProxyPrivateGetPassportForTCPFunction>(); | 436 RegisterFunction<WebSocketProxyPrivateGetPassportForTCPFunction>(); |
| (...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 766 return function; | 767 return function; |
| 767 } | 768 } |
| 768 | 769 |
| 769 // static | 770 // static |
| 770 void ExtensionFunctionDispatcher::SendAccessDenied( | 771 void ExtensionFunctionDispatcher::SendAccessDenied( |
| 771 IPC::Message::Sender* ipc_sender, int routing_id, int request_id) { | 772 IPC::Message::Sender* ipc_sender, int routing_id, int request_id) { |
| 772 ipc_sender->Send(new ExtensionMsg_Response( | 773 ipc_sender->Send(new ExtensionMsg_Response( |
| 773 routing_id, request_id, false, std::string(), | 774 routing_id, request_id, false, std::string(), |
| 774 "Access to extension API denied.")); | 775 "Access to extension API denied.")); |
| 775 } | 776 } |
| OLD | NEW |