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

Side by Side Diff: third_party/WebKit/public/platform/WebMediaPlayer.h

Issue 2289543005: Allow suspension prior to reaching kHaveFutureData. (Closed)
Patch Set: Rename to setPaused. Created 4 years, 3 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 /* 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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 setPreload(Preload) { } 122 virtual void setPreload(Preload) { }
123 virtual void setBufferingStrategy(BufferingStrategy) {} 123 virtual void setBufferingStrategy(BufferingStrategy) {}
124 virtual void setPaused(bool) {}
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
132 // destructors, run in the same thread where the object is created 133 // destructors, run in the same thread where the object is created
133 // (i.e., the blink thread). 134 // (i.e., the blink thread).
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 virtual void exitedFullscreen() { } 199 virtual void exitedFullscreen() { }
199 200
200 virtual void enabledAudioTracksChanged(const WebVector<TrackId>& enabledTrac kIds) { } 201 virtual void enabledAudioTracksChanged(const WebVector<TrackId>& enabledTrac kIds) { }
201 // |selectedTrackId| is null if no track is selected. 202 // |selectedTrackId| is null if no track is selected.
202 virtual void selectedVideoTrackChanged(TrackId* selectedTrackId) { } 203 virtual void selectedVideoTrackChanged(TrackId* selectedTrackId) { }
203 }; 204 };
204 205
205 } // namespace blink 206 } // namespace blink
206 207
207 #endif 208 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698