Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(218)

Side by Side Diff: media/blink/webmediaplayer_impl.h

Issue 1812543003: Allow muting/unmuting audio through media track API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@blink-sb-tracks6
Patch Set: rebase Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 #ifndef MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ 5 #ifndef MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_
6 #define MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ 6 #define MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 // WebGL texImage2D, ImageBitmap, printing and capturing capabilities. 120 // WebGL texImage2D, ImageBitmap, printing and capturing capabilities.
121 void paint(blink::WebCanvas* canvas, 121 void paint(blink::WebCanvas* canvas,
122 const blink::WebRect& rect, 122 const blink::WebRect& rect,
123 unsigned char alpha, 123 unsigned char alpha,
124 SkXfermode::Mode mode) override; 124 SkXfermode::Mode mode) override;
125 125
126 // True if the loaded media has a playable video/audio track. 126 // True if the loaded media has a playable video/audio track.
127 bool hasVideo() const override; 127 bool hasVideo() const override;
128 bool hasAudio() const override; 128 bool hasAudio() const override;
129 129
130 void enabledAudioTracksChanged(
131 const blink::WebVector<blink::WebMediaPlayer::TrackId>& enabledTrackIds)
132 override;
133 // |selectedTrackId| is null if no track is selected.
134 void selectedVideoTrackChanged(
135 blink::WebMediaPlayer::TrackId* selectedTrackId) override;
136
130 // Dimensions of the video. 137 // Dimensions of the video.
131 blink::WebSize naturalSize() const override; 138 blink::WebSize naturalSize() const override;
132 139
133 // Getters of playback state. 140 // Getters of playback state.
134 bool paused() const override; 141 bool paused() const override;
135 bool seeking() const override; 142 bool seeking() const override;
136 double duration() const override; 143 double duration() const override;
137 virtual double timelineOffset() const; 144 virtual double timelineOffset() const;
138 double currentTime() const override; 145 double currentTime() const override;
139 146
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after
443 // started; prevents us from spuriously logging errors that are transient or 450 // started; prevents us from spuriously logging errors that are transient or
444 // unimportant. 451 // unimportant.
445 bool suppress_destruction_errors_; 452 bool suppress_destruction_errors_;
446 453
447 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); 454 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl);
448 }; 455 };
449 456
450 } // namespace media 457 } // namespace media
451 458
452 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ 459 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698