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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 // Getters of playback state. | 122 // Getters of playback state. |
123 virtual bool paused() const = 0; | 123 virtual bool paused() const = 0; |
124 virtual bool seeking() const = 0; | 124 virtual bool seeking() const = 0; |
125 virtual double duration() const = 0; | 125 virtual double duration() const = 0; |
126 virtual double currentTime() const = 0; | 126 virtual double currentTime() const = 0; |
127 | 127 |
128 // Internal states of loading and network. | 128 // Internal states of loading and network. |
129 virtual NetworkState networkState() const = 0; | 129 virtual NetworkState networkState() const = 0; |
130 virtual ReadyState readyState() const = 0; | 130 virtual ReadyState readyState() const = 0; |
131 | 131 |
132 virtual bool didLoadingProgress() const = 0; | 132 virtual bool didLoadingProgress() = 0; |
133 | 133 |
134 virtual bool hasSingleSecurityOrigin() const = 0; | 134 virtual bool hasSingleSecurityOrigin() const = 0; |
135 virtual bool didPassCORSAccessCheck() const = 0; | 135 virtual bool didPassCORSAccessCheck() const = 0; |
136 | 136 |
137 virtual double mediaTimeForTimeValue(double timeValue) const = 0; | 137 virtual double mediaTimeForTimeValue(double timeValue) const = 0; |
138 | 138 |
139 virtual unsigned decodedFrameCount() const = 0; | 139 virtual unsigned decodedFrameCount() const = 0; |
140 virtual unsigned droppedFrameCount() const = 0; | 140 virtual unsigned droppedFrameCount() const = 0; |
141 virtual unsigned corruptedFrameCount() const { return 0; }; | 141 virtual unsigned corruptedFrameCount() const { return 0; }; |
142 virtual unsigned audioDecodedByteCount() const = 0; | 142 virtual unsigned audioDecodedByteCount() const = 0; |
(...skipping 17 matching lines...) Expand all Loading... |
160 // Instruct WebMediaPlayer to enter/exit fullscreen. | 160 // Instruct WebMediaPlayer to enter/exit fullscreen. |
161 virtual void enterFullscreen() { } | 161 virtual void enterFullscreen() { } |
162 virtual void exitFullscreen() { } | 162 virtual void exitFullscreen() { } |
163 // Returns true if the player can enter fullscreen. | 163 // Returns true if the player can enter fullscreen. |
164 virtual bool canEnterFullscreen() const { return false; } | 164 virtual bool canEnterFullscreen() const { return false; } |
165 }; | 165 }; |
166 | 166 |
167 } // namespace blink | 167 } // namespace blink |
168 | 168 |
169 #endif | 169 #endif |
OLD | NEW |