| 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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 void updatePlaybackRate(); | 118 void updatePlaybackRate(); |
| 119 PassRefPtrWillBeRawPtr<TimeRanges> played(); | 119 PassRefPtrWillBeRawPtr<TimeRanges> played(); |
| 120 PassRefPtrWillBeRawPtr<TimeRanges> seekable() const; | 120 PassRefPtrWillBeRawPtr<TimeRanges> seekable() const; |
| 121 bool ended() const; | 121 bool ended() const; |
| 122 bool autoplay() const; | 122 bool autoplay() const; |
| 123 bool loop() const; | 123 bool loop() const; |
| 124 void setLoop(bool b); | 124 void setLoop(bool b); |
| 125 void play(); | 125 void play(); |
| 126 void pause(); | 126 void pause(); |
| 127 | 127 |
| 128 // statistics | |
| 129 unsigned webkitAudioDecodedByteCount() const; | |
| 130 unsigned webkitVideoDecodedByteCount() const; | |
| 131 | |
| 132 // media source extensions | 128 // media source extensions |
| 133 void closeMediaSource(); | 129 void closeMediaSource(); |
| 134 void durationChanged(double duration, bool requestSeek); | 130 void durationChanged(double duration, bool requestSeek); |
| 135 | 131 |
| 136 double volume() const; | 132 double volume() const; |
| 137 void setVolume(double, ExceptionState&); | 133 void setVolume(double, ExceptionState&); |
| 138 bool muted() const; | 134 bool muted() const; |
| 139 void setMuted(bool); | 135 void setMuted(bool); |
| 140 | 136 |
| 141 // play/pause toggling that uses the media controller if present. togglePlay
StateWillPlay() is | 137 // play/pause toggling that uses the media controller if present. togglePlay
StateWillPlay() is |
| (...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 454 inline bool isHTMLMediaElement(const HTMLElement& element) | 450 inline bool isHTMLMediaElement(const HTMLElement& element) |
| 455 { | 451 { |
| 456 return isHTMLAudioElement(element) || isHTMLVideoElement(element); | 452 return isHTMLAudioElement(element) || isHTMLVideoElement(element); |
| 457 } | 453 } |
| 458 | 454 |
| 459 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); | 455 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); |
| 460 | 456 |
| 461 } // namespace blink | 457 } // namespace blink |
| 462 | 458 |
| 463 #endif // HTMLMediaElement_h | 459 #endif // HTMLMediaElement_h |
| OLD | NEW |