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 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
178 } | 178 } |
179 | 179 |
180 void WebMediaPlayerProxyImplAndroid::ExitFullscreen(int player_id) { | 180 void WebMediaPlayerProxyImplAndroid::ExitFullscreen(int player_id) { |
181 Send(new MediaPlayerHostMsg_ExitFullscreen(routing_id(), player_id)); | 181 Send(new MediaPlayerHostMsg_ExitFullscreen(routing_id(), player_id)); |
182 } | 182 } |
183 | 183 |
184 void WebMediaPlayerProxyImplAndroid::RequestExternalSurface(int player_id) { | 184 void WebMediaPlayerProxyImplAndroid::RequestExternalSurface(int player_id) { |
185 Send(new MediaPlayerHostMsg_RequestExternalSurface(routing_id(), player_id)); | 185 Send(new MediaPlayerHostMsg_RequestExternalSurface(routing_id(), player_id)); |
186 } | 186 } |
187 | 187 |
188 #if defined(GOOGLE_TV) | |
palmer
2013/04/09 19:02:41
So, the only client that sends this IPC message is
scherkus (not reviewing)
2013/04/09 23:43:39
I believe the long term path is to move away hole
wonsik
2013/04/10 06:29:22
Done --- IPC and related code ifdef'ed except for
| |
189 void WebMediaPlayerProxyImplAndroid::DidCommitCompositorFrame() { | |
190 std::map<int, gfx::RectF> geometry_change; | |
191 manager_->GetGeometryChanges(&geometry_change); | |
192 for (std::map<int, gfx::RectF>::iterator it = geometry_change.begin(); | |
193 it != geometry_change.end(); | |
194 ++it) { | |
195 Send(new MediaPlayerHostMsg_NotifyGeometryChange(routing_id(), | |
196 it->first, | |
197 it->second)); | |
198 } | |
199 } | |
200 #endif | |
201 | |
188 webkit_media::WebMediaPlayerImplAndroid* | 202 webkit_media::WebMediaPlayerImplAndroid* |
189 WebMediaPlayerProxyImplAndroid::GetWebMediaPlayer(int player_id) { | 203 WebMediaPlayerProxyImplAndroid::GetWebMediaPlayer(int player_id) { |
190 return static_cast<webkit_media::WebMediaPlayerImplAndroid*>( | 204 return static_cast<webkit_media::WebMediaPlayerImplAndroid*>( |
191 manager_->GetMediaPlayer(player_id)); | 205 manager_->GetMediaPlayer(player_id)); |
192 } | 206 } |
193 | 207 |
194 } // namespace content | 208 } // namespace content |
OLD | NEW |