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 17 matching lines...) Expand all Loading... |
28 #define HTMLMediaElement_h | 28 #define HTMLMediaElement_h |
29 | 29 |
30 #include "bindings/core/v8/ActiveScriptWrappable.h" | 30 #include "bindings/core/v8/ActiveScriptWrappable.h" |
31 #include "bindings/core/v8/ScriptPromise.h" | 31 #include "bindings/core/v8/ScriptPromise.h" |
32 #include "bindings/core/v8/TraceWrapperMember.h" | 32 #include "bindings/core/v8/TraceWrapperMember.h" |
33 #include "core/CoreExport.h" | 33 #include "core/CoreExport.h" |
34 #include "core/dom/ExceptionCode.h" | 34 #include "core/dom/ExceptionCode.h" |
35 #include "core/dom/SuspendableObject.h" | 35 #include "core/dom/SuspendableObject.h" |
36 #include "core/events/GenericEventQueue.h" | 36 #include "core/events/GenericEventQueue.h" |
37 #include "core/html/HTMLElement.h" | 37 #include "core/html/HTMLElement.h" |
| 38 #include "core/html/HTMLMediaElementControlsList.h" |
38 #include "core/html/track/TextTrack.h" | 39 #include "core/html/track/TextTrack.h" |
39 #include "platform/Supplementable.h" | 40 #include "platform/Supplementable.h" |
40 #include "platform/WebTaskRunner.h" | 41 #include "platform/WebTaskRunner.h" |
41 #include "platform/audio/AudioSourceProvider.h" | 42 #include "platform/audio/AudioSourceProvider.h" |
42 #include "platform/network/mime/MIMETypeRegistry.h" | 43 #include "platform/network/mime/MIMETypeRegistry.h" |
43 #include "public/platform/WebAudioSourceProviderClient.h" | 44 #include "public/platform/WebAudioSourceProviderClient.h" |
44 #include "public/platform/WebMediaPlayerClient.h" | 45 #include "public/platform/WebMediaPlayerClient.h" |
45 #include <memory> | 46 #include <memory> |
46 | 47 |
47 namespace blink { | 48 namespace blink { |
48 | 49 |
49 class AudioSourceProviderClient; | 50 class AudioSourceProviderClient; |
50 class AudioTrack; | 51 class AudioTrack; |
51 class AudioTrackList; | 52 class AudioTrackList; |
52 class AutoplayUmaHelper; | 53 class AutoplayUmaHelper; |
53 class ContentType; | 54 class ContentType; |
54 class CueTimeline; | 55 class CueTimeline; |
| 56 class DOMTokenList; |
55 class ElementVisibilityObserver; | 57 class ElementVisibilityObserver; |
56 class EnumerationHistogram; | 58 class EnumerationHistogram; |
57 class Event; | 59 class Event; |
58 class ExceptionState; | 60 class ExceptionState; |
59 class HTMLSourceElement; | 61 class HTMLSourceElement; |
60 class HTMLTrackElement; | 62 class HTMLTrackElement; |
61 class KURL; | 63 class KURL; |
62 class MediaControls; | 64 class MediaControls; |
63 class MediaError; | 65 class MediaError; |
64 class MediaStreamDescriptor; | 66 class MediaStreamDescriptor; |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
191 unsigned webkitAudioDecodedByteCount() const; | 193 unsigned webkitAudioDecodedByteCount() const; |
192 unsigned webkitVideoDecodedByteCount() const; | 194 unsigned webkitVideoDecodedByteCount() const; |
193 | 195 |
194 // media source extensions | 196 // media source extensions |
195 void closeMediaSource(); | 197 void closeMediaSource(); |
196 void durationChanged(double duration, bool requestSeek); | 198 void durationChanged(double duration, bool requestSeek); |
197 | 199 |
198 // controls | 200 // controls |
199 bool shouldShowControls( | 201 bool shouldShowControls( |
200 const RecordMetricsBehavior = RecordMetricsBehavior::DoNotRecord) const; | 202 const RecordMetricsBehavior = RecordMetricsBehavior::DoNotRecord) const; |
| 203 DOMTokenList* controlsList() const; |
| 204 void controlsListValueWasSet(); |
201 double volume() const; | 205 double volume() const; |
202 void setVolume(double, ExceptionState& = ASSERT_NO_EXCEPTION); | 206 void setVolume(double, ExceptionState& = ASSERT_NO_EXCEPTION); |
203 bool muted() const; | 207 bool muted() const; |
204 void setMuted(bool); | 208 void setMuted(bool); |
205 | 209 |
206 void togglePlayState(); | 210 void togglePlayState(); |
207 | 211 |
208 AudioTrackList& audioTracks(); | 212 AudioTrackList& audioTracks(); |
209 void audioTrackChanged(AudioTrack*); | 213 void audioTrackChanged(AudioTrack*); |
210 | 214 |
(...skipping 528 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
739 Member<AutoplayUmaHelper> m_autoplayUmaHelper; | 743 Member<AutoplayUmaHelper> m_autoplayUmaHelper; |
740 | 744 |
741 WebRemotePlaybackClient* m_remotePlaybackClient; | 745 WebRemotePlaybackClient* m_remotePlaybackClient; |
742 | 746 |
743 // class AutoplayVisibilityObserver; | 747 // class AutoplayVisibilityObserver; |
744 Member<ElementVisibilityObserver> m_autoplayVisibilityObserver; | 748 Member<ElementVisibilityObserver> m_autoplayVisibilityObserver; |
745 | 749 |
746 IntRect m_currentIntersectRect; | 750 IntRect m_currentIntersectRect; |
747 | 751 |
748 Member<MediaControls> m_mediaControls; | 752 Member<MediaControls> m_mediaControls; |
| 753 Member<HTMLMediaElementControlsList> m_controlsList; |
749 | 754 |
750 static URLRegistry* s_mediaStreamRegistry; | 755 static URLRegistry* s_mediaStreamRegistry; |
751 }; | 756 }; |
752 | 757 |
753 inline bool isHTMLMediaElement(const HTMLElement& element) { | 758 inline bool isHTMLMediaElement(const HTMLElement& element) { |
754 return isHTMLAudioElement(element) || isHTMLVideoElement(element); | 759 return isHTMLAudioElement(element) || isHTMLVideoElement(element); |
755 } | 760 } |
756 | 761 |
757 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); | 762 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); |
758 | 763 |
759 } // namespace blink | 764 } // namespace blink |
760 | 765 |
761 #endif // HTMLMediaElement_h | 766 #endif // HTMLMediaElement_h |
OLD | NEW |