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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 enum ReadyState { HAVE_NOTHING, HAVE_METADATA, HAVE_CURRENT_DATA, HAVE_FUTUR
E_DATA, HAVE_ENOUGH_DATA }; | 122 enum ReadyState { HAVE_NOTHING, HAVE_METADATA, HAVE_CURRENT_DATA, HAVE_FUTUR
E_DATA, HAVE_ENOUGH_DATA }; |
123 ReadyState readyState() const; | 123 ReadyState readyState() const; |
124 bool seeking() const; | 124 bool seeking() const; |
125 | 125 |
126 // playback state | 126 // playback state |
127 double currentTime() const; | 127 double currentTime() const; |
128 void setCurrentTime(double, ExceptionState&); | 128 void setCurrentTime(double, ExceptionState&); |
129 double duration() const; | 129 double duration() const; |
130 bool paused() const; | 130 bool paused() const; |
131 double defaultPlaybackRate() const; | 131 double defaultPlaybackRate() const; |
132 void setDefaultPlaybackRate(double, ExceptionState&); | 132 void setDefaultPlaybackRate(double); |
133 double playbackRate() const; | 133 double playbackRate() const; |
134 void setPlaybackRate(double, ExceptionState&); | 134 void setPlaybackRate(double); |
135 void updatePlaybackRate(); | 135 void updatePlaybackRate(); |
136 PassRefPtr<TimeRanges> played(); | 136 PassRefPtr<TimeRanges> played(); |
137 PassRefPtr<TimeRanges> seekable() const; | 137 PassRefPtr<TimeRanges> seekable() const; |
138 bool ended() const; | 138 bool ended() const; |
139 bool autoplay() const; | 139 bool autoplay() const; |
140 bool loop() const; | 140 bool loop() const; |
141 void setLoop(bool b); | 141 void setLoop(bool b); |
142 void play(); | 142 void play(); |
143 void pause(); | 143 void pause(); |
144 | 144 |
(...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
551 inline bool isHTMLMediaElement(const HTMLElement& element) | 551 inline bool isHTMLMediaElement(const HTMLElement& element) |
552 { | 552 { |
553 return isHTMLAudioElement(element) || isHTMLVideoElement(element); | 553 return isHTMLAudioElement(element) || isHTMLVideoElement(element); |
554 } | 554 } |
555 | 555 |
556 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); | 556 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); |
557 | 557 |
558 } //namespace | 558 } //namespace |
559 | 559 |
560 #endif | 560 #endif |
OLD | NEW |