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

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

Issue 10979047: Upstream fullscreen video implementation for android (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merging latest changes Created 8 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « content/common/content_message_generator.h ('k') | content/common/view_messages.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 // IPC messages for android media player.
6 // Multiply-included message file, hence no include guard.
7
8 #include <string>
9
10 #include "base/time.h"
11 #include "content/common/content_export.h"
12 #include "ipc/ipc_message_macros.h"
13
14 #undef IPC_MESSAGE_EXPORT
15 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT
16 #define IPC_MESSAGE_START MediaPlayerMsgStart
17
18 // Messages for notifying the render process of media playback status -------
19
20 // Media buffering has updated.
21 IPC_MESSAGE_ROUTED2(MediaPlayerMsg_MediaBufferingUpdate,
22 int /* player_id */,
23 int /* percent */)
24
25 // A media playback error has occured.
26 IPC_MESSAGE_ROUTED2(MediaPlayerMsg_MediaError,
27 int /* player_id */,
28 int /* error */)
29
30 // Playback is completed.
31 IPC_MESSAGE_ROUTED1(MediaPlayerMsg_MediaPlaybackCompleted,
32 int /* player_id */)
33
34 // Player is prepared.
35 IPC_MESSAGE_ROUTED2(MediaPlayerMsg_MediaPrepared,
36 int /* player_id */,
37 base::TimeDelta /* duration */)
38
39 // Media seek is completed.
40 IPC_MESSAGE_ROUTED2(MediaPlayerMsg_MediaSeekCompleted,
41 int /* player_id */,
42 base::TimeDelta /* current_time */)
43
44 // Video size has changed.
45 IPC_MESSAGE_ROUTED3(MediaPlayerMsg_MediaVideoSizeChanged,
46 int /* player_id */,
47 int /* width */,
48 int /* height */)
49
50 // The current play time has updated.
51 IPC_MESSAGE_ROUTED2(MediaPlayerMsg_MediaTimeUpdate,
52 int /* player_id */,
53 base::TimeDelta /* current_time */)
54
55 // The player has been released.
56 IPC_MESSAGE_ROUTED1(MediaPlayerMsg_MediaPlayerReleased,
57 int /* player_id */)
58
59 // The player has entered fullscreen mode.
60 IPC_MESSAGE_ROUTED1(MediaPlayerMsg_DidEnterFullscreen,
61 int /* player_id */)
62
63 // The player exited fullscreen.
64 IPC_MESSAGE_ROUTED1(MediaPlayerMsg_DidExitFullscreen,
65 int /* player_id */)
66
67 // The player started playing.
68 IPC_MESSAGE_ROUTED1(MediaPlayerMsg_DidMediaPlayerPlay,
69 int /* player_id */)
70
71 // The player was paused.
72 IPC_MESSAGE_ROUTED1(MediaPlayerMsg_DidMediaPlayerPause,
73 int /* player_id */)
74
75 // Messages for controllering the media playback in browser process ----------
76
77 // Destroy the media player object.
78 IPC_MESSAGE_ROUTED1(MediaPlayerHostMsg_DestroyMediaPlayer,
79 int /* player_id */)
80
81 // Destroy all the players.
82 IPC_MESSAGE_ROUTED0(MediaPlayerHostMsg_DestroyAllMediaPlayers)
83
84 // Initialize a media player object with the given player_id.
85 IPC_MESSAGE_ROUTED3(MediaPlayerHostMsg_MediaPlayerInitialize,
86 int /* player_id */,
87 std::string /* url */,
88 std::string /* first_party_for_cookies */)
89
90 // Pause the player.
91 IPC_MESSAGE_ROUTED1(MediaPlayerHostMsg_MediaPlayerPause,
92 int /* player_id */)
93
94 // Release player resources, but keep the object for future usage.
95 IPC_MESSAGE_ROUTED1(MediaPlayerHostMsg_MediaPlayerRelease,
96 int /* player_id */)
97
98 // Perform a seek.
99 IPC_MESSAGE_ROUTED2(MediaPlayerHostMsg_MediaPlayerSeek,
100 int /* player_id */,
101 base::TimeDelta /* time */)
102
103 // Start the player for playback.
104 IPC_MESSAGE_ROUTED1(MediaPlayerHostMsg_MediaPlayerStart,
105 int /* player_id */)
106
107 // Request the player to enter fullscreen.
108 IPC_MESSAGE_ROUTED1(MediaPlayerHostMsg_EnterFullscreen,
109 int /* player_id */)
110
111 // Request the player to exit fullscreen.
112 IPC_MESSAGE_ROUTED1(MediaPlayerHostMsg_ExitFullscreen,
113 int /* player_id */)
OLDNEW
« no previous file with comments | « content/common/content_message_generator.h ('k') | content/common/view_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698