| 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 609 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 620 // node. | 620 // node. |
| 621 IPC_MESSAGE_ROUTED1(ViewMsg_SetInitialFocus, | 621 IPC_MESSAGE_ROUTED1(ViewMsg_SetInitialFocus, |
| 622 bool /* reverse */) | 622 bool /* reverse */) |
| 623 | 623 |
| 624 // Sent to inform the renderer to invoke a context menu. | 624 // Sent to inform the renderer to invoke a context menu. |
| 625 // The parameter specifies the location in the render view's coordinates. | 625 // The parameter specifies the location in the render view's coordinates. |
| 626 IPC_MESSAGE_ROUTED2(ViewMsg_ShowContextMenu, | 626 IPC_MESSAGE_ROUTED2(ViewMsg_ShowContextMenu, |
| 627 ui::MenuSourceType, | 627 ui::MenuSourceType, |
| 628 gfx::Point /* location where menu should be shown */) | 628 gfx::Point /* location where menu should be shown */) |
| 629 | 629 |
| 630 // Copies the image at location x, y to the clipboard (if there indeed is an | |
| 631 // image at that location). | |
| 632 IPC_MESSAGE_ROUTED2(ViewMsg_CopyImageAt, | |
| 633 int /* x */, | |
| 634 int /* y */) | |
| 635 | |
| 636 // Saves the image at location x, y to the disk (if there indeed is an | |
| 637 // image at that location). | |
| 638 IPC_MESSAGE_ROUTED2(ViewMsg_SaveImageAt, | |
| 639 int /* x */, | |
| 640 int /* y */) | |
| 641 | |
| 642 // Tells the renderer to perform the given action on the media player | 630 // Tells the renderer to perform the given action on the media player |
| 643 // located at the given point. | 631 // located at the given point. |
| 644 IPC_MESSAGE_ROUTED2(ViewMsg_MediaPlayerActionAt, | 632 IPC_MESSAGE_ROUTED2(ViewMsg_MediaPlayerActionAt, |
| 645 gfx::Point, /* location */ | 633 gfx::Point, /* location */ |
| 646 blink::WebMediaPlayerAction) | 634 blink::WebMediaPlayerAction) |
| 647 | 635 |
| 648 // Tells the renderer to perform the given action on the plugin located at | 636 // Tells the renderer to perform the given action on the plugin located at |
| 649 // the given point. | 637 // the given point. |
| 650 IPC_MESSAGE_ROUTED2(ViewMsg_PluginActionAt, | 638 IPC_MESSAGE_ROUTED2(ViewMsg_PluginActionAt, |
| 651 gfx::Point, /* location */ | 639 gfx::Point, /* location */ |
| (...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1024 // hop. | 1012 // hop. |
| 1025 IPC_MESSAGE_CONTROL1(ViewHostMsg_ForwardToWorker, | 1013 IPC_MESSAGE_CONTROL1(ViewHostMsg_ForwardToWorker, |
| 1026 IPC::Message /* message */) | 1014 IPC::Message /* message */) |
| 1027 | 1015 |
| 1028 // Tells the browser that a specific Appcache manifest in the current page | 1016 // Tells the browser that a specific Appcache manifest in the current page |
| 1029 // was accessed. | 1017 // was accessed. |
| 1030 IPC_MESSAGE_ROUTED2(ViewHostMsg_AppCacheAccessed, | 1018 IPC_MESSAGE_ROUTED2(ViewHostMsg_AppCacheAccessed, |
| 1031 GURL /* manifest url */, | 1019 GURL /* manifest url */, |
| 1032 bool /* blocked by policy */) | 1020 bool /* blocked by policy */) |
| 1033 | 1021 |
| 1034 // Initiates a download based on user actions like 'ALT+click'. | |
| 1035 IPC_MESSAGE_CONTROL5(ViewHostMsg_DownloadUrl, | |
| 1036 int /* render_view_id */, | |
| 1037 int /* render_frame_id */, | |
| 1038 GURL /* url */, | |
| 1039 content::Referrer /* referrer */, | |
| 1040 base::string16 /* suggested_name */) | |
| 1041 | |
| 1042 // Used to go to the session history entry at the given offset (ie, -1 will | 1022 // Used to go to the session history entry at the given offset (ie, -1 will |
| 1043 // return the "back" item). | 1023 // return the "back" item). |
| 1044 IPC_MESSAGE_ROUTED1(ViewHostMsg_GoToEntryAtOffset, | 1024 IPC_MESSAGE_ROUTED1(ViewHostMsg_GoToEntryAtOffset, |
| 1045 int /* offset (from current) of history item to get */) | 1025 int /* offset (from current) of history item to get */) |
| 1046 | 1026 |
| 1047 // Sent from an inactive renderer for the browser to route to the active | 1027 // Sent from an inactive renderer for the browser to route to the active |
| 1048 // renderer, instructing it to close. | 1028 // renderer, instructing it to close. |
| 1049 IPC_MESSAGE_ROUTED0(ViewHostMsg_RouteCloseEvent) | 1029 IPC_MESSAGE_ROUTED0(ViewHostMsg_RouteCloseEvent) |
| 1050 | 1030 |
| 1051 // Notifies that the preferred size of the content changed. | 1031 // Notifies that the preferred size of the content changed. |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1098 content::FileChooserParams) | 1078 content::FileChooserParams) |
| 1099 | 1079 |
| 1100 // Asks the browser to enumerate a directory. This is equivalent to running | 1080 // Asks the browser to enumerate a directory. This is equivalent to running |
| 1101 // the file chooser in directory-enumeration mode and having the user select | 1081 // the file chooser in directory-enumeration mode and having the user select |
| 1102 // the given directory. The result is returned in a | 1082 // the given directory. The result is returned in a |
| 1103 // ViewMsg_EnumerateDirectoryResponse message. | 1083 // ViewMsg_EnumerateDirectoryResponse message. |
| 1104 IPC_MESSAGE_ROUTED2(ViewHostMsg_EnumerateDirectory, | 1084 IPC_MESSAGE_ROUTED2(ViewHostMsg_EnumerateDirectory, |
| 1105 int /* request_id */, | 1085 int /* request_id */, |
| 1106 base::FilePath /* file_path */) | 1086 base::FilePath /* file_path */) |
| 1107 | 1087 |
| 1108 // Asks the browser to save a image (for <canvas> or <img>) from a data URL. | |
| 1109 // Note: |data_url| is the contents of a data:URL, and that it's represented as | |
| 1110 // a string only to work around size limitations for GURLs in IPC messages. | |
| 1111 IPC_MESSAGE_CONTROL3(ViewHostMsg_SaveImageFromDataURL, | |
| 1112 int /* render_view_id */, | |
| 1113 int /* render_frame_id */, | |
| 1114 std::string /* data_url */) | |
| 1115 | |
| 1116 // Tells the browser to move the focus to the next (previous if reverse is | 1088 // Tells the browser to move the focus to the next (previous if reverse is |
| 1117 // true) focusable element. | 1089 // true) focusable element. |
| 1118 IPC_MESSAGE_ROUTED1(ViewHostMsg_TakeFocus, | 1090 IPC_MESSAGE_ROUTED1(ViewHostMsg_TakeFocus, |
| 1119 bool /* reverse */) | 1091 bool /* reverse */) |
| 1120 | 1092 |
| 1121 // Required for opening a date/time dialog | 1093 // Required for opening a date/time dialog |
| 1122 IPC_MESSAGE_ROUTED1(ViewHostMsg_OpenDateTimeDialog, | 1094 IPC_MESSAGE_ROUTED1(ViewHostMsg_OpenDateTimeDialog, |
| 1123 ViewHostMsg_DateTimeDialogValue_Params /* value */) | 1095 ViewHostMsg_DateTimeDialogValue_Params /* value */) |
| 1124 | 1096 |
| 1125 // Required for updating text input state. | 1097 // Required for updating text input state. |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1249 int /* y */) | 1221 int /* y */) |
| 1250 | 1222 |
| 1251 #elif defined(OS_MACOSX) | 1223 #elif defined(OS_MACOSX) |
| 1252 // Receives content of a web page as plain text. | 1224 // Receives content of a web page as plain text. |
| 1253 IPC_MESSAGE_ROUTED1(ViewMsg_GetRenderedTextCompleted, std::string) | 1225 IPC_MESSAGE_ROUTED1(ViewMsg_GetRenderedTextCompleted, std::string) |
| 1254 #endif | 1226 #endif |
| 1255 | 1227 |
| 1256 // Adding a new message? Stick to the sort order above: first platform | 1228 // Adding a new message? Stick to the sort order above: first platform |
| 1257 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform | 1229 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform |
| 1258 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. | 1230 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. |
| OLD | NEW |