| 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 USING_GARBAGE_COLLECTED_MIXIN(HTMLMediaElement); | 83 USING_GARBAGE_COLLECTED_MIXIN(HTMLMediaElement); |
| 84 USING_PRE_FINALIZER(HTMLMediaElement, dispose); | 84 USING_PRE_FINALIZER(HTMLMediaElement, dispose); |
| 85 | 85 |
| 86 public: | 86 public: |
| 87 static WebMimeRegistry::SupportsType supportsType(const ContentType&); | 87 static WebMimeRegistry::SupportsType supportsType(const ContentType&); |
| 88 | 88 |
| 89 enum class RecordMetricsBehavior { DoNotRecord, DoRecord }; | 89 enum class RecordMetricsBehavior { DoNotRecord, DoRecord }; |
| 90 | 90 |
| 91 static void setMediaStreamRegistry(URLRegistry*); | 91 static void setMediaStreamRegistry(URLRegistry*); |
| 92 static bool isMediaStreamURL(const String& url); | 92 static bool isMediaStreamURL(const String& url); |
| 93 static bool isHLSURL(const KURL&); |
| 93 | 94 |
| 94 DECLARE_VIRTUAL_TRACE(); | 95 DECLARE_VIRTUAL_TRACE(); |
| 95 | 96 |
| 96 DECLARE_VIRTUAL_TRACE_WRAPPERS(); | 97 DECLARE_VIRTUAL_TRACE_WRAPPERS(); |
| 97 | 98 |
| 98 void clearWeakMembers(Visitor*); | 99 void clearWeakMembers(Visitor*); |
| 99 WebMediaPlayer* webMediaPlayer() const { return m_webMediaPlayer.get(); } | 100 WebMediaPlayer* webMediaPlayer() const { return m_webMediaPlayer.get(); } |
| 100 | 101 |
| 101 // Returns true if the loaded media has a video track. | 102 // Returns true if the loaded media has a video track. |
| 102 // Note that even an audio element can have video track in cases such as | 103 // Note that even an audio element can have video track in cases such as |
| (...skipping 622 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 725 | 726 |
| 726 inline bool isHTMLMediaElement(const HTMLElement& element) { | 727 inline bool isHTMLMediaElement(const HTMLElement& element) { |
| 727 return isHTMLAudioElement(element) || isHTMLVideoElement(element); | 728 return isHTMLAudioElement(element) || isHTMLVideoElement(element); |
| 728 } | 729 } |
| 729 | 730 |
| 730 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); | 731 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); |
| 731 | 732 |
| 732 } // namespace blink | 733 } // namespace blink |
| 733 | 734 |
| 734 #endif // HTMLMediaElement_h | 735 #endif // HTMLMediaElement_h |
| OLD | NEW |