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

Side by Side Diff: content/renderer/media/webmediaplayer_ms.cc

Issue 599103003: Switch from WebMediaPlayer::maxTimeSeekable() to seekable() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: compile on android Created 6 years, 2 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 | « content/renderer/media/webmediaplayer_ms.h ('k') | media/blink/webmediaplayer_impl.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_ms.h" 5 #include "content/renderer/media/webmediaplayer_ms.h"
6 6
7 #include <limits> 7 #include <limits>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 DCHECK(thread_checker_.CalledOnValidThread()); 302 DCHECK(thread_checker_.CalledOnValidThread());
303 DVLOG(1) << "WebMediaPlayerMS::readyState, state:" << ready_state_; 303 DVLOG(1) << "WebMediaPlayerMS::readyState, state:" << ready_state_;
304 return ready_state_; 304 return ready_state_;
305 } 305 }
306 306
307 blink::WebTimeRanges WebMediaPlayerMS::buffered() const { 307 blink::WebTimeRanges WebMediaPlayerMS::buffered() const {
308 DCHECK(thread_checker_.CalledOnValidThread()); 308 DCHECK(thread_checker_.CalledOnValidThread());
309 return buffered_; 309 return buffered_;
310 } 310 }
311 311
312 double WebMediaPlayerMS::maxTimeSeekable() const { 312 blink::WebTimeRanges WebMediaPlayerMS::seekable() const {
313 DCHECK(thread_checker_.CalledOnValidThread()); 313 DCHECK(thread_checker_.CalledOnValidThread());
314 return 0.0; 314 return blink::WebTimeRanges();
315 } 315 }
316 316
317 bool WebMediaPlayerMS::didLoadingProgress() { 317 bool WebMediaPlayerMS::didLoadingProgress() {
318 DCHECK(thread_checker_.CalledOnValidThread()); 318 DCHECK(thread_checker_.CalledOnValidThread());
319 return true; 319 return true;
320 } 320 }
321 321
322 void WebMediaPlayerMS::paint(blink::WebCanvas* canvas, 322 void WebMediaPlayerMS::paint(blink::WebCanvas* canvas,
323 const blink::WebRect& rect, 323 const blink::WebRect& rect,
324 unsigned char alpha) { 324 unsigned char alpha) {
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
481 GetClient()->readyStateChanged(); 481 GetClient()->readyStateChanged();
482 } 482 }
483 483
484 blink::WebMediaPlayerClient* WebMediaPlayerMS::GetClient() { 484 blink::WebMediaPlayerClient* WebMediaPlayerMS::GetClient() {
485 DCHECK(thread_checker_.CalledOnValidThread()); 485 DCHECK(thread_checker_.CalledOnValidThread());
486 DCHECK(client_); 486 DCHECK(client_);
487 return client_; 487 return client_;
488 } 488 }
489 489
490 } // namespace content 490 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/media/webmediaplayer_ms.h ('k') | media/blink/webmediaplayer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698