| 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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 | 97 // If HTMLMediaElement is using MediaTracks (either placeholder or provided |
| 98 // by the page). | 98 // by the page). |
| 99 static bool mediaTracksEnabledInternally(); | 99 static bool mediaTracksEnabledInternally(); |
| 100 | 100 |
| 101 // Notify the HTMLMediaElement that the media controls settings have changed |
| 102 // for the given document. |
| 103 static void onMediaControlsEnabledChange(Document*); |
| 104 |
| 101 DECLARE_VIRTUAL_TRACE(); | 105 DECLARE_VIRTUAL_TRACE(); |
| 102 | 106 |
| 103 DECLARE_VIRTUAL_TRACE_WRAPPERS(); | 107 DECLARE_VIRTUAL_TRACE_WRAPPERS(); |
| 104 | 108 |
| 105 void clearWeakMembers(Visitor*); | 109 void clearWeakMembers(Visitor*); |
| 106 WebMediaPlayer* webMediaPlayer() const { return m_webMediaPlayer.get(); } | 110 WebMediaPlayer* webMediaPlayer() const { return m_webMediaPlayer.get(); } |
| 107 | 111 |
| 108 // Returns true if the loaded media has a video track. | 112 // Returns true if the loaded media has a video track. |
| 109 // Note that even an audio element can have video track in cases such as | 113 // Note that even an audio element can have video track in cases such as |
| 110 // <audio src="video.webm">, in which case this function will return true. | 114 // <audio src="video.webm">, in which case this function will return true. |
| (...skipping 639 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 750 | 754 |
| 751 inline bool isHTMLMediaElement(const HTMLElement& element) { | 755 inline bool isHTMLMediaElement(const HTMLElement& element) { |
| 752 return isHTMLAudioElement(element) || isHTMLVideoElement(element); | 756 return isHTMLAudioElement(element) || isHTMLVideoElement(element); |
| 753 } | 757 } |
| 754 | 758 |
| 755 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); | 759 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); |
| 756 | 760 |
| 757 } // namespace blink | 761 } // namespace blink |
| 758 | 762 |
| 759 #endif // HTMLMediaElement_h | 763 #endif // HTMLMediaElement_h |
| OLD | NEW |