| 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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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, bool requestSeek); | 158 void durationChanged(double duration, bool requestSeek); |
| 159 | 159 |
| 160 // controls | 160 // controls |
| 161 bool controls() const; | 161 bool shouldShowControls() const; |
| 162 void setControls(bool); | |
| 163 double volume() const; | 162 double volume() const; |
| 164 void setVolume(double, ExceptionState&); | 163 void setVolume(double, ExceptionState&); |
| 165 bool muted() const; | 164 bool muted() const; |
| 166 void setMuted(bool); | 165 void setMuted(bool); |
| 167 | 166 |
| 168 // play/pause toggling that uses the media controller if present. togglePlay
StateWillPlay() is | 167 // play/pause toggling that uses the media controller if present. togglePlay
StateWillPlay() is |
| 169 // true if togglePlayState() will call play() or unpause() on the media elem
ent or controller. | 168 // true if togglePlayState() will call play() or unpause() on the media elem
ent or controller. |
| 170 bool togglePlayStateWillPlay() const; | 169 bool togglePlayStateWillPlay() const; |
| 171 void togglePlayState(); | 170 void togglePlayState(); |
| 172 | 171 |
| (...skipping 449 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 622 inline bool isHTMLMediaElement(const HTMLElement& element) | 621 inline bool isHTMLMediaElement(const HTMLElement& element) |
| 623 { | 622 { |
| 624 return isHTMLAudioElement(element) || isHTMLVideoElement(element); | 623 return isHTMLAudioElement(element) || isHTMLVideoElement(element); |
| 625 } | 624 } |
| 626 | 625 |
| 627 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); | 626 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); |
| 628 | 627 |
| 629 } //namespace | 628 } //namespace |
| 630 | 629 |
| 631 #endif | 630 #endif |
| OLD | NEW |