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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 | 101 |
102 virtual void load(LoadType, const WebURL&, CORSMode) = 0; | 102 virtual void load(LoadType, const WebURL&, CORSMode) = 0; |
103 | 103 |
104 // Playback controls. | 104 // Playback controls. |
105 virtual void play() = 0; | 105 virtual void play() = 0; |
106 virtual void pause() = 0; | 106 virtual void pause() = 0; |
107 virtual bool supportsSave() const = 0; | 107 virtual bool supportsSave() const = 0; |
108 virtual void seek(double seconds) = 0; | 108 virtual void seek(double seconds) = 0; |
109 virtual void setRate(double) = 0; | 109 virtual void setRate(double) = 0; |
110 virtual void setVolume(double) = 0; | 110 virtual void setVolume(double) = 0; |
| 111 virtual void requestRemotePlayback() { }; |
| 112 virtual void requestRemotePlaybackControl() { }; |
111 virtual void setPreload(Preload) { }; | 113 virtual void setPreload(Preload) { }; |
112 virtual WebTimeRanges buffered() const = 0; | 114 virtual WebTimeRanges buffered() const = 0; |
113 virtual double maxTimeSeekable() const = 0; | 115 virtual double maxTimeSeekable() const = 0; |
114 | 116 |
115 virtual void paint(WebCanvas*, const WebRect&, unsigned char alpha) = 0; | 117 virtual void paint(WebCanvas*, const WebRect&, unsigned char alpha) = 0; |
116 | 118 |
117 // True if the loaded media has a playable video/audio track. | 119 // True if the loaded media has a playable video/audio track. |
118 virtual bool hasVideo() const = 0; | 120 virtual bool hasVideo() const = 0; |
119 virtual bool hasAudio() const = 0; | 121 virtual bool hasAudio() const = 0; |
120 | 122 |
(...skipping 44 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 |