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

Side by Side Diff: Source/web/WebMediaPlayerClientImpl.cpp

Issue 291163004: Implement media cast buttons (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Reenable previously crashing tests - now fixed Created 6 years, 3 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
« no previous file with comments | « Source/web/WebMediaPlayerClientImpl.h ('k') | public/platform/WebLocalizedString.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 "config.h" 5 #include "config.h"
6 #include "web/WebMediaPlayerClientImpl.h" 6 #include "web/WebMediaPlayerClientImpl.h"
7 7
8 #include "core/frame/LocalFrame.h" 8 #include "core/frame/LocalFrame.h"
9 #include "core/html/HTMLMediaElement.h" 9 #include "core/html/HTMLMediaElement.h"
10 #include "core/html/TimeRanges.h" 10 #include "core/html/TimeRanges.h"
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 void WebMediaPlayerClientImpl::requestFullscreen() 173 void WebMediaPlayerClientImpl::requestFullscreen()
174 { 174 {
175 m_client->mediaPlayerRequestFullscreen(); 175 m_client->mediaPlayerRequestFullscreen();
176 } 176 }
177 177
178 void WebMediaPlayerClientImpl::requestSeek(double time) 178 void WebMediaPlayerClientImpl::requestSeek(double time)
179 { 179 {
180 m_client->mediaPlayerRequestSeek(time); 180 m_client->mediaPlayerRequestSeek(time);
181 } 181 }
182 182
183 void WebMediaPlayerClientImpl::remoteRouteAvailabilityChanged(bool routesAvailab le)
184 {
185 mediaElement().remoteRouteAvailabilityChanged(routesAvailable);
186 }
187
188 void WebMediaPlayerClientImpl::connectedToRemoteDevice()
189 {
190 mediaElement().connectedToRemoteDevice();
191 }
192
193 void WebMediaPlayerClientImpl::disconnectedFromRemoteDevice()
194 {
195 mediaElement().disconnectedFromRemoteDevice();
196 }
197
183 // MediaPlayer ------------------------------------------------- 198 // MediaPlayer -------------------------------------------------
184 void WebMediaPlayerClientImpl::load(WebMediaPlayer::LoadType loadType, const WTF ::String& url, WebMediaPlayer::CORSMode corsMode) 199 void WebMediaPlayerClientImpl::load(WebMediaPlayer::LoadType loadType, const WTF ::String& url, WebMediaPlayer::CORSMode corsMode)
185 { 200 {
186 ASSERT(!m_webMediaPlayer); 201 ASSERT(!m_webMediaPlayer);
187 202
188 // FIXME: Remove this cast 203 // FIXME: Remove this cast
189 LocalFrame* frame = mediaElement().document().frame(); 204 LocalFrame* frame = mediaElement().document().frame();
190 205
191 WebURL poster = m_client->mediaPlayerPosterURL(); 206 WebURL poster = m_client->mediaPlayerPosterURL();
192 207
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 } 307 }
293 308
294 void WebMediaPlayerClientImpl::AudioClientImpl::trace(Visitor* visitor) 309 void WebMediaPlayerClientImpl::AudioClientImpl::trace(Visitor* visitor)
295 { 310 {
296 visitor->trace(m_client); 311 visitor->trace(m_client);
297 } 312 }
298 313
299 #endif 314 #endif
300 315
301 } // namespace blink 316 } // namespace blink
OLDNEW
« no previous file with comments | « Source/web/WebMediaPlayerClientImpl.h ('k') | public/platform/WebLocalizedString.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698