| 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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 TimeRanges* buffered() const; | 120 TimeRanges* buffered() const; |
| 121 void load(); | 121 void load(); |
| 122 String canPlayType(const String& mimeType, const String& keySystem = String(
)) const; | 122 String canPlayType(const String& mimeType, const String& keySystem = String(
)) const; |
| 123 | 123 |
| 124 // ready state | 124 // ready state |
| 125 enum ReadyState { HAVE_NOTHING, HAVE_METADATA, HAVE_CURRENT_DATA, HAVE_FUTUR
E_DATA, HAVE_ENOUGH_DATA }; | 125 enum ReadyState { HAVE_NOTHING, HAVE_METADATA, HAVE_CURRENT_DATA, HAVE_FUTUR
E_DATA, HAVE_ENOUGH_DATA }; |
| 126 ReadyState readyState() const; | 126 ReadyState readyState() const; |
| 127 bool seeking() const; | 127 bool seeking() const; |
| 128 | 128 |
| 129 // playback state | 129 // playback state |
| 130 double earliestTime() const; |
| 130 double currentTime() const; | 131 double currentTime() const; |
| 131 void setCurrentTime(double); | 132 void setCurrentTime(double); |
| 132 double duration() const; | 133 double duration() const; |
| 133 bool paused() const; | 134 bool paused() const; |
| 134 double defaultPlaybackRate() const; | 135 double defaultPlaybackRate() const; |
| 135 void setDefaultPlaybackRate(double); | 136 void setDefaultPlaybackRate(double); |
| 136 double playbackRate() const; | 137 double playbackRate() const; |
| 137 void setPlaybackRate(double); | 138 void setPlaybackRate(double); |
| 138 void updatePlaybackRate(); | 139 void updatePlaybackRate(); |
| 139 TimeRanges* played(); | 140 TimeRanges* played(); |
| (...skipping 485 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 625 inline bool isHTMLMediaElement(const HTMLElement& element) | 626 inline bool isHTMLMediaElement(const HTMLElement& element) |
| 626 { | 627 { |
| 627 return isHTMLAudioElement(element) || isHTMLVideoElement(element); | 628 return isHTMLAudioElement(element) || isHTMLVideoElement(element); |
| 628 } | 629 } |
| 629 | 630 |
| 630 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); | 631 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); |
| 631 | 632 |
| 632 } // namespace blink | 633 } // namespace blink |
| 633 | 634 |
| 634 #endif // HTMLMediaElement_h | 635 #endif // HTMLMediaElement_h |
| OLD | NEW |