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 422 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
433 bool potentiallyPlaying() const; | 433 bool potentiallyPlaying() const; |
434 bool endedPlayback() const; | 434 bool endedPlayback() const; |
435 bool stoppedDueToErrors() const; | 435 bool stoppedDueToErrors() const; |
436 bool couldPlayIfEnoughData() const; | 436 bool couldPlayIfEnoughData() const; |
437 | 437 |
438 void setShouldDelayLoadEvent(bool); | 438 void setShouldDelayLoadEvent(bool); |
439 void invalidateCachedTime(); | 439 void invalidateCachedTime(); |
440 void refreshCachedTime() const; | 440 void refreshCachedTime() const; |
441 | 441 |
442 bool hasMediaControls() const; | 442 bool hasMediaControls() const; |
443 bool createMediaControls(); | 443 void ensureMediaControls(); |
444 void configureMediaControls(); | 444 void configureMediaControls(); |
445 | 445 |
446 virtual void* preDispatchEventHandler(Event*) override final; | 446 virtual void* preDispatchEventHandler(Event*) override final; |
447 | 447 |
448 void changeNetworkStateFromLoadingToIdle(); | 448 void changeNetworkStateFromLoadingToIdle(); |
449 | 449 |
450 const AtomicString& mediaGroup() const; | 450 const AtomicString& mediaGroup() const; |
451 void setMediaGroup(const AtomicString&); | 451 void setMediaGroup(const AtomicString&); |
452 void updateMediaController(); | 452 void updateMediaController(); |
453 bool isBlocked() const; | 453 bool isBlocked() const; |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
631 inline bool isHTMLMediaElement(const HTMLElement& element) | 631 inline bool isHTMLMediaElement(const HTMLElement& element) |
632 { | 632 { |
633 return isHTMLAudioElement(element) || isHTMLVideoElement(element); | 633 return isHTMLAudioElement(element) || isHTMLVideoElement(element); |
634 } | 634 } |
635 | 635 |
636 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); | 636 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); |
637 | 637 |
638 } // namespace blink | 638 } // namespace blink |
639 | 639 |
640 #endif // HTMLMediaElement_h | 640 #endif // HTMLMediaElement_h |
OLD | NEW |