| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |