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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 class TextTrackList; | 68 class TextTrackList; |
69 class TimeRanges; | 69 class TimeRanges; |
70 class URLRegistry; | 70 class URLRegistry; |
71 class VideoTrack; | 71 class VideoTrack; |
72 class VideoTrackList; | 72 class VideoTrackList; |
73 class WebAudioSourceProvider; | 73 class WebAudioSourceProvider; |
74 class WebInbandTextTrack; | 74 class WebInbandTextTrack; |
75 class WebLayer; | 75 class WebLayer; |
76 class WebRemotePlaybackClient; | 76 class WebRemotePlaybackClient; |
77 | 77 |
78 class CORE_EXPORT HTMLMediaElement : public HTMLElement, | 78 class CORE_EXPORT HTMLMediaElement |
79 public Supplementable<HTMLMediaElement>, | 79 : public HTMLElement, |
80 public ActiveScriptWrappable, | 80 public Supplementable<HTMLMediaElement>, |
81 public SuspendableObject, | 81 public ActiveScriptWrappable<HTMLMediaElement>, |
82 private WebMediaPlayerClient { | 82 public SuspendableObject, |
| 83 private WebMediaPlayerClient { |
83 DEFINE_WRAPPERTYPEINFO(); | 84 DEFINE_WRAPPERTYPEINFO(); |
84 USING_GARBAGE_COLLECTED_MIXIN(HTMLMediaElement); | 85 USING_GARBAGE_COLLECTED_MIXIN(HTMLMediaElement); |
85 USING_PRE_FINALIZER(HTMLMediaElement, dispose); | 86 USING_PRE_FINALIZER(HTMLMediaElement, dispose); |
86 | 87 |
87 public: | 88 public: |
88 static MIMETypeRegistry::SupportsType supportsType(const ContentType&); | 89 static MIMETypeRegistry::SupportsType supportsType(const ContentType&); |
89 | 90 |
90 enum class RecordMetricsBehavior { DoNotRecord, DoRecord }; | 91 enum class RecordMetricsBehavior { DoNotRecord, DoRecord }; |
91 | 92 |
92 static void setMediaStreamRegistry(URLRegistry*); | 93 static void setMediaStreamRegistry(URLRegistry*); |
(...skipping 655 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
748 | 749 |
749 inline bool isHTMLMediaElement(const HTMLElement& element) { | 750 inline bool isHTMLMediaElement(const HTMLElement& element) { |
750 return isHTMLAudioElement(element) || isHTMLVideoElement(element); | 751 return isHTMLAudioElement(element) || isHTMLVideoElement(element); |
751 } | 752 } |
752 | 753 |
753 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); | 754 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); |
754 | 755 |
755 } // namespace blink | 756 } // namespace blink |
756 | 757 |
757 #endif // HTMLMediaElement_h | 758 #endif // HTMLMediaElement_h |
OLD | NEW |