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 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
224 void exitFullscreen(); | 224 void exitFullscreen(); |
225 | 225 |
226 bool hasClosedCaptions() const; | 226 bool hasClosedCaptions() const; |
227 bool closedCaptionsVisible() const; | 227 bool closedCaptionsVisible() const; |
228 void setClosedCaptionsVisible(bool); | 228 void setClosedCaptionsVisible(bool); |
229 | 229 |
230 void remoteRouteAvailabilityChanged(bool); | 230 void remoteRouteAvailabilityChanged(bool); |
231 void connectedToRemoteDevice(); | 231 void connectedToRemoteDevice(); |
232 void disconnectedFromRemoteDevice(); | 232 void disconnectedFromRemoteDevice(); |
233 | 233 |
| 234 // Returns the MediaControls, or null if they have not been added yet. |
| 235 // Note that this can be non-null even if there is no controls attribute. |
234 MediaControls* mediaControls() const; | 236 MediaControls* mediaControls() const; |
235 | 237 |
236 void sourceWasRemoved(HTMLSourceElement*); | 238 void sourceWasRemoved(HTMLSourceElement*); |
237 void sourceWasAdded(HTMLSourceElement*); | 239 void sourceWasAdded(HTMLSourceElement*); |
238 | 240 |
239 // ActiveDOMObject functions. | 241 // ActiveDOMObject functions. |
240 virtual bool hasPendingActivity() const override final; | 242 virtual bool hasPendingActivity() const override final; |
241 virtual void contextDestroyed() override final; | 243 virtual void contextDestroyed() override final; |
242 | 244 |
243 #if ENABLE(WEB_AUDIO) | 245 #if ENABLE(WEB_AUDIO) |
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
403 // Generally the presence of the loop attribute should be considered to mean
playback | 405 // Generally the presence of the loop attribute should be considered to mean
playback |
404 // has not "ended", as "ended" and "looping" are mutually exclusive. See | 406 // has not "ended", as "ended" and "looping" are mutually exclusive. See |
405 // https://html.spec.whatwg.org/multipage/embedded-content.html#ended-playba
ck | 407 // https://html.spec.whatwg.org/multipage/embedded-content.html#ended-playba
ck |
406 enum class LoopCondition { Included, Ignored }; | 408 enum class LoopCondition { Included, Ignored }; |
407 bool endedPlayback(LoopCondition = LoopCondition::Included) const; | 409 bool endedPlayback(LoopCondition = LoopCondition::Included) const; |
408 | 410 |
409 void setShouldDelayLoadEvent(bool); | 411 void setShouldDelayLoadEvent(bool); |
410 void invalidateCachedTime(); | 412 void invalidateCachedTime(); |
411 void refreshCachedTime() const; | 413 void refreshCachedTime() const; |
412 | 414 |
413 bool hasMediaControls() const; | |
414 void ensureMediaControls(); | 415 void ensureMediaControls(); |
415 void configureMediaControls(); | 416 void configureMediaControls(); |
416 | 417 |
417 virtual void* preDispatchEventHandler(Event*) override final; | 418 virtual void* preDispatchEventHandler(Event*) override final; |
418 | 419 |
419 void changeNetworkStateFromLoadingToIdle(); | 420 void changeNetworkStateFromLoadingToIdle(); |
420 | 421 |
421 const AtomicString& mediaGroup() const; | 422 const AtomicString& mediaGroup() const; |
422 void setMediaGroup(const AtomicString&); | 423 void setMediaGroup(const AtomicString&); |
423 void updateMediaController(); | 424 void updateMediaController(); |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
579 inline bool isHTMLMediaElement(const HTMLElement& element) | 580 inline bool isHTMLMediaElement(const HTMLElement& element) |
580 { | 581 { |
581 return isHTMLAudioElement(element) || isHTMLVideoElement(element); | 582 return isHTMLAudioElement(element) || isHTMLVideoElement(element); |
582 } | 583 } |
583 | 584 |
584 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); | 585 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); |
585 | 586 |
586 } // namespace blink | 587 } // namespace blink |
587 | 588 |
588 #endif // HTMLMediaElement_h | 589 #endif // HTMLMediaElement_h |
OLD | NEW |