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 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 } | 174 } |
175 | 175 |
176 void WebMediaPlayerProxyImplAndroid::ExitFullscreen(int player_id) { | 176 void WebMediaPlayerProxyImplAndroid::ExitFullscreen(int player_id) { |
177 Send(new MediaPlayerHostMsg_ExitFullscreen(routing_id(), player_id)); | 177 Send(new MediaPlayerHostMsg_ExitFullscreen(routing_id(), player_id)); |
178 } | 178 } |
179 | 179 |
180 void WebMediaPlayerProxyImplAndroid::RequestExternalSurface(int player_id) { | 180 void WebMediaPlayerProxyImplAndroid::RequestExternalSurface(int player_id) { |
181 Send(new MediaPlayerHostMsg_RequestExternalSurface(routing_id(), player_id)); | 181 Send(new MediaPlayerHostMsg_RequestExternalSurface(routing_id(), player_id)); |
182 } | 182 } |
183 | 183 |
| 184 #if defined(GOOGLE_TV) |
| 185 void WebMediaPlayerProxyImplAndroid::DidCommitCompositorFrame() { |
| 186 std::map<int, gfx::RectF> geometry_change; |
| 187 manager_->GetGeometryChanges(&geometry_change); |
| 188 for (std::map<int, gfx::RectF>::iterator it = geometry_change.begin(); |
| 189 it != geometry_change.end(); |
| 190 ++it) { |
| 191 Send(new MediaPlayerHostMsg_NotifyGeometryChange(routing_id(), |
| 192 it->first, |
| 193 it->second)); |
| 194 } |
| 195 } |
| 196 #endif |
| 197 |
184 webkit_media::WebMediaPlayerImplAndroid* | 198 webkit_media::WebMediaPlayerImplAndroid* |
185 WebMediaPlayerProxyImplAndroid::GetWebMediaPlayer(int player_id) { | 199 WebMediaPlayerProxyImplAndroid::GetWebMediaPlayer(int player_id) { |
186 return static_cast<webkit_media::WebMediaPlayerImplAndroid*>( | 200 return static_cast<webkit_media::WebMediaPlayerImplAndroid*>( |
187 manager_->GetMediaPlayer(player_id)); | 201 manager_->GetMediaPlayer(player_id)); |
188 } | 202 } |
189 | 203 |
190 } // namespace content | 204 } // namespace content |
OLD | NEW |