| 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 // IPC messages for page rendering. | 5 // IPC messages for page rendering. |
| 6 // Multiply-included message file, hence no include guard. | 6 // Multiply-included message file, hence no include guard. |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 #include "content/public/common/three_d_api_types.h" | 35 #include "content/public/common/three_d_api_types.h" |
| 36 #include "content/public/common/window_container_type.h" | 36 #include "content/public/common/window_container_type.h" |
| 37 #include "ipc/ipc_channel_handle.h" | 37 #include "ipc/ipc_channel_handle.h" |
| 38 #include "ipc/ipc_message_macros.h" | 38 #include "ipc/ipc_message_macros.h" |
| 39 #include "media/base/audio_parameters.h" | 39 #include "media/base/audio_parameters.h" |
| 40 #include "media/base/channel_layout.h" | 40 #include "media/base/channel_layout.h" |
| 41 #include "media/base/ipc/media_param_traits.h" | 41 #include "media/base/ipc/media_param_traits.h" |
| 42 #include "media/base/media_log_event.h" | 42 #include "media/base/media_log_event.h" |
| 43 #include "media/capture/ipc/capture_param_traits.h" | 43 #include "media/capture/ipc/capture_param_traits.h" |
| 44 #include "net/base/network_change_notifier.h" | 44 #include "net/base/network_change_notifier.h" |
| 45 #include "ppapi/features/features.h" |
| 45 #include "third_party/WebKit/public/platform/WebDisplayMode.h" | 46 #include "third_party/WebKit/public/platform/WebDisplayMode.h" |
| 46 #include "third_party/WebKit/public/platform/WebFloatPoint.h" | 47 #include "third_party/WebKit/public/platform/WebFloatPoint.h" |
| 47 #include "third_party/WebKit/public/platform/WebFloatRect.h" | 48 #include "third_party/WebKit/public/platform/WebFloatRect.h" |
| 48 #include "third_party/WebKit/public/platform/modules/screen_orientation/WebScree
nOrientationType.h" | 49 #include "third_party/WebKit/public/platform/modules/screen_orientation/WebScree
nOrientationType.h" |
| 49 #include "third_party/WebKit/public/web/WebDeviceEmulationParams.h" | 50 #include "third_party/WebKit/public/web/WebDeviceEmulationParams.h" |
| 50 #include "third_party/WebKit/public/web/WebMediaPlayerAction.h" | 51 #include "third_party/WebKit/public/web/WebMediaPlayerAction.h" |
| 51 #include "third_party/WebKit/public/web/WebPluginAction.h" | 52 #include "third_party/WebKit/public/web/WebPluginAction.h" |
| 52 #include "third_party/WebKit/public/web/WebPopupType.h" | 53 #include "third_party/WebKit/public/web/WebPopupType.h" |
| 53 #include "third_party/WebKit/public/web/WebSharedWorkerCreationContextType.h" | 54 #include "third_party/WebKit/public/web/WebSharedWorkerCreationContextType.h" |
| 54 #include "third_party/WebKit/public/web/WebSharedWorkerCreationErrors.h" | 55 #include "third_party/WebKit/public/web/WebSharedWorkerCreationErrors.h" |
| (...skipping 491 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 546 IPC_MESSAGE_ROUTED0(ViewMsg_WorkerScriptLoadFailed) | 547 IPC_MESSAGE_ROUTED0(ViewMsg_WorkerScriptLoadFailed) |
| 547 | 548 |
| 548 // Sent when the worker has connected. | 549 // Sent when the worker has connected. |
| 549 // This message is sent only if the worker successfully loaded the script. | 550 // This message is sent only if the worker successfully loaded the script. |
| 550 IPC_MESSAGE_ROUTED0(ViewMsg_WorkerConnected) | 551 IPC_MESSAGE_ROUTED0(ViewMsg_WorkerConnected) |
| 551 | 552 |
| 552 // Sent by the browser to synchronize with the next compositor frame. Used only | 553 // Sent by the browser to synchronize with the next compositor frame. Used only |
| 553 // for tests. | 554 // for tests. |
| 554 IPC_MESSAGE_ROUTED1(ViewMsg_WaitForNextFrameForTests, int /* routing_id */) | 555 IPC_MESSAGE_ROUTED1(ViewMsg_WaitForNextFrameForTests, int /* routing_id */) |
| 555 | 556 |
| 556 #if defined(ENABLE_PLUGINS) | 557 #if BUILDFLAG(ENABLE_PLUGINS) |
| 557 // Reply to ViewHostMsg_OpenChannelToPpapiBroker | 558 // Reply to ViewHostMsg_OpenChannelToPpapiBroker |
| 558 // Tells the renderer that the channel to the broker has been created. | 559 // Tells the renderer that the channel to the broker has been created. |
| 559 IPC_MESSAGE_ROUTED2(ViewMsg_PpapiBrokerChannelCreated, | 560 IPC_MESSAGE_ROUTED2(ViewMsg_PpapiBrokerChannelCreated, |
| 560 base::ProcessId /* broker_pid */, | 561 base::ProcessId /* broker_pid */, |
| 561 IPC::ChannelHandle /* handle */) | 562 IPC::ChannelHandle /* handle */) |
| 562 | 563 |
| 563 // Reply to ViewHostMsg_RequestPpapiBrokerPermission. | 564 // Reply to ViewHostMsg_RequestPpapiBrokerPermission. |
| 564 // Tells the renderer whether permission to access to PPAPI broker was granted | 565 // Tells the renderer whether permission to access to PPAPI broker was granted |
| 565 // or not. | 566 // or not. |
| 566 IPC_MESSAGE_ROUTED1(ViewMsg_PpapiBrokerPermissionResult, | 567 IPC_MESSAGE_ROUTED1(ViewMsg_PpapiBrokerPermissionResult, |
| (...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 753 IPC_MESSAGE_ROUTED1(ViewHostMsg_HasTouchEventHandlers, | 754 IPC_MESSAGE_ROUTED1(ViewHostMsg_HasTouchEventHandlers, |
| 754 bool /* has_handlers */) | 755 bool /* has_handlers */) |
| 755 | 756 |
| 756 // A message from HTML-based UI. When (trusted) Javascript calls | 757 // A message from HTML-based UI. When (trusted) Javascript calls |
| 757 // send(message, args), this message is sent to the browser. | 758 // send(message, args), this message is sent to the browser. |
| 758 IPC_MESSAGE_ROUTED3(ViewHostMsg_WebUISend, | 759 IPC_MESSAGE_ROUTED3(ViewHostMsg_WebUISend, |
| 759 GURL /* source_url */, | 760 GURL /* source_url */, |
| 760 std::string /* message */, | 761 std::string /* message */, |
| 761 base::ListValue /* args */) | 762 base::ListValue /* args */) |
| 762 | 763 |
| 763 #if defined(ENABLE_PLUGINS) | 764 #if BUILDFLAG(ENABLE_PLUGINS) |
| 764 // A renderer sends this to the browser process when it wants to access a PPAPI | 765 // A renderer sends this to the browser process when it wants to access a PPAPI |
| 765 // broker. In contrast to FrameHostMsg_OpenChannelToPpapiBroker, this is called | 766 // broker. In contrast to FrameHostMsg_OpenChannelToPpapiBroker, this is called |
| 766 // for every connection. | 767 // for every connection. |
| 767 // The browser will respond with ViewMsg_PpapiBrokerPermissionResult. | 768 // The browser will respond with ViewMsg_PpapiBrokerPermissionResult. |
| 768 IPC_MESSAGE_ROUTED3(ViewHostMsg_RequestPpapiBrokerPermission, | 769 IPC_MESSAGE_ROUTED3(ViewHostMsg_RequestPpapiBrokerPermission, |
| 769 int /* routing_id */, | 770 int /* routing_id */, |
| 770 GURL /* document_url */, | 771 GURL /* document_url */, |
| 771 base::FilePath /* plugin_path */) | 772 base::FilePath /* plugin_path */) |
| 772 #endif // defined(ENABLE_PLUGINS) | 773 #endif // BUILDFLAG(ENABLE_PLUGINS) |
| 773 | 774 |
| 774 // Send the tooltip text for the current mouse position to the browser. | 775 // Send the tooltip text for the current mouse position to the browser. |
| 775 IPC_MESSAGE_ROUTED2(ViewHostMsg_SetTooltipText, | 776 IPC_MESSAGE_ROUTED2(ViewHostMsg_SetTooltipText, |
| 776 base::string16 /* tooltip text string */, | 777 base::string16 /* tooltip text string */, |
| 777 blink::WebTextDirection /* text direction hint */) | 778 blink::WebTextDirection /* text direction hint */) |
| 778 | 779 |
| 779 // Notification that the selection bounds have changed. | 780 // Notification that the selection bounds have changed. |
| 780 IPC_MESSAGE_ROUTED1(ViewHostMsg_SelectionBoundsChanged, | 781 IPC_MESSAGE_ROUTED1(ViewHostMsg_SelectionBoundsChanged, |
| 781 ViewHostMsg_SelectionBounds_Params) | 782 ViewHostMsg_SelectionBounds_Params) |
| 782 | 783 |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 924 int /* y */) | 925 int /* y */) |
| 925 | 926 |
| 926 #elif defined(OS_MACOSX) | 927 #elif defined(OS_MACOSX) |
| 927 // Receives content of a web page as plain text. | 928 // Receives content of a web page as plain text. |
| 928 IPC_MESSAGE_ROUTED1(ViewMsg_GetRenderedTextCompleted, std::string) | 929 IPC_MESSAGE_ROUTED1(ViewMsg_GetRenderedTextCompleted, std::string) |
| 929 #endif | 930 #endif |
| 930 | 931 |
| 931 // Adding a new message? Stick to the sort order above: first platform | 932 // Adding a new message? Stick to the sort order above: first platform |
| 932 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform | 933 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform |
| 933 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. | 934 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. |
| OLD | NEW |