OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 <stddef.h> | 5 #include <stddef.h> |
6 | 6 |
7 #include "base/run_loop.h" | 7 #include "base/run_loop.h" |
8 #include "base/single_thread_task_runner.h" | 8 #include "base/single_thread_task_runner.h" |
9 #include "content/public/renderer/media_stream_renderer_factory.h" | 9 #include "content/public/renderer/media_stream_renderer_factory.h" |
10 #include "content/renderer/media/webmediaplayer_ms.h" | 10 #include "content/renderer/media/webmediaplayer_ms.h" |
(...skipping 414 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
425 void mediaSourceOpened(blink::WebMediaSource*) override {} | 425 void mediaSourceOpened(blink::WebMediaSource*) override {} |
426 void requestSeek(double) override {} | 426 void requestSeek(double) override {} |
427 void remoteRouteAvailabilityChanged( | 427 void remoteRouteAvailabilityChanged( |
428 blink::WebRemotePlaybackAvailability) override {} | 428 blink::WebRemotePlaybackAvailability) override {} |
429 void connectedToRemoteDevice() override {} | 429 void connectedToRemoteDevice() override {} |
430 void disconnectedFromRemoteDevice() override {} | 430 void disconnectedFromRemoteDevice() override {} |
431 void cancelledRemotePlaybackRequest() override {} | 431 void cancelledRemotePlaybackRequest() override {} |
432 void remotePlaybackStarted() override {} | 432 void remotePlaybackStarted() override {} |
433 bool isAutoplayingMuted() override { return false; } | 433 bool isAutoplayingMuted() override { return false; } |
434 void requestReload(const blink::WebURL& newUrl) override {} | 434 void requestReload(const blink::WebURL& newUrl) override {} |
| 435 bool hasSelectedVideoTrack() override { return false; } |
| 436 blink::WebMediaPlayer::TrackId getSelectedVideoTrackId() override { |
| 437 return blink::WebMediaPlayer::TrackId(); |
| 438 } |
435 | 439 |
436 // Implementation of cc::VideoFrameProvider::Client | 440 // Implementation of cc::VideoFrameProvider::Client |
437 void StopUsingProvider() override; | 441 void StopUsingProvider() override; |
438 void StartRendering() override; | 442 void StartRendering() override; |
439 void StopRendering() override; | 443 void StopRendering() override; |
440 void DidReceiveFrame() override {} | 444 void DidReceiveFrame() override {} |
441 | 445 |
442 // For test use | 446 // For test use |
443 void SetBackgroundRendering(bool background_rendering) { | 447 void SetBackgroundRendering(bool background_rendering) { |
444 background_rendering_ = background_rendering; | 448 background_rendering_ = background_rendering; |
(...skipping 475 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
920 // OnShown() should restart after a forced suspension. | 924 // OnShown() should restart after a forced suspension. |
921 player_->OnShown(); | 925 player_->OnShown(); |
922 EXPECT_FALSE(player_->paused()); | 926 EXPECT_FALSE(player_->paused()); |
923 EXPECT_CALL(*this, DoSetWebLayer(false)); | 927 EXPECT_CALL(*this, DoSetWebLayer(false)); |
924 | 928 |
925 base::RunLoop().RunUntilIdle(); | 929 base::RunLoop().RunUntilIdle(); |
926 } | 930 } |
927 #endif | 931 #endif |
928 | 932 |
929 } // namespace content | 933 } // namespace content |
OLD | NEW |