OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All rights
reserved. | 2 * Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple 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 | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 void setLoop(bool b); | 148 void setLoop(bool b); |
149 void play(); | 149 void play(); |
150 void pause(); | 150 void pause(); |
151 | 151 |
152 // statistics | 152 // statistics |
153 unsigned webkitAudioDecodedByteCount() const; | 153 unsigned webkitAudioDecodedByteCount() const; |
154 unsigned webkitVideoDecodedByteCount() const; | 154 unsigned webkitVideoDecodedByteCount() const; |
155 | 155 |
156 // media source extensions | 156 // media source extensions |
157 void closeMediaSource(); | 157 void closeMediaSource(); |
158 void durationChanged(double duration); | 158 void durationChanged(double duration, bool requestSeek); |
159 | 159 |
160 // controls | 160 // controls |
161 bool controls() const; | 161 bool controls() const; |
162 void setControls(bool); | 162 void setControls(bool); |
163 double volume() const; | 163 double volume() const; |
164 void setVolume(double, ExceptionState&); | 164 void setVolume(double, ExceptionState&); |
165 bool muted() const; | 165 bool muted() const; |
166 void setMuted(bool); | 166 void setMuted(bool); |
167 | 167 |
168 // play/pause toggling that uses the media controller if present. togglePlay
StateWillPlay() is | 168 // play/pause toggling that uses the media controller if present. togglePlay
StateWillPlay() is |
(...skipping 453 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
622 inline bool isHTMLMediaElement(const HTMLElement& element) | 622 inline bool isHTMLMediaElement(const HTMLElement& element) |
623 { | 623 { |
624 return isHTMLAudioElement(element) || isHTMLVideoElement(element); | 624 return isHTMLAudioElement(element) || isHTMLVideoElement(element); |
625 } | 625 } |
626 | 626 |
627 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); | 627 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); |
628 | 628 |
629 } //namespace | 629 } //namespace |
630 | 630 |
631 #endif | 631 #endif |
OLD | NEW |