| 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 585 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 596 // node. | 596 // node. |
| 597 IPC_MESSAGE_ROUTED1(ViewMsg_SetInitialFocus, | 597 IPC_MESSAGE_ROUTED1(ViewMsg_SetInitialFocus, |
| 598 bool /* reverse */) | 598 bool /* reverse */) |
| 599 | 599 |
| 600 // Sent to inform the renderer to invoke a context menu. | 600 // Sent to inform the renderer to invoke a context menu. |
| 601 // The parameter specifies the location in the render view's coordinates. | 601 // The parameter specifies the location in the render view's coordinates. |
| 602 IPC_MESSAGE_ROUTED2(ViewMsg_ShowContextMenu, | 602 IPC_MESSAGE_ROUTED2(ViewMsg_ShowContextMenu, |
| 603 ui::MenuSourceType, | 603 ui::MenuSourceType, |
| 604 gfx::Point /* location where menu should be shown */) | 604 gfx::Point /* location where menu should be shown */) |
| 605 | 605 |
| 606 // Copies the image at location x, y to the clipboard (if there indeed is an | |
| 607 // image at that location). | |
| 608 IPC_MESSAGE_ROUTED2(ViewMsg_CopyImageAt, | |
| 609 int /* x */, | |
| 610 int /* y */) | |
| 611 | |
| 612 // Saves the image at location x, y to the disk (if there indeed is an | |
| 613 // image at that location). | |
| 614 IPC_MESSAGE_ROUTED2(ViewMsg_SaveImageAt, | |
| 615 int /* x */, | |
| 616 int /* y */) | |
| 617 | |
| 618 // Tells the renderer to perform the given action on the media player | 606 // Tells the renderer to perform the given action on the media player |
| 619 // located at the given point. | 607 // located at the given point. |
| 620 IPC_MESSAGE_ROUTED2(ViewMsg_MediaPlayerActionAt, | 608 IPC_MESSAGE_ROUTED2(ViewMsg_MediaPlayerActionAt, |
| 621 gfx::Point, /* location */ | 609 gfx::Point, /* location */ |
| 622 blink::WebMediaPlayerAction) | 610 blink::WebMediaPlayerAction) |
| 623 | 611 |
| 624 // Tells the renderer to perform the given action on the plugin located at | 612 // Tells the renderer to perform the given action on the plugin located at |
| 625 // the given point. | 613 // the given point. |
| 626 IPC_MESSAGE_ROUTED2(ViewMsg_PluginActionAt, | 614 IPC_MESSAGE_ROUTED2(ViewMsg_PluginActionAt, |
| 627 gfx::Point, /* location */ | 615 gfx::Point, /* location */ |
| (...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 997 // hop. | 985 // hop. |
| 998 IPC_MESSAGE_CONTROL1(ViewHostMsg_ForwardToWorker, | 986 IPC_MESSAGE_CONTROL1(ViewHostMsg_ForwardToWorker, |
| 999 IPC::Message /* message */) | 987 IPC::Message /* message */) |
| 1000 | 988 |
| 1001 // Tells the browser that a specific Appcache manifest in the current page | 989 // Tells the browser that a specific Appcache manifest in the current page |
| 1002 // was accessed. | 990 // was accessed. |
| 1003 IPC_MESSAGE_ROUTED2(ViewHostMsg_AppCacheAccessed, | 991 IPC_MESSAGE_ROUTED2(ViewHostMsg_AppCacheAccessed, |
| 1004 GURL /* manifest url */, | 992 GURL /* manifest url */, |
| 1005 bool /* blocked by policy */) | 993 bool /* blocked by policy */) |
| 1006 | 994 |
| 1007 // Initiates a download based on user actions like 'ALT+click'. | |
| 1008 IPC_MESSAGE_CONTROL5(ViewHostMsg_DownloadUrl, | |
| 1009 int /* render_view_id */, | |
| 1010 int /* render_frame_id */, | |
| 1011 GURL /* url */, | |
| 1012 content::Referrer /* referrer */, | |
| 1013 base::string16 /* suggested_name */) | |
| 1014 | |
| 1015 // Used to go to the session history entry at the given offset (ie, -1 will | 995 // Used to go to the session history entry at the given offset (ie, -1 will |
| 1016 // return the "back" item). | 996 // return the "back" item). |
| 1017 IPC_MESSAGE_ROUTED1(ViewHostMsg_GoToEntryAtOffset, | 997 IPC_MESSAGE_ROUTED1(ViewHostMsg_GoToEntryAtOffset, |
| 1018 int /* offset (from current) of history item to get */) | 998 int /* offset (from current) of history item to get */) |
| 1019 | 999 |
| 1020 // Sent from an inactive renderer for the browser to route to the active | 1000 // Sent from an inactive renderer for the browser to route to the active |
| 1021 // renderer, instructing it to close. | 1001 // renderer, instructing it to close. |
| 1022 IPC_MESSAGE_ROUTED0(ViewHostMsg_RouteCloseEvent) | 1002 IPC_MESSAGE_ROUTED0(ViewHostMsg_RouteCloseEvent) |
| 1023 | 1003 |
| 1024 // Notifies that the preferred size of the content changed. | 1004 // Notifies that the preferred size of the content changed. |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1066 ViewHostMsg_SelectionBounds_Params) | 1046 ViewHostMsg_SelectionBounds_Params) |
| 1067 | 1047 |
| 1068 // Asks the browser to enumerate a directory. This is equivalent to running | 1048 // Asks the browser to enumerate a directory. This is equivalent to running |
| 1069 // the file chooser in directory-enumeration mode and having the user select | 1049 // the file chooser in directory-enumeration mode and having the user select |
| 1070 // the given directory. The result is returned in a | 1050 // the given directory. The result is returned in a |
| 1071 // ViewMsg_EnumerateDirectoryResponse message. | 1051 // ViewMsg_EnumerateDirectoryResponse message. |
| 1072 IPC_MESSAGE_ROUTED2(ViewHostMsg_EnumerateDirectory, | 1052 IPC_MESSAGE_ROUTED2(ViewHostMsg_EnumerateDirectory, |
| 1073 int /* request_id */, | 1053 int /* request_id */, |
| 1074 base::FilePath /* file_path */) | 1054 base::FilePath /* file_path */) |
| 1075 | 1055 |
| 1076 // Asks the browser to save a image (for <canvas> or <img>) from a data URL. | |
| 1077 // Note: |data_url| is the contents of a data:URL, and that it's represented as | |
| 1078 // a string only to work around size limitations for GURLs in IPC messages. | |
| 1079 IPC_MESSAGE_CONTROL3(ViewHostMsg_SaveImageFromDataURL, | |
| 1080 int /* render_view_id */, | |
| 1081 int /* render_frame_id */, | |
| 1082 std::string /* data_url */) | |
| 1083 | |
| 1084 // Tells the browser to move the focus to the next (previous if reverse is | 1056 // Tells the browser to move the focus to the next (previous if reverse is |
| 1085 // true) focusable element. | 1057 // true) focusable element. |
| 1086 IPC_MESSAGE_ROUTED1(ViewHostMsg_TakeFocus, | 1058 IPC_MESSAGE_ROUTED1(ViewHostMsg_TakeFocus, |
| 1087 bool /* reverse */) | 1059 bool /* reverse */) |
| 1088 | 1060 |
| 1089 // Required for opening a date/time dialog | 1061 // Required for opening a date/time dialog |
| 1090 IPC_MESSAGE_ROUTED1(ViewHostMsg_OpenDateTimeDialog, | 1062 IPC_MESSAGE_ROUTED1(ViewHostMsg_OpenDateTimeDialog, |
| 1091 ViewHostMsg_DateTimeDialogValue_Params /* value */) | 1063 ViewHostMsg_DateTimeDialogValue_Params /* value */) |
| 1092 | 1064 |
| 1093 // Required for updating text input state. | 1065 // Required for updating text input state. |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1217 int /* y */) | 1189 int /* y */) |
| 1218 | 1190 |
| 1219 #elif defined(OS_MACOSX) | 1191 #elif defined(OS_MACOSX) |
| 1220 // Receives content of a web page as plain text. | 1192 // Receives content of a web page as plain text. |
| 1221 IPC_MESSAGE_ROUTED1(ViewMsg_GetRenderedTextCompleted, std::string) | 1193 IPC_MESSAGE_ROUTED1(ViewMsg_GetRenderedTextCompleted, std::string) |
| 1222 #endif | 1194 #endif |
| 1223 | 1195 |
| 1224 // Adding a new message? Stick to the sort order above: first platform | 1196 // Adding a new message? Stick to the sort order above: first platform |
| 1225 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform | 1197 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform |
| 1226 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. | 1198 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. |
| OLD | NEW |