OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 interacting with frames. | 5 // IPC messages for interacting with frames. |
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 926 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
937 | 937 |
938 // This message notifies the frame that it is no longer the active frame in the | 938 // This message notifies the frame that it is no longer the active frame in the |
939 // current find session, and so it should clear its active find match (and no | 939 // current find session, and so it should clear its active find match (and no |
940 // longer highlight it with special coloring). | 940 // longer highlight it with special coloring). |
941 IPC_MESSAGE_ROUTED0(FrameMsg_ClearActiveFindMatch) | 941 IPC_MESSAGE_ROUTED0(FrameMsg_ClearActiveFindMatch) |
942 | 942 |
943 // This message notifies the frame that the user has closed the find-in-page | 943 // This message notifies the frame that the user has closed the find-in-page |
944 // window (and what action to take regarding the selection). | 944 // window (and what action to take regarding the selection). |
945 IPC_MESSAGE_ROUTED1(FrameMsg_StopFinding, content::StopFindAction /* action */) | 945 IPC_MESSAGE_ROUTED1(FrameMsg_StopFinding, content::StopFindAction /* action */) |
946 | 946 |
| 947 // Copies the image at location x, y to the clipboard (if there indeed is an |
| 948 // image at that location). |
| 949 IPC_MESSAGE_ROUTED2(FrameMsg_CopyImageAt, |
| 950 int /* x */, |
| 951 int /* y */) |
| 952 |
| 953 // Saves the image at location x, y to the disk (if there indeed is an |
| 954 // image at that location). |
| 955 IPC_MESSAGE_ROUTED2(FrameMsg_SaveImageAt, |
| 956 int /* x */, |
| 957 int /* y */) |
| 958 |
947 #if defined(ENABLE_PLUGINS) | 959 #if defined(ENABLE_PLUGINS) |
948 // Notifies the renderer of updates to the Plugin Power Saver origin whitelist. | 960 // Notifies the renderer of updates to the Plugin Power Saver origin whitelist. |
949 IPC_MESSAGE_ROUTED1(FrameMsg_UpdatePluginContentOriginWhitelist, | 961 IPC_MESSAGE_ROUTED1(FrameMsg_UpdatePluginContentOriginWhitelist, |
950 std::set<url::Origin> /* origin_whitelist */) | 962 std::set<url::Origin> /* origin_whitelist */) |
951 #endif // defined(ENABLE_PLUGINS) | 963 #endif // defined(ENABLE_PLUGINS) |
952 | 964 |
953 // Used to instruct the RenderFrame to go into "view source" mode. This should | 965 // Used to instruct the RenderFrame to go into "view source" mode. This should |
954 // only be sent to the main frame. | 966 // only be sent to the main frame. |
955 IPC_MESSAGE_ROUTED0(FrameMsg_EnableViewSourceMode) | 967 IPC_MESSAGE_ROUTED0(FrameMsg_EnableViewSourceMode) |
956 | 968 |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1061 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidChangeLoadProgress, | 1073 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidChangeLoadProgress, |
1062 double /* load_progress */) | 1074 double /* load_progress */) |
1063 | 1075 |
1064 // Requests that the given URL be opened in the specified manner. | 1076 // Requests that the given URL be opened in the specified manner. |
1065 IPC_MESSAGE_ROUTED1(FrameHostMsg_OpenURL, FrameHostMsg_OpenURL_Params) | 1077 IPC_MESSAGE_ROUTED1(FrameHostMsg_OpenURL, FrameHostMsg_OpenURL_Params) |
1066 | 1078 |
1067 // Notifies the browser that a frame finished loading. | 1079 // Notifies the browser that a frame finished loading. |
1068 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidFinishLoad, | 1080 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidFinishLoad, |
1069 GURL /* validated_url */) | 1081 GURL /* validated_url */) |
1070 | 1082 |
| 1083 // Initiates a download based on user actions like 'ALT+click'. |
| 1084 IPC_MESSAGE_CONTROL5(FrameHostMsg_DownloadUrl, |
| 1085 int /* render_view_id */, |
| 1086 int /* render_frame_id */, |
| 1087 GURL /* url */, |
| 1088 content::Referrer /* referrer */, |
| 1089 base::string16 /* suggested_name */) |
| 1090 |
| 1091 // Asks the browser to save a image (for <canvas> or <img>) from a data URL. |
| 1092 // Note: |data_url| is the contents of a data:URL, and that it's represented as |
| 1093 // a string only to work around size limitations for GURLs in IPC messages. |
| 1094 IPC_MESSAGE_CONTROL3(FrameHostMsg_SaveImageFromDataURL, |
| 1095 int /* render_view_id */, |
| 1096 int /* render_frame_id */, |
| 1097 std::string /* data_url */) |
| 1098 |
1071 // Sent when after the onload handler has been invoked for the document | 1099 // Sent when after the onload handler has been invoked for the document |
1072 // in this frame. Sent for top-level frames. |report_type| and |ui_timestamp| | 1100 // in this frame. Sent for top-level frames. |report_type| and |ui_timestamp| |
1073 // are used to report navigation metrics starting on the ui input event that | 1101 // are used to report navigation metrics starting on the ui input event that |
1074 // triggered the navigation timestamp. | 1102 // triggered the navigation timestamp. |
1075 IPC_MESSAGE_ROUTED2(FrameHostMsg_DocumentOnLoadCompleted, | 1103 IPC_MESSAGE_ROUTED2(FrameHostMsg_DocumentOnLoadCompleted, |
1076 FrameMsg_UILoadMetricsReportType::Value /* report_type */, | 1104 FrameMsg_UILoadMetricsReportType::Value /* report_type */, |
1077 base::TimeTicks /* ui_timestamp */) | 1105 base::TimeTicks /* ui_timestamp */) |
1078 | 1106 |
1079 // Notifies that the initial empty document of a view has been accessed. | 1107 // Notifies that the initial empty document of a view has been accessed. |
1080 // After this, it is no longer safe to show a pending navigation's URL without | 1108 // After this, it is no longer safe to show a pending navigation's URL without |
(...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1531 // nearest find result in the sending frame. | 1559 // nearest find result in the sending frame. |
1532 IPC_MESSAGE_ROUTED2(FrameHostMsg_GetNearestFindResult_Reply, | 1560 IPC_MESSAGE_ROUTED2(FrameHostMsg_GetNearestFindResult_Reply, |
1533 int /* nfr_request_id */, | 1561 int /* nfr_request_id */, |
1534 float /* distance */) | 1562 float /* distance */) |
1535 #endif | 1563 #endif |
1536 | 1564 |
1537 // Adding a new message? Stick to the sort order above: first platform | 1565 // Adding a new message? Stick to the sort order above: first platform |
1538 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then | 1566 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then |
1539 // platform independent FrameHostMsg, then ifdefs for platform specific | 1567 // platform independent FrameHostMsg, then ifdefs for platform specific |
1540 // FrameHostMsg. | 1568 // FrameHostMsg. |
OLD | NEW |