| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All rights | 2 * Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All rights |
| 3 * reserved. | 3 * reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 | 87 |
| 88 public: | 88 public: |
| 89 static MIMETypeRegistry::SupportsType supportsType(const ContentType&); | 89 static MIMETypeRegistry::SupportsType supportsType(const ContentType&); |
| 90 | 90 |
| 91 enum class RecordMetricsBehavior { DoNotRecord, DoRecord }; | 91 enum class RecordMetricsBehavior { DoNotRecord, DoRecord }; |
| 92 | 92 |
| 93 static void setMediaStreamRegistry(URLRegistry*); | 93 static void setMediaStreamRegistry(URLRegistry*); |
| 94 static bool isMediaStreamURL(const String& url); | 94 static bool isMediaStreamURL(const String& url); |
| 95 static bool isHLSURL(const KURL&); | 95 static bool isHLSURL(const KURL&); |
| 96 | 96 |
| 97 // If HTMLMediaElement is using MediaTracks (either placeholder or provided |
| 98 // by the page). |
| 99 static bool mediaTracksEnabledInternally(); |
| 100 |
| 97 DECLARE_VIRTUAL_TRACE(); | 101 DECLARE_VIRTUAL_TRACE(); |
| 98 | 102 |
| 99 DECLARE_VIRTUAL_TRACE_WRAPPERS(); | 103 DECLARE_VIRTUAL_TRACE_WRAPPERS(); |
| 100 | 104 |
| 101 void clearWeakMembers(Visitor*); | 105 void clearWeakMembers(Visitor*); |
| 102 WebMediaPlayer* webMediaPlayer() const { return m_webMediaPlayer.get(); } | 106 WebMediaPlayer* webMediaPlayer() const { return m_webMediaPlayer.get(); } |
| 103 | 107 |
| 104 // Returns true if the loaded media has a video track. | 108 // Returns true if the loaded media has a video track. |
| 105 // Note that even an audio element can have video track in cases such as | 109 // Note that even an audio element can have video track in cases such as |
| 106 // <audio src="video.webm">, in which case this function will return true. | 110 // <audio src="video.webm">, in which case this function will return true. |
| (...skipping 634 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 741 | 745 |
| 742 inline bool isHTMLMediaElement(const HTMLElement& element) { | 746 inline bool isHTMLMediaElement(const HTMLElement& element) { |
| 743 return isHTMLAudioElement(element) || isHTMLVideoElement(element); | 747 return isHTMLAudioElement(element) || isHTMLVideoElement(element); |
| 744 } | 748 } |
| 745 | 749 |
| 746 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); | 750 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); |
| 747 | 751 |
| 748 } // namespace blink | 752 } // namespace blink |
| 749 | 753 |
| 750 #endif // HTMLMediaElement_h | 754 #endif // HTMLMediaElement_h |
| OLD | NEW |