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