OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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 android media player. | 5 // IPC messages for android media player. |
6 // Multiply-included message file, hence no include guard. | 6 // Multiply-included message file, hence no include guard. |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/time.h" | 10 #include "base/time.h" |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
65 int /* player_id */) | 65 int /* player_id */) |
66 | 66 |
67 // The player started playing. | 67 // The player started playing. |
68 IPC_MESSAGE_ROUTED1(MediaPlayerMsg_DidMediaPlayerPlay, | 68 IPC_MESSAGE_ROUTED1(MediaPlayerMsg_DidMediaPlayerPlay, |
69 int /* player_id */) | 69 int /* player_id */) |
70 | 70 |
71 // The player was paused. | 71 // The player was paused. |
72 IPC_MESSAGE_ROUTED1(MediaPlayerMsg_DidMediaPlayerPause, | 72 IPC_MESSAGE_ROUTED1(MediaPlayerMsg_DidMediaPlayerPause, |
73 int /* player_id */) | 73 int /* player_id */) |
74 | 74 |
75 #if defined(OS_ANDROID) | |
qinmin
2012/12/17 19:34:06
no need for OS_ANDROID, all the messages here are
wonsik2
2013/02/14 14:56:38
Done.
| |
76 // The player has entered external surface rendering mode. | |
77 IPC_MESSAGE_ROUTED1(MediaPlayerMsg_DidEnterVideoView, | |
qinmin
2012/12/17 19:34:06
combine these with DidEnterFullscreen
wonsik2
2013/02/14 14:56:38
Done.
| |
78 int /* player_id */) | |
79 | |
80 // The player exited external surface rendering mode. | |
81 IPC_MESSAGE_ROUTED1(MediaPlayerMsg_DidExitVideoView, | |
qinmin
2012/12/17 19:34:06
ditto
wonsik2
2013/02/14 14:56:38
Done.
| |
82 int /* player_id */) | |
83 #endif | |
84 | |
75 // Messages for controllering the media playback in browser process ---------- | 85 // Messages for controllering the media playback in browser process ---------- |
76 | 86 |
77 // Destroy the media player object. | 87 // Destroy the media player object. |
78 IPC_MESSAGE_ROUTED1(MediaPlayerHostMsg_DestroyMediaPlayer, | 88 IPC_MESSAGE_ROUTED1(MediaPlayerHostMsg_DestroyMediaPlayer, |
79 int /* player_id */) | 89 int /* player_id */) |
80 | 90 |
81 // Destroy all the players. | 91 // Destroy all the players. |
82 IPC_MESSAGE_ROUTED0(MediaPlayerHostMsg_DestroyAllMediaPlayers) | 92 IPC_MESSAGE_ROUTED0(MediaPlayerHostMsg_DestroyAllMediaPlayers) |
83 | 93 |
84 // Initialize a media player object with the given player_id. | 94 // Initialize a media player object with the given player_id. |
(...skipping 19 matching lines...) Expand all Loading... | |
104 IPC_MESSAGE_ROUTED1(MediaPlayerHostMsg_MediaPlayerStart, | 114 IPC_MESSAGE_ROUTED1(MediaPlayerHostMsg_MediaPlayerStart, |
105 int /* player_id */) | 115 int /* player_id */) |
106 | 116 |
107 // Request the player to enter fullscreen. | 117 // Request the player to enter fullscreen. |
108 IPC_MESSAGE_ROUTED1(MediaPlayerHostMsg_EnterFullscreen, | 118 IPC_MESSAGE_ROUTED1(MediaPlayerHostMsg_EnterFullscreen, |
109 int /* player_id */) | 119 int /* player_id */) |
110 | 120 |
111 // Request the player to exit fullscreen. | 121 // Request the player to exit fullscreen. |
112 IPC_MESSAGE_ROUTED1(MediaPlayerHostMsg_ExitFullscreen, | 122 IPC_MESSAGE_ROUTED1(MediaPlayerHostMsg_ExitFullscreen, |
113 int /* player_id */) | 123 int /* player_id */) |
OLD | NEW |