| 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 "media/blink/webmediaplayer_impl.h" | 5 #include "media/blink/webmediaplayer_impl.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <cmath> | 8 #include <cmath> |
| 9 #include <limits> | 9 #include <limits> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 1342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1353 } | 1353 } |
| 1354 | 1354 |
| 1355 void WebMediaPlayerImpl::requestRemotePlayback() { | 1355 void WebMediaPlayerImpl::requestRemotePlayback() { |
| 1356 cast_impl_.requestRemotePlayback(); | 1356 cast_impl_.requestRemotePlayback(); |
| 1357 } | 1357 } |
| 1358 | 1358 |
| 1359 void WebMediaPlayerImpl::requestRemotePlaybackControl() { | 1359 void WebMediaPlayerImpl::requestRemotePlaybackControl() { |
| 1360 cast_impl_.requestRemotePlaybackControl(); | 1360 cast_impl_.requestRemotePlaybackControl(); |
| 1361 } | 1361 } |
| 1362 | 1362 |
| 1363 void WebMediaPlayerImpl::requestRemotePlaybackStop() { |
| 1364 cast_impl_.requestRemotePlaybackStop(); |
| 1365 } |
| 1366 |
| 1363 void WebMediaPlayerImpl::OnRemotePlaybackEnded() { | 1367 void WebMediaPlayerImpl::OnRemotePlaybackEnded() { |
| 1364 DVLOG(1) << __func__; | 1368 DVLOG(1) << __func__; |
| 1365 DCHECK(main_task_runner_->BelongsToCurrentThread()); | 1369 DCHECK(main_task_runner_->BelongsToCurrentThread()); |
| 1366 | 1370 |
| 1367 ended_ = true; | 1371 ended_ = true; |
| 1368 client_->timeChanged(); | 1372 client_->timeChanged(); |
| 1369 } | 1373 } |
| 1370 | 1374 |
| 1371 void WebMediaPlayerImpl::OnDisconnectedFromRemoteDevice(double t) { | 1375 void WebMediaPlayerImpl::OnDisconnectedFromRemoteDevice(double t) { |
| 1372 DoSeek(base::TimeDelta::FromSecondsD(t), false); | 1376 DoSeek(base::TimeDelta::FromSecondsD(t), false); |
| (...skipping 520 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1893 pipeline_metadata_.natural_size, | 1897 pipeline_metadata_.natural_size, |
| 1894 base::Bind(&GetCurrentTimeInternal, this))); | 1898 base::Bind(&GetCurrentTimeInternal, this))); |
| 1895 watch_time_reporter_->OnVolumeChange(volume_); | 1899 watch_time_reporter_->OnVolumeChange(volume_); |
| 1896 if (delegate_ && delegate_->IsHidden()) | 1900 if (delegate_ && delegate_->IsHidden()) |
| 1897 watch_time_reporter_->OnHidden(); | 1901 watch_time_reporter_->OnHidden(); |
| 1898 else | 1902 else |
| 1899 watch_time_reporter_->OnShown(); | 1903 watch_time_reporter_->OnShown(); |
| 1900 } | 1904 } |
| 1901 | 1905 |
| 1902 } // namespace media | 1906 } // namespace media |
| OLD | NEW |