OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 | 102 |
103 virtual void load(LoadType, const WebURL&, CORSMode) = 0; | 103 virtual void load(LoadType, const WebURL&, CORSMode) = 0; |
104 | 104 |
105 // Playback controls. | 105 // Playback controls. |
106 virtual void play() = 0; | 106 virtual void play() = 0; |
107 virtual void pause() = 0; | 107 virtual void pause() = 0; |
108 virtual bool supportsSave() const = 0; | 108 virtual bool supportsSave() const = 0; |
109 virtual void seek(double seconds) = 0; | 109 virtual void seek(double seconds) = 0; |
110 virtual void setRate(double) = 0; | 110 virtual void setRate(double) = 0; |
111 virtual void setVolume(double) = 0; | 111 virtual void setVolume(double) = 0; |
| 112 virtual void requestRemotePlayback() { }; |
| 113 virtual void requestRemotePlaybackControl() { }; |
112 virtual void setPreload(Preload) { }; | 114 virtual void setPreload(Preload) { }; |
113 virtual WebTimeRanges buffered() const = 0; | 115 virtual WebTimeRanges buffered() const = 0; |
114 virtual double maxTimeSeekable() const = 0; | 116 virtual double maxTimeSeekable() const = 0; |
115 | 117 |
116 // True if the loaded media has a playable video/audio track. | 118 // True if the loaded media has a playable video/audio track. |
117 virtual bool hasVideo() const = 0; | 119 virtual bool hasVideo() const = 0; |
118 virtual bool hasAudio() const = 0; | 120 virtual bool hasAudio() const = 0; |
119 | 121 |
120 // Dimension of the video. | 122 // Dimension of the video. |
121 virtual WebSize naturalSize() const = 0; | 123 virtual WebSize naturalSize() const = 0; |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 virtual bool canEnterFullscreen() const { return false; } | 167 virtual bool canEnterFullscreen() const { return false; } |
166 | 168 |
167 virtual void enabledAudioTracksChanged(const WebVector<TrackId>& enabledTrac
kIds) { } | 169 virtual void enabledAudioTracksChanged(const WebVector<TrackId>& enabledTrac
kIds) { } |
168 // |selectedTrackId| is null if no track is selected. | 170 // |selectedTrackId| is null if no track is selected. |
169 virtual void selectedVideoTrackChanged(TrackId* selectedTrackId) { } | 171 virtual void selectedVideoTrackChanged(TrackId* selectedTrackId) { } |
170 }; | 172 }; |
171 | 173 |
172 } // namespace blink | 174 } // namespace blink |
173 | 175 |
174 #endif | 176 #endif |
OLD | NEW |