| 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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 // Playback controls. | 112 // Playback controls. |
| 113 virtual void play() = 0; | 113 virtual void play() = 0; |
| 114 virtual void pause() = 0; | 114 virtual void pause() = 0; |
| 115 virtual bool supportsSave() const = 0; | 115 virtual bool supportsSave() const = 0; |
| 116 virtual void seek(double seconds) = 0; | 116 virtual void seek(double seconds) = 0; |
| 117 virtual void setRate(double) = 0; | 117 virtual void setRate(double) = 0; |
| 118 virtual void setVolume(double) = 0; | 118 virtual void setVolume(double) = 0; |
| 119 | 119 |
| 120 virtual void requestRemotePlayback() {} | 120 virtual void requestRemotePlayback() {} |
| 121 virtual void requestRemotePlaybackControl() {} | 121 virtual void requestRemotePlaybackControl() {} |
| 122 virtual void requestRemotePlaybackStop() {} |
| 122 virtual void setPreload(Preload) {} | 123 virtual void setPreload(Preload) {} |
| 123 virtual void setBufferingStrategy(BufferingStrategy) {} | 124 virtual void setBufferingStrategy(BufferingStrategy) {} |
| 124 virtual WebTimeRanges buffered() const = 0; | 125 virtual WebTimeRanges buffered() const = 0; |
| 125 virtual WebTimeRanges seekable() const = 0; | 126 virtual WebTimeRanges seekable() const = 0; |
| 126 | 127 |
| 127 // Attempts to switch the audio output device. | 128 // Attempts to switch the audio output device. |
| 128 // Implementations of setSinkId take ownership of the WebSetSinkCallbacks | 129 // Implementations of setSinkId take ownership of the WebSetSinkCallbacks |
| 129 // object. | 130 // object. |
| 130 // Note also that setSinkId implementations must make sure that all | 131 // Note also that setSinkId implementations must make sure that all |
| 131 // methods of the WebSetSinkCallbacks object, including constructors and | 132 // methods of the WebSetSinkCallbacks object, including constructors and |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 229 | 230 |
| 230 virtual void enabledAudioTracksChanged( | 231 virtual void enabledAudioTracksChanged( |
| 231 const WebVector<TrackId>& enabledTrackIds) {} | 232 const WebVector<TrackId>& enabledTrackIds) {} |
| 232 // |selectedTrackId| is null if no track is selected. | 233 // |selectedTrackId| is null if no track is selected. |
| 233 virtual void selectedVideoTrackChanged(TrackId* selectedTrackId) {} | 234 virtual void selectedVideoTrackChanged(TrackId* selectedTrackId) {} |
| 234 }; | 235 }; |
| 235 | 236 |
| 236 } // namespace blink | 237 } // namespace blink |
| 237 | 238 |
| 238 #endif | 239 #endif |
| OLD | NEW |