| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 <stdint.h> | 7 #include <stdint.h> |
| 8 | 8 |
| 9 #include <memory> | 9 #include <memory> |
| 10 | 10 |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 } | 77 } |
| 78 void removeVideoTrack(blink::WebMediaPlayer::TrackId) override {} | 78 void removeVideoTrack(blink::WebMediaPlayer::TrackId) override {} |
| 79 void addTextTrack(blink::WebInbandTextTrack*) override {} | 79 void addTextTrack(blink::WebInbandTextTrack*) override {} |
| 80 void removeTextTrack(blink::WebInbandTextTrack*) override {} | 80 void removeTextTrack(blink::WebInbandTextTrack*) override {} |
| 81 void mediaSourceOpened(blink::WebMediaSource*) override {} | 81 void mediaSourceOpened(blink::WebMediaSource*) override {} |
| 82 void requestSeek(double) override {} | 82 void requestSeek(double) override {} |
| 83 void remoteRouteAvailabilityChanged(bool) override {} | 83 void remoteRouteAvailabilityChanged(bool) override {} |
| 84 void connectedToRemoteDevice() override {} | 84 void connectedToRemoteDevice() override {} |
| 85 void disconnectedFromRemoteDevice() override {} | 85 void disconnectedFromRemoteDevice() override {} |
| 86 void cancelledRemotePlaybackRequest() override {} | 86 void cancelledRemotePlaybackRequest() override {} |
| 87 void remotePlaybackStarted() override {} |
| 87 bool isAutoplayingMuted() override { return is_autoplaying_muted_; } | 88 bool isAutoplayingMuted() override { return is_autoplaying_muted_; } |
| 88 void requestReload(const blink::WebURL& newUrl) override {} | 89 void requestReload(const blink::WebURL& newUrl) override {} |
| 89 | 90 |
| 90 void set_is_autoplaying_muted(bool value) { is_autoplaying_muted_ = value; } | 91 void set_is_autoplaying_muted(bool value) { is_autoplaying_muted_ = value; } |
| 91 | 92 |
| 92 private: | 93 private: |
| 93 bool is_autoplaying_muted_ = false; | 94 bool is_autoplaying_muted_ = false; |
| 94 | 95 |
| 95 DISALLOW_COPY_AND_ASSIGN(DummyWebMediaPlayerClient); | 96 DISALLOW_COPY_AND_ASSIGN(DummyWebMediaPlayerClient); |
| 96 }; | 97 }; |
| (...skipping 589 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 686 EXPECT_CALL(delegate_, DidPlay(_, true, false, false, _)); | 687 EXPECT_CALL(delegate_, DidPlay(_, true, false, false, _)); |
| 687 client_.set_is_autoplaying_muted(true); | 688 client_.set_is_autoplaying_muted(true); |
| 688 SetDelegateState(WebMediaPlayerImpl::DelegateState::PLAYING); | 689 SetDelegateState(WebMediaPlayerImpl::DelegateState::PLAYING); |
| 689 | 690 |
| 690 EXPECT_CALL(delegate_, DidPlay(_, true, true, false, _)); | 691 EXPECT_CALL(delegate_, DidPlay(_, true, true, false, _)); |
| 691 client_.set_is_autoplaying_muted(false); | 692 client_.set_is_autoplaying_muted(false); |
| 692 wmpi_->setVolume(1.0); | 693 wmpi_->setVolume(1.0); |
| 693 } | 694 } |
| 694 | 695 |
| 695 } // namespace media | 696 } // namespace media |
| OLD | NEW |