| 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 467 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1225 std::vector<content::ColorSuggestion> /* suggestions */) | 1231 std::vector<content::ColorSuggestion> /* suggestions */) |
| 1226 | 1232 |
| 1227 // Asks the browser to end the color chooser. | 1233 // Asks the browser to end the color chooser. |
| 1228 IPC_MESSAGE_ROUTED1(FrameHostMsg_EndColorChooser, int /* id */) | 1234 IPC_MESSAGE_ROUTED1(FrameHostMsg_EndColorChooser, int /* id */) |
| 1229 | 1235 |
| 1230 // Change the selected color in the color chooser. | 1236 // Change the selected color in the color chooser. |
| 1231 IPC_MESSAGE_ROUTED2(FrameHostMsg_SetSelectedColorInColorChooser, | 1237 IPC_MESSAGE_ROUTED2(FrameHostMsg_SetSelectedColorInColorChooser, |
| 1232 int /* id */, | 1238 int /* id */, |
| 1233 SkColor /* color */) | 1239 SkColor /* color */) |
| 1234 | 1240 |
| 1241 IPC_MESSAGE_ROUTED1(FrameHostMsg_MediaDestroyedNotification, |
| 1242 int64_t /* player_cookie, distinguishes instances */) |
| 1243 |
| 1235 // Notifies the browser that media has started/stopped playing. | 1244 // Notifies the browser that media has started/stopped playing. |
| 1236 IPC_MESSAGE_ROUTED4(FrameHostMsg_MediaPlayingNotification, | 1245 IPC_MESSAGE_ROUTED5(FrameHostMsg_MediaPlayingNotification, |
| 1237 int64_t /* player_cookie, distinguishes instances */, | 1246 int64_t /* player_cookie, distinguishes instances */, |
| 1238 bool /* has_video */, | 1247 bool /* has_video */, |
| 1239 bool /* has_audio */, | 1248 bool /* has_audio */, |
| 1240 bool /* is_remote */) | 1249 bool /* is_remote */, |
| 1250 base::TimeDelta /* duration */) |
| 1241 | 1251 |
| 1242 IPC_MESSAGE_ROUTED1(FrameHostMsg_MediaPausedNotification, | 1252 IPC_MESSAGE_ROUTED2(FrameHostMsg_MediaPausedNotification, |
| 1243 int64_t /* player_cookie, distinguishes instances */) | 1253 int64_t /* player_cookie, distinguishes instances */, |
| 1254 bool /* reached end of stream */) |
| 1244 | 1255 |
| 1245 // Notify browser the theme color has been changed. | 1256 // Notify browser the theme color has been changed. |
| 1246 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidChangeThemeColor, | 1257 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidChangeThemeColor, |
| 1247 SkColor /* theme_color */) | 1258 SkColor /* theme_color */) |
| 1248 | 1259 |
| 1249 // Response for FrameMsg_TextSurroundingSelectionRequest, |startOffset| and | 1260 // Response for FrameMsg_TextSurroundingSelectionRequest, |startOffset| and |
| 1250 // |endOffset| are the offsets of the selection in the returned |content|. | 1261 // |endOffset| are the offsets of the selection in the returned |content|. |
| 1251 IPC_MESSAGE_ROUTED3(FrameHostMsg_TextSurroundingSelectionResponse, | 1262 IPC_MESSAGE_ROUTED3(FrameHostMsg_TextSurroundingSelectionResponse, |
| 1252 base::string16, /* content */ | 1263 base::string16, /* content */ |
| 1253 size_t, /* startOffset */ | 1264 size_t, /* startOffset */ |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1364 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup, | 1375 IPC_MESSAGE_ROUTED1(FrameHostMsg_ShowPopup, |
| 1365 FrameHostMsg_ShowPopup_Params) | 1376 FrameHostMsg_ShowPopup_Params) |
| 1366 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup) | 1377 IPC_MESSAGE_ROUTED0(FrameHostMsg_HidePopup) |
| 1367 | 1378 |
| 1368 #endif | 1379 #endif |
| 1369 | 1380 |
| 1370 // Adding a new message? Stick to the sort order above: first platform | 1381 // Adding a new message? Stick to the sort order above: first platform |
| 1371 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then | 1382 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then |
| 1372 // platform independent FrameHostMsg, then ifdefs for platform specific | 1383 // platform independent FrameHostMsg, then ifdefs for platform specific |
| 1373 // FrameHostMsg. | 1384 // FrameHostMsg. |
| OLD | NEW |