| 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 #include "content/renderer/media/webmediaplayer_proxy_impl_android.h" | 5 #include "content/renderer/media/webmediaplayer_proxy_impl_android.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/message_loop.h" | 8 #include "base/message_loop.h" |
| 9 #include "content/common/media/media_player_messages.h" | 9 #include "content/common/media/media_player_messages.h" |
| 10 #include "webkit/media/android/webmediaplayer_impl_android.h" | 10 #include "webkit/media/android/webmediaplayer_impl_android.h" |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 } | 171 } |
| 172 | 172 |
| 173 void WebMediaPlayerProxyImplAndroid::EnterFullscreen(int player_id) { | 173 void WebMediaPlayerProxyImplAndroid::EnterFullscreen(int player_id) { |
| 174 Send(new MediaPlayerHostMsg_EnterFullscreen(routing_id(), player_id)); | 174 Send(new MediaPlayerHostMsg_EnterFullscreen(routing_id(), player_id)); |
| 175 } | 175 } |
| 176 | 176 |
| 177 void WebMediaPlayerProxyImplAndroid::ExitFullscreen(int player_id) { | 177 void WebMediaPlayerProxyImplAndroid::ExitFullscreen(int player_id) { |
| 178 Send(new MediaPlayerHostMsg_ExitFullscreen(routing_id(), player_id)); | 178 Send(new MediaPlayerHostMsg_ExitFullscreen(routing_id(), player_id)); |
| 179 } | 179 } |
| 180 | 180 |
| 181 void WebMediaPlayerProxyImplAndroid::RequestExternalSurface(int player_id) { |
| 182 Send(new MediaPlayerHostMsg_RequestExternalSurface(routing_id(), player_id)); |
| 183 } |
| 184 |
| 181 webkit_media::WebMediaPlayerImplAndroid* | 185 webkit_media::WebMediaPlayerImplAndroid* |
| 182 WebMediaPlayerProxyImplAndroid::GetWebMediaPlayer(int player_id) { | 186 WebMediaPlayerProxyImplAndroid::GetWebMediaPlayer(int player_id) { |
| 183 return static_cast<webkit_media::WebMediaPlayerImplAndroid*>( | 187 return static_cast<webkit_media::WebMediaPlayerImplAndroid*>( |
| 184 manager_->GetMediaPlayer(player_id)); | 188 manager_->GetMediaPlayer(player_id)); |
| 185 } | 189 } |
| 186 | 190 |
| 187 } // namespace content | 191 } // namespace content |
| OLD | NEW |