| 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 727 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 738 IPC_MESSAGE_ROUTED0(FrameMsg_SetFocusedFrame) | 738 IPC_MESSAGE_ROUTED0(FrameMsg_SetFocusedFrame) |
| 739 | 739 |
| 740 // Send to the RenderFrame to set text tracks state and style settings. | 740 // Send to the RenderFrame to set text tracks state and style settings. |
| 741 // Sent for top-level frames. | 741 // Sent for top-level frames. |
| 742 IPC_MESSAGE_ROUTED1(FrameMsg_SetTextTrackSettings, | 742 IPC_MESSAGE_ROUTED1(FrameMsg_SetTextTrackSettings, |
| 743 FrameMsg_TextTrackSettings_Params /* params */) | 743 FrameMsg_TextTrackSettings_Params /* params */) |
| 744 | 744 |
| 745 // Posts a message from a frame in another process to the current renderer. | 745 // Posts a message from a frame in another process to the current renderer. |
| 746 IPC_MESSAGE_ROUTED1(FrameMsg_PostMessageEvent, FrameMsg_PostMessage_Params) | 746 IPC_MESSAGE_ROUTED1(FrameMsg_PostMessageEvent, FrameMsg_PostMessage_Params) |
| 747 | 747 |
| 748 // Messages for pausing and initiating playback from the browser side. |
| 749 IPC_MESSAGE_ROUTED1(FrameMsg_MediaDelegatePause, |
| 750 int64_t /* player_cookie, distinguishes instances */) |
| 751 IPC_MESSAGE_ROUTED1(FrameMsg_MediaDelegatePlay, |
| 752 int64_t /* player_cookie, distinguishes instances */) |
| 753 |
| 748 #if defined(OS_ANDROID) | 754 #if defined(OS_ANDROID) |
| 749 | 755 |
| 750 // External popup menus. | 756 // External popup menus. |
| 751 IPC_MESSAGE_ROUTED2(FrameMsg_SelectPopupMenuItems, | 757 IPC_MESSAGE_ROUTED2(FrameMsg_SelectPopupMenuItems, |
| 752 bool /* user canceled the popup */, | 758 bool /* user canceled the popup */, |
| 753 std::vector<int> /* selected indices */) | 759 std::vector<int> /* selected indices */) |
| 754 | 760 |
| 755 #elif defined(OS_MACOSX) | 761 #elif defined(OS_MACOSX) |
| 756 | 762 |
| 757 // External popup menus. | 763 // External popup menus. |
| (...skipping 470 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1228 std::vector<content::ColorSuggestion> /* suggestions */) | 1234 std::vector<content::ColorSuggestion> /* suggestions */) |
| 1229 | 1235 |
| 1230 // Asks the browser to end the color chooser. | 1236 // Asks the browser to end the color chooser. |
| 1231 IPC_MESSAGE_ROUTED1(FrameHostMsg_EndColorChooser, int /* id */) | 1237 IPC_MESSAGE_ROUTED1(FrameHostMsg_EndColorChooser, int /* id */) |
| 1232 | 1238 |
| 1233 // Change the selected color in the color chooser. | 1239 // Change the selected color in the color chooser. |
| 1234 IPC_MESSAGE_ROUTED2(FrameHostMsg_SetSelectedColorInColorChooser, | 1240 IPC_MESSAGE_ROUTED2(FrameHostMsg_SetSelectedColorInColorChooser, |
| 1235 int /* id */, | 1241 int /* id */, |
| 1236 SkColor /* color */) | 1242 SkColor /* color */) |
| 1237 | 1243 |
| 1244 IPC_MESSAGE_ROUTED1(FrameHostMsg_MediaDestroyedNotification, |
| 1245 int64_t /* player_cookie, distinguishes instances */) |
| 1246 |
| 1238 // Notifies the browser that media has started/stopped playing. | 1247 // Notifies the browser that media has started/stopped playing. |
| 1239 IPC_MESSAGE_ROUTED4(FrameHostMsg_MediaPlayingNotification, | 1248 IPC_MESSAGE_ROUTED5(FrameHostMsg_MediaPlayingNotification, |
| 1240 int64_t /* player_cookie, distinguishes instances */, | 1249 int64_t /* player_cookie, distinguishes instances */, |
| 1241 bool /* has_video */, | 1250 bool /* has_video */, |
| 1242 bool /* has_audio */, | 1251 bool /* has_audio */, |
| 1243 bool /* is_remote */) | 1252 bool /* is_remote */, |
| 1253 base::TimeDelta /* duration */) |
| 1244 | 1254 |
| 1245 IPC_MESSAGE_ROUTED1(FrameHostMsg_MediaPausedNotification, | 1255 IPC_MESSAGE_ROUTED2(FrameHostMsg_MediaPausedNotification, |
| 1246 int64_t /* player_cookie, distinguishes instances */) | 1256 int64_t /* player_cookie, distinguishes instances */, |
| 1257 bool /* reached end of stream */) |
| 1247 | 1258 |
| 1248 // Notify browser the theme color has been changed. | 1259 // Notify browser the theme color has been changed. |
| 1249 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidChangeThemeColor, | 1260 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidChangeThemeColor, |
| 1250 SkColor /* theme_color */) | 1261 SkColor /* theme_color */) |
| 1251 | 1262 |
| 1252 // Response for FrameMsg_TextSurroundingSelectionRequest, |startOffset| and | 1263 // Response for FrameMsg_TextSurroundingSelectionRequest, |startOffset| and |
| 1253 // |endOffset| are the offsets of the selection in the returned |content|. | 1264 // |endOffset| are the offsets of the selection in the returned |content|. |
| 1254 IPC_MESSAGE_ROUTED3(FrameHostMsg_TextSurroundingSelectionResponse, | 1265 IPC_MESSAGE_ROUTED3(FrameHostMsg_TextSurroundingSelectionResponse, |
| 1255 base::string16, /* content */ | 1266 base::string16, /* content */ |
| 1256 size_t, /* startOffset */ | 1267 size_t, /* startOffset */ |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1367 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup, | 1378 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup, |
| 1368 FrameHostMsg_ShowPopup_Params) | 1379 FrameHostMsg_ShowPopup_Params) |
| 1369 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup) | 1380 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup) |
| 1370 | 1381 |
| 1371 #endif | 1382 #endif |
| 1372 | 1383 |
| 1373 // Adding a new message? Stick to the sort order above: first platform | 1384 // Adding a new message? Stick to the sort order above: first platform |
| 1374 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then | 1385 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then |
| 1375 // platform independent FrameHostMsg, then ifdefs for platform specific | 1386 // platform independent FrameHostMsg, then ifdefs for platform specific |
| 1376 // FrameHostMsg. | 1387 // FrameHostMsg. |
| OLD | NEW |