| 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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 | 135 |
| 136 // True if the media is being played on a remote device. | 136 // True if the media is being played on a remote device. |
| 137 virtual bool isRemote() const { return false; } | 137 virtual bool isRemote() const { return false; } |
| 138 | 138 |
| 139 // Dimension of the video. | 139 // Dimension of the video. |
| 140 virtual WebSize naturalSize() const = 0; | 140 virtual WebSize naturalSize() const = 0; |
| 141 | 141 |
| 142 // Getters of playback state. | 142 // Getters of playback state. |
| 143 virtual bool paused() const = 0; | 143 virtual bool paused() const = 0; |
| 144 virtual bool seeking() const = 0; | 144 virtual bool seeking() const = 0; |
| 145 virtual double earliestTime() const = 0; |
| 145 virtual double duration() const = 0; | 146 virtual double duration() const = 0; |
| 146 virtual double currentTime() const = 0; | 147 virtual double currentTime() const = 0; |
| 147 | 148 |
| 148 // Internal states of loading and network. | 149 // Internal states of loading and network. |
| 149 virtual NetworkState networkState() const = 0; | 150 virtual NetworkState networkState() const = 0; |
| 150 virtual ReadyState readyState() const = 0; | 151 virtual ReadyState readyState() const = 0; |
| 151 | 152 |
| 152 virtual bool didLoadingProgress() = 0; | 153 virtual bool didLoadingProgress() = 0; |
| 153 | 154 |
| 154 virtual bool hasSingleSecurityOrigin() const = 0; | 155 virtual bool hasSingleSecurityOrigin() const = 0; |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 virtual void enterFullscreen() { } | 198 virtual void enterFullscreen() { } |
| 198 | 199 |
| 199 virtual void enabledAudioTracksChanged(const WebVector<TrackId>& enabledTrac
kIds) { } | 200 virtual void enabledAudioTracksChanged(const WebVector<TrackId>& enabledTrac
kIds) { } |
| 200 // |selectedTrackId| is null if no track is selected. | 201 // |selectedTrackId| is null if no track is selected. |
| 201 virtual void selectedVideoTrackChanged(TrackId* selectedTrackId) { } | 202 virtual void selectedVideoTrackChanged(TrackId* selectedTrackId) { } |
| 202 }; | 203 }; |
| 203 | 204 |
| 204 } // namespace blink | 205 } // namespace blink |
| 205 | 206 |
| 206 #endif | 207 #endif |
| OLD | NEW |