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 908 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
919 | 919 |
920 // This message notifies the frame that it is no longer the active frame in the | 920 // This message notifies the frame that it is no longer the active frame in the |
921 // current find session, and so it should clear its active find match (and no | 921 // current find session, and so it should clear its active find match (and no |
922 // longer highlight it with special coloring). | 922 // longer highlight it with special coloring). |
923 IPC_MESSAGE_ROUTED0(FrameMsg_ClearActiveFindMatch) | 923 IPC_MESSAGE_ROUTED0(FrameMsg_ClearActiveFindMatch) |
924 | 924 |
925 // This message notifies the frame that the user has closed the find-in-page | 925 // This message notifies the frame that the user has closed the find-in-page |
926 // window (and what action to take regarding the selection). | 926 // window (and what action to take regarding the selection). |
927 IPC_MESSAGE_ROUTED1(FrameMsg_StopFinding, content::StopFindAction /* action */) | 927 IPC_MESSAGE_ROUTED1(FrameMsg_StopFinding, content::StopFindAction /* action */) |
928 | 928 |
| 929 // Copies the image at location x, y to the clipboard (if there indeed is an |
| 930 // image at that location). |
| 931 IPC_MESSAGE_ROUTED2(FrameMsg_CopyImageAt, |
| 932 int /* x */, |
| 933 int /* y */) |
| 934 |
| 935 // Saves the image at location x, y to the disk (if there indeed is an |
| 936 // image at that location). |
| 937 IPC_MESSAGE_ROUTED2(FrameMsg_SaveImageAt, |
| 938 int /* x */, |
| 939 int /* y */) |
| 940 |
929 #if defined(ENABLE_PLUGINS) | 941 #if defined(ENABLE_PLUGINS) |
930 // Notifies the renderer of updates to the Plugin Power Saver origin whitelist. | 942 // Notifies the renderer of updates to the Plugin Power Saver origin whitelist. |
931 IPC_MESSAGE_ROUTED1(FrameMsg_UpdatePluginContentOriginWhitelist, | 943 IPC_MESSAGE_ROUTED1(FrameMsg_UpdatePluginContentOriginWhitelist, |
932 std::set<url::Origin> /* origin_whitelist */) | 944 std::set<url::Origin> /* origin_whitelist */) |
933 #endif // defined(ENABLE_PLUGINS) | 945 #endif // defined(ENABLE_PLUGINS) |
934 | 946 |
935 // Used to instruct the RenderFrame to go into "view source" mode. This should | 947 // Used to instruct the RenderFrame to go into "view source" mode. This should |
936 // only be sent to the main frame. | 948 // only be sent to the main frame. |
937 IPC_MESSAGE_ROUTED0(FrameMsg_EnableViewSourceMode) | 949 IPC_MESSAGE_ROUTED0(FrameMsg_EnableViewSourceMode) |
938 | 950 |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1040 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidChangeLoadProgress, | 1052 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidChangeLoadProgress, |
1041 double /* load_progress */) | 1053 double /* load_progress */) |
1042 | 1054 |
1043 // Requests that the given URL be opened in the specified manner. | 1055 // Requests that the given URL be opened in the specified manner. |
1044 IPC_MESSAGE_ROUTED1(FrameHostMsg_OpenURL, FrameHostMsg_OpenURL_Params) | 1056 IPC_MESSAGE_ROUTED1(FrameHostMsg_OpenURL, FrameHostMsg_OpenURL_Params) |
1045 | 1057 |
1046 // Notifies the browser that a frame finished loading. | 1058 // Notifies the browser that a frame finished loading. |
1047 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidFinishLoad, | 1059 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidFinishLoad, |
1048 GURL /* validated_url */) | 1060 GURL /* validated_url */) |
1049 | 1061 |
| 1062 // Initiates a download based on user actions like 'ALT+click'. |
| 1063 IPC_MESSAGE_CONTROL5(FrameHostMsg_DownloadUrl, |
| 1064 int /* render_view_id */, |
| 1065 int /* render_frame_id */, |
| 1066 GURL /* url */, |
| 1067 content::Referrer /* referrer */, |
| 1068 base::string16 /* suggested_name */) |
| 1069 |
| 1070 // Asks the browser to save a image (for <canvas> or <img>) from a data URL. |
| 1071 // Note: |data_url| is the contents of a data:URL, and that it's represented as |
| 1072 // a string only to work around size limitations for GURLs in IPC messages. |
| 1073 IPC_MESSAGE_CONTROL3(FrameHostMsg_SaveImageFromDataURL, |
| 1074 int /* render_view_id */, |
| 1075 int /* render_frame_id */, |
| 1076 std::string /* data_url */) |
| 1077 |
1050 // Sent when after the onload handler has been invoked for the document | 1078 // Sent when after the onload handler has been invoked for the document |
1051 // in this frame. Sent for top-level frames. |report_type| and |ui_timestamp| | 1079 // in this frame. Sent for top-level frames. |report_type| and |ui_timestamp| |
1052 // are used to report navigation metrics starting on the ui input event that | 1080 // are used to report navigation metrics starting on the ui input event that |
1053 // triggered the navigation timestamp. | 1081 // triggered the navigation timestamp. |
1054 IPC_MESSAGE_ROUTED2(FrameHostMsg_DocumentOnLoadCompleted, | 1082 IPC_MESSAGE_ROUTED2(FrameHostMsg_DocumentOnLoadCompleted, |
1055 FrameMsg_UILoadMetricsReportType::Value /* report_type */, | 1083 FrameMsg_UILoadMetricsReportType::Value /* report_type */, |
1056 base::TimeTicks /* ui_timestamp */) | 1084 base::TimeTicks /* ui_timestamp */) |
1057 | 1085 |
1058 // Notifies that the initial empty document of a view has been accessed. | 1086 // Notifies that the initial empty document of a view has been accessed. |
1059 // After this, it is no longer safe to show a pending navigation's URL without | 1087 // After this, it is no longer safe to show a pending navigation's URL without |
(...skipping 446 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1506 // nearest find result in the sending frame. | 1534 // nearest find result in the sending frame. |
1507 IPC_MESSAGE_ROUTED2(FrameHostMsg_GetNearestFindResult_Reply, | 1535 IPC_MESSAGE_ROUTED2(FrameHostMsg_GetNearestFindResult_Reply, |
1508 int /* nfr_request_id */, | 1536 int /* nfr_request_id */, |
1509 float /* distance */) | 1537 float /* distance */) |
1510 #endif | 1538 #endif |
1511 | 1539 |
1512 // Adding a new message? Stick to the sort order above: first platform | 1540 // Adding a new message? Stick to the sort order above: first platform |
1513 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then | 1541 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then |
1514 // platform independent FrameHostMsg, then ifdefs for platform specific | 1542 // platform independent FrameHostMsg, then ifdefs for platform specific |
1515 // FrameHostMsg. | 1543 // FrameHostMsg. |
OLD | NEW |