| 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 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 // statistics | 144 // statistics |
| 145 unsigned webkitAudioDecodedByteCount() const; | 145 unsigned webkitAudioDecodedByteCount() const; |
| 146 unsigned webkitVideoDecodedByteCount() const; | 146 unsigned webkitVideoDecodedByteCount() const; |
| 147 | 147 |
| 148 // media source extensions | 148 // media source extensions |
| 149 void closeMediaSource(); | 149 void closeMediaSource(); |
| 150 void durationChanged(double duration, bool requestSeek); | 150 void durationChanged(double duration, bool requestSeek); |
| 151 | 151 |
| 152 // controls | 152 // controls |
| 153 bool shouldShowControls() const; | 153 bool shouldShowControls() const; |
| 154 void recordShowControls() const; |
| 154 double volume() const; | 155 double volume() const; |
| 155 void setVolume(double, ExceptionState&); | 156 void setVolume(double, ExceptionState&); |
| 156 bool muted() const; | 157 bool muted() const; |
| 157 void setMuted(bool); | 158 void setMuted(bool); |
| 158 | 159 |
| 159 void togglePlayState(); | 160 void togglePlayState(); |
| 160 | 161 |
| 161 AudioTrackList& audioTracks(); | 162 AudioTrackList& audioTracks(); |
| 162 void audioTrackChanged(); | 163 void audioTrackChanged(); |
| 163 | 164 |
| (...skipping 456 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 620 inline bool isHTMLMediaElement(const HTMLElement& element) | 621 inline bool isHTMLMediaElement(const HTMLElement& element) |
| 621 { | 622 { |
| 622 return isHTMLAudioElement(element) || isHTMLVideoElement(element); | 623 return isHTMLAudioElement(element) || isHTMLVideoElement(element); |
| 623 } | 624 } |
| 624 | 625 |
| 625 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); | 626 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); |
| 626 | 627 |
| 627 } // namespace blink | 628 } // namespace blink |
| 628 | 629 |
| 629 #endif // HTMLMediaElement_h | 630 #endif // HTMLMediaElement_h |
| OLD | NEW |