| 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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 // Getters of playback state. | 145 // Getters of playback state. |
| 146 virtual bool paused() const = 0; | 146 virtual bool paused() const = 0; |
| 147 virtual bool seeking() const = 0; | 147 virtual bool seeking() const = 0; |
| 148 virtual double duration() const = 0; | 148 virtual double duration() const = 0; |
| 149 virtual double currentTime() const = 0; | 149 virtual double currentTime() const = 0; |
| 150 | 150 |
| 151 // Internal states of loading and network. | 151 // Internal states of loading and network. |
| 152 virtual NetworkState getNetworkState() const = 0; | 152 virtual NetworkState getNetworkState() const = 0; |
| 153 virtual ReadyState getReadyState() const = 0; | 153 virtual ReadyState getReadyState() const = 0; |
| 154 | 154 |
| 155 virtual WebString getErrorMessage() = 0; |
| 155 virtual bool didLoadingProgress() = 0; | 156 virtual bool didLoadingProgress() = 0; |
| 156 | 157 |
| 157 virtual bool hasSingleSecurityOrigin() const = 0; | 158 virtual bool hasSingleSecurityOrigin() const = 0; |
| 158 virtual bool didPassCORSAccessCheck() const = 0; | 159 virtual bool didPassCORSAccessCheck() const = 0; |
| 159 | 160 |
| 160 virtual double mediaTimeForTimeValue(double timeValue) const = 0; | 161 virtual double mediaTimeForTimeValue(double timeValue) const = 0; |
| 161 | 162 |
| 162 virtual unsigned decodedFrameCount() const = 0; | 163 virtual unsigned decodedFrameCount() const = 0; |
| 163 virtual unsigned droppedFrameCount() const = 0; | 164 virtual unsigned droppedFrameCount() const = 0; |
| 164 virtual unsigned corruptedFrameCount() const { return 0; } | 165 virtual unsigned corruptedFrameCount() const { return 0; } |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 virtual void exitedFullscreen() { } | 197 virtual void exitedFullscreen() { } |
| 197 | 198 |
| 198 virtual void enabledAudioTracksChanged(const WebVector<TrackId>& enabledTrac
kIds) { } | 199 virtual void enabledAudioTracksChanged(const WebVector<TrackId>& enabledTrac
kIds) { } |
| 199 // |selectedTrackId| is null if no track is selected. | 200 // |selectedTrackId| is null if no track is selected. |
| 200 virtual void selectedVideoTrackChanged(TrackId* selectedTrackId) { } | 201 virtual void selectedVideoTrackChanged(TrackId* selectedTrackId) { } |
| 201 }; | 202 }; |
| 202 | 203 |
| 203 } // namespace blink | 204 } // namespace blink |
| 204 | 205 |
| 205 #endif | 206 #endif |
| OLD | NEW |