| 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 403 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 414 RegisterFunction<TogglePlaylistPanelMediaplayerFunction>(); | 414 RegisterFunction<TogglePlaylistPanelMediaplayerFunction>(); |
| 415 RegisterFunction<ToggleFullscreenMediaplayerFunction>(); | 415 RegisterFunction<ToggleFullscreenMediaplayerFunction>(); |
| 416 | 416 |
| 417 // InputMethod | 417 // InputMethod |
| 418 RegisterFunction<GetInputMethodFunction>(); | 418 RegisterFunction<GetInputMethodFunction>(); |
| 419 | 419 |
| 420 // Terminal | 420 // Terminal |
| 421 RegisterFunction<OpenTerminalProcessFunction>(); | 421 RegisterFunction<OpenTerminalProcessFunction>(); |
| 422 RegisterFunction<SendInputToTerminalProcessFunction>(); | 422 RegisterFunction<SendInputToTerminalProcessFunction>(); |
| 423 RegisterFunction<CloseTerminalProcessFunction>(); | 423 RegisterFunction<CloseTerminalProcessFunction>(); |
| 424 RegisterFunction<OnTerminalResizeFunction>(); |
| 424 | 425 |
| 425 #if defined(USE_VIRTUAL_KEYBOARD) | 426 #if defined(USE_VIRTUAL_KEYBOARD) |
| 426 // Input | 427 // Input |
| 427 RegisterFunction<SendHandwritingStrokeFunction>(); | 428 RegisterFunction<SendHandwritingStrokeFunction>(); |
| 428 RegisterFunction<CancelHandwritingStrokesFunction>(); | 429 RegisterFunction<CancelHandwritingStrokesFunction>(); |
| 429 #endif | 430 #endif |
| 430 #endif | 431 #endif |
| 431 | 432 |
| 432 // Websocket to TCP proxy. Currently noop on anything other than ChromeOS. | 433 // Websocket to TCP proxy. Currently noop on anything other than ChromeOS. |
| 433 RegisterFunction<WebSocketProxyPrivateGetPassportForTCPFunction>(); | 434 RegisterFunction<WebSocketProxyPrivateGetPassportForTCPFunction>(); |
| (...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 758 return function; | 759 return function; |
| 759 } | 760 } |
| 760 | 761 |
| 761 // static | 762 // static |
| 762 void ExtensionFunctionDispatcher::SendAccessDenied( | 763 void ExtensionFunctionDispatcher::SendAccessDenied( |
| 763 IPC::Message::Sender* ipc_sender, int routing_id, int request_id) { | 764 IPC::Message::Sender* ipc_sender, int routing_id, int request_id) { |
| 764 ipc_sender->Send(new ExtensionMsg_Response( | 765 ipc_sender->Send(new ExtensionMsg_Response( |
| 765 routing_id, request_id, false, std::string(), | 766 routing_id, request_id, false, std::string(), |
| 766 "Access to extension API denied.")); | 767 "Access to extension API denied.")); |
| 767 } | 768 } |
| OLD | NEW |