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 11 matching lines...) Expand all Loading... |
22 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 22 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
25 */ | 25 */ |
26 | 26 |
27 #ifndef HTMLMediaElement_h | 27 #ifndef HTMLMediaElement_h |
28 #define HTMLMediaElement_h | 28 #define HTMLMediaElement_h |
29 | 29 |
30 #include <memory> | 30 #include <memory> |
31 #include "bindings/core/v8/ActiveScriptWrappable.h" | 31 #include "bindings/core/v8/ActiveScriptWrappable.h" |
| 32 #include "bindings/core/v8/Nullable.h" |
32 #include "bindings/core/v8/ScriptPromise.h" | 33 #include "bindings/core/v8/ScriptPromise.h" |
33 #include "bindings/core/v8/TraceWrapperMember.h" | 34 #include "bindings/core/v8/TraceWrapperMember.h" |
34 #include "core/CoreExport.h" | 35 #include "core/CoreExport.h" |
35 #include "core/dom/ExceptionCode.h" | 36 #include "core/dom/ExceptionCode.h" |
36 #include "core/dom/SuspendableObject.h" | 37 #include "core/dom/SuspendableObject.h" |
37 #include "core/events/GenericEventQueue.h" | 38 #include "core/events/GenericEventQueue.h" |
38 #include "core/html/HTMLElement.h" | 39 #include "core/html/HTMLElement.h" |
39 #include "core/html/HTMLMediaElementControlsList.h" | 40 #include "core/html/HTMLMediaElementControlsList.h" |
40 #include "core/html/track/TextTrack.h" | 41 #include "core/html/track/TextTrack.h" |
41 #include "platform/Supplementable.h" | 42 #include "platform/Supplementable.h" |
(...skipping 717 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
759 | 760 |
760 inline bool isHTMLMediaElement(const HTMLElement& element) { | 761 inline bool isHTMLMediaElement(const HTMLElement& element) { |
761 return isHTMLAudioElement(element) || isHTMLVideoElement(element); | 762 return isHTMLAudioElement(element) || isHTMLVideoElement(element); |
762 } | 763 } |
763 | 764 |
764 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); | 765 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); |
765 | 766 |
766 } // namespace blink | 767 } // namespace blink |
767 | 768 |
768 #endif // HTMLMediaElement_h | 769 #endif // HTMLMediaElement_h |
OLD | NEW |