Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(73)

Side by Side Diff: content/common/frame_messages.h

Issue 1570043002: Implement MediaSession on top of the WebMediaPlayerDelegate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@media_session
Patch Set: Rebase yet again. Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 737 matching lines...) Expand 10 before | Expand all | Expand 10 after
748 IPC_MESSAGE_ROUTED0(FrameMsg_SetFocusedFrame) 748 IPC_MESSAGE_ROUTED0(FrameMsg_SetFocusedFrame)
749 749
750 // Send to the RenderFrame to set text tracks state and style settings. 750 // Send to the RenderFrame to set text tracks state and style settings.
751 // Sent for top-level frames. 751 // Sent for top-level frames.
752 IPC_MESSAGE_ROUTED1(FrameMsg_SetTextTrackSettings, 752 IPC_MESSAGE_ROUTED1(FrameMsg_SetTextTrackSettings,
753 FrameMsg_TextTrackSettings_Params /* params */) 753 FrameMsg_TextTrackSettings_Params /* params */)
754 754
755 // Posts a message from a frame in another process to the current renderer. 755 // Posts a message from a frame in another process to the current renderer.
756 IPC_MESSAGE_ROUTED1(FrameMsg_PostMessageEvent, FrameMsg_PostMessage_Params) 756 IPC_MESSAGE_ROUTED1(FrameMsg_PostMessageEvent, FrameMsg_PostMessage_Params)
757 757
758 // Messages for pausing and initiating playback from the browser side.
759 IPC_MESSAGE_ROUTED1(FrameMsg_MediaDelegatePause,
760 int64_t /* player_cookie, distinguishes instances */)
761 IPC_MESSAGE_ROUTED1(FrameMsg_MediaDelegatePlay,
762 int64_t /* player_cookie, distinguishes instances */)
763 IPC_MESSAGE_ROUTED2(FrameMsg_MediaDelegateVolumeMultiplierUpdate,
764 int64_t /* player_cookie, distinguishes instances */,
765 double /* multiplier */)
766
758 #if defined(OS_ANDROID) 767 #if defined(OS_ANDROID)
759 // Sent when the browser wants the bounding boxes of the current find matches. 768 // Sent when the browser wants the bounding boxes of the current find matches.
760 // 769 //
761 // If match rects are already cached on the browser side, |current_version| 770 // If match rects are already cached on the browser side, |current_version|
762 // should be the version number from the FrameHostMsg_FindMatchRects_Reply 771 // should be the version number from the FrameHostMsg_FindMatchRects_Reply
763 // they came in, so the renderer can tell if it needs to send updated rects. 772 // they came in, so the renderer can tell if it needs to send updated rects.
764 // Otherwise just pass -1 to always receive the list of rects. 773 // Otherwise just pass -1 to always receive the list of rects.
765 // 774 //
766 // There must be an active search string (it is probably most useful to call 775 // There must be an active search string (it is probably most useful to call
767 // this immediately after a FrameHostMsg_Find_Reply message arrives with 776 // this immediately after a FrameHostMsg_Find_Reply message arrives with
(...skipping 491 matching lines...) Expand 10 before | Expand all | Expand 10 after
1259 std::vector<content::ColorSuggestion> /* suggestions */) 1268 std::vector<content::ColorSuggestion> /* suggestions */)
1260 1269
1261 // Asks the browser to end the color chooser. 1270 // Asks the browser to end the color chooser.
1262 IPC_MESSAGE_ROUTED1(FrameHostMsg_EndColorChooser, int /* id */) 1271 IPC_MESSAGE_ROUTED1(FrameHostMsg_EndColorChooser, int /* id */)
1263 1272
1264 // Change the selected color in the color chooser. 1273 // Change the selected color in the color chooser.
1265 IPC_MESSAGE_ROUTED2(FrameHostMsg_SetSelectedColorInColorChooser, 1274 IPC_MESSAGE_ROUTED2(FrameHostMsg_SetSelectedColorInColorChooser,
1266 int /* id */, 1275 int /* id */,
1267 SkColor /* color */) 1276 SkColor /* color */)
1268 1277
1278 IPC_MESSAGE_ROUTED1(FrameHostMsg_MediaDestroyedNotification,
1279 int64_t /* player_cookie, distinguishes instances */)
1280
1269 // Notifies the browser that media has started/stopped playing. 1281 // Notifies the browser that media has started/stopped playing.
1270 IPC_MESSAGE_ROUTED4(FrameHostMsg_MediaPlayingNotification, 1282 IPC_MESSAGE_ROUTED5(FrameHostMsg_MediaPlayingNotification,
1271 int64_t /* player_cookie, distinguishes instances */, 1283 int64_t /* player_cookie, distinguishes instances */,
1272 bool /* has_video */, 1284 bool /* has_video */,
1273 bool /* has_audio */, 1285 bool /* has_audio */,
1274 bool /* is_remote */) 1286 bool /* is_remote */,
1287 base::TimeDelta /* duration */)
1275 1288
1276 IPC_MESSAGE_ROUTED1(FrameHostMsg_MediaPausedNotification, 1289 IPC_MESSAGE_ROUTED2(FrameHostMsg_MediaPausedNotification,
1277 int64_t /* player_cookie, distinguishes instances */) 1290 int64_t /* player_cookie, distinguishes instances */,
1291 bool /* reached end of stream */)
1278 1292
1279 // Notify browser the theme color has been changed. 1293 // Notify browser the theme color has been changed.
1280 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidChangeThemeColor, 1294 IPC_MESSAGE_ROUTED1(FrameHostMsg_DidChangeThemeColor,
1281 SkColor /* theme_color */) 1295 SkColor /* theme_color */)
1282 1296
1283 // Response for FrameMsg_TextSurroundingSelectionRequest, |startOffset| and 1297 // Response for FrameMsg_TextSurroundingSelectionRequest, |startOffset| and
1284 // |endOffset| are the offsets of the selection in the returned |content|. 1298 // |endOffset| are the offsets of the selection in the returned |content|.
1285 IPC_MESSAGE_ROUTED3(FrameHostMsg_TextSurroundingSelectionResponse, 1299 IPC_MESSAGE_ROUTED3(FrameHostMsg_TextSurroundingSelectionResponse,
1286 base::string16, /* content */ 1300 base::string16, /* content */
1287 size_t, /* startOffset */ 1301 size_t, /* startOffset */
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
1433 IPC_MESSAGE_ROUTED3(FrameHostMsg_FindMatchRects_Reply, 1447 IPC_MESSAGE_ROUTED3(FrameHostMsg_FindMatchRects_Reply,
1434 int /* version */, 1448 int /* version */,
1435 std::vector<gfx::RectF> /* rects */, 1449 std::vector<gfx::RectF> /* rects */,
1436 gfx::RectF /* active_rect */) 1450 gfx::RectF /* active_rect */)
1437 #endif 1451 #endif
1438 1452
1439 // Adding a new message? Stick to the sort order above: first platform 1453 // Adding a new message? Stick to the sort order above: first platform
1440 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then 1454 // independent FrameMsg, then ifdefs for platform specific FrameMsg, then
1441 // platform independent FrameHostMsg, then ifdefs for platform specific 1455 // platform independent FrameHostMsg, then ifdefs for platform specific
1442 // FrameHostMsg. 1456 // FrameHostMsg.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698