| 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 1346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1357 } | 1357 } |
| 1358 | 1358 |
| 1359 void WebMediaPlayerImpl::requestRemotePlayback() { | 1359 void WebMediaPlayerImpl::requestRemotePlayback() { |
| 1360 cast_impl_.requestRemotePlayback(); | 1360 cast_impl_.requestRemotePlayback(); |
| 1361 } | 1361 } |
| 1362 | 1362 |
| 1363 void WebMediaPlayerImpl::requestRemotePlaybackControl() { | 1363 void WebMediaPlayerImpl::requestRemotePlaybackControl() { |
| 1364 cast_impl_.requestRemotePlaybackControl(); | 1364 cast_impl_.requestRemotePlaybackControl(); |
| 1365 } | 1365 } |
| 1366 | 1366 |
| 1367 void WebMediaPlayerImpl::requestRemotePlaybackStop() { |
| 1368 cast_impl_.requestRemotePlaybackStop(); |
| 1369 } |
| 1370 |
| 1367 void WebMediaPlayerImpl::OnRemotePlaybackEnded() { | 1371 void WebMediaPlayerImpl::OnRemotePlaybackEnded() { |
| 1368 DVLOG(1) << __func__; | 1372 DVLOG(1) << __func__; |
| 1369 DCHECK(main_task_runner_->BelongsToCurrentThread()); | 1373 DCHECK(main_task_runner_->BelongsToCurrentThread()); |
| 1370 | 1374 |
| 1371 ended_ = true; | 1375 ended_ = true; |
| 1372 client_->timeChanged(); | 1376 client_->timeChanged(); |
| 1373 } | 1377 } |
| 1374 | 1378 |
| 1375 void WebMediaPlayerImpl::OnDisconnectedFromRemoteDevice(double t) { | 1379 void WebMediaPlayerImpl::OnDisconnectedFromRemoteDevice(double t) { |
| 1376 DoSeek(base::TimeDelta::FromSecondsD(t), false); | 1380 DoSeek(base::TimeDelta::FromSecondsD(t), false); |
| (...skipping 530 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1907 pipeline_metadata_.natural_size, | 1911 pipeline_metadata_.natural_size, |
| 1908 base::Bind(&GetCurrentTimeInternal, this))); | 1912 base::Bind(&GetCurrentTimeInternal, this))); |
| 1909 watch_time_reporter_->OnVolumeChange(volume_); | 1913 watch_time_reporter_->OnVolumeChange(volume_); |
| 1910 if (delegate_ && delegate_->IsHidden()) | 1914 if (delegate_ && delegate_->IsHidden()) |
| 1911 watch_time_reporter_->OnHidden(); | 1915 watch_time_reporter_->OnHidden(); |
| 1912 else | 1916 else |
| 1913 watch_time_reporter_->OnShown(); | 1917 watch_time_reporter_->OnShown(); |
| 1914 } | 1918 } |
| 1915 | 1919 |
| 1916 } // namespace media | 1920 } // namespace media |
| OLD | NEW |