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

Side by Side Diff: content/common/media/media_player_delegate_messages.h

Issue 2475473002: Implement one-shot audio focus inside MediaSession (Closed)
Patch Set: nits Created 4 years, 1 month 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 interactions between the WebMediaPlayerDelegate in the 5 // IPC messages for interactions between the WebMediaPlayerDelegate in the
6 // renderer process and MediaWebContentsObserver in the browser process. 6 // renderer process and MediaWebContentsObserver in the browser process.
7 // Multiply-included message file, hence no include guard. 7 // Multiply-included message file, hence no include guard.
8 8
9 #include <stdint.h> 9 #include <stdint.h>
10 10
11 #include "content/common/content_export.h" 11 #include "content/common/content_export.h"
12 #include "ipc/ipc_message_macros.h" 12 #include "ipc/ipc_message_macros.h"
13 #include "media/base/media_content_type.h" 13 #include "media/base/media_content_type.h"
14 14
15 #undef IPC_MESSAGE_EXPORT 15 #undef IPC_MESSAGE_EXPORT
16 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT 16 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT
17 #define IPC_MESSAGE_START MediaPlayerDelegateMsgStart 17 #define IPC_MESSAGE_START MediaPlayerDelegateMsgStart
18 18
19 IPC_ENUM_TRAITS_MAX_VALUE(media::MediaContentType, 19 IPC_ENUM_TRAITS_MAX_VALUE(media::MediaContentType,
20 media::MediaContentType::Uncontrollable) 20 media::MediaContentType::OneShot)
dcheng 2016/11/08 06:59:38 Nit: With the enum change suggested below, change
Zhiqiang Zhang (Slow) 2016/11/10 15:07:18 Done.
21 21
22 // ---------------------------------------------------------------------------- 22 // ----------------------------------------------------------------------------
23 // Messages from the browser to the renderer requesting playback state changes. 23 // Messages from the browser to the renderer requesting playback state changes.
24 // ---------------------------------------------------------------------------- 24 // ----------------------------------------------------------------------------
25 25
26 IPC_MESSAGE_ROUTED1(MediaPlayerDelegateMsg_Pause, 26 IPC_MESSAGE_ROUTED1(MediaPlayerDelegateMsg_Pause,
27 int /* delegate_id, distinguishes instances */) 27 int /* delegate_id, distinguishes instances */)
28 28
29 IPC_MESSAGE_ROUTED1(MediaPlayerDelegateMsg_Play, 29 IPC_MESSAGE_ROUTED1(MediaPlayerDelegateMsg_Play,
30 int /* delegate_id, distinguishes instances */) 30 int /* delegate_id, distinguishes instances */)
(...skipping 14 matching lines...) Expand all
45 IPC_MESSAGE_ROUTED2(MediaPlayerDelegateHostMsg_OnMediaPaused, 45 IPC_MESSAGE_ROUTED2(MediaPlayerDelegateHostMsg_OnMediaPaused,
46 int /* delegate_id, distinguishes instances */, 46 int /* delegate_id, distinguishes instances */,
47 bool /* reached end of stream */) 47 bool /* reached end of stream */)
48 48
49 IPC_MESSAGE_ROUTED5(MediaPlayerDelegateHostMsg_OnMediaPlaying, 49 IPC_MESSAGE_ROUTED5(MediaPlayerDelegateHostMsg_OnMediaPlaying,
50 int /* delegate_id, distinguishes instances */, 50 int /* delegate_id, distinguishes instances */,
51 bool /* has_video */, 51 bool /* has_video */,
52 bool /* has_audio */, 52 bool /* has_audio */,
53 bool /* is_remote */, 53 bool /* is_remote */,
54 media::MediaContentType /* media_content_type */) 54 media::MediaContentType /* media_content_type */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698