OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All rights
reserved. | 2 * Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All rights
reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 27 matching lines...) Expand all Loading... |
38 #include "platform/Supplementable.h" | 38 #include "platform/Supplementable.h" |
39 #include "platform/audio/AudioSourceProvider.h" | 39 #include "platform/audio/AudioSourceProvider.h" |
40 #include "public/platform/WebAudioSourceProviderClient.h" | 40 #include "public/platform/WebAudioSourceProviderClient.h" |
41 #include "public/platform/WebMediaPlayerClient.h" | 41 #include "public/platform/WebMediaPlayerClient.h" |
42 #include "public/platform/WebMimeRegistry.h" | 42 #include "public/platform/WebMimeRegistry.h" |
43 #include <memory> | 43 #include <memory> |
44 | 44 |
45 namespace blink { | 45 namespace blink { |
46 | 46 |
47 class AudioSourceProviderClient; | 47 class AudioSourceProviderClient; |
| 48 class AudioTrack; |
48 class AudioTrackList; | 49 class AudioTrackList; |
49 class AutoplayUmaHelper; | 50 class AutoplayUmaHelper; |
50 class ContentType; | 51 class ContentType; |
51 class CueTimeline; | 52 class CueTimeline; |
52 class ElementVisibilityObserver; | 53 class ElementVisibilityObserver; |
53 class EnumerationHistogram; | 54 class EnumerationHistogram; |
54 class Event; | 55 class Event; |
55 class ExceptionState; | 56 class ExceptionState; |
56 class HTMLSourceElement; | 57 class HTMLSourceElement; |
57 class HTMLTrackElement; | 58 class HTMLTrackElement; |
58 class KURL; | 59 class KURL; |
59 class MediaControls; | 60 class MediaControls; |
60 class MediaError; | 61 class MediaError; |
61 class MediaStreamDescriptor; | 62 class MediaStreamDescriptor; |
62 class HTMLMediaSource; | 63 class HTMLMediaSource; |
63 class ScriptState; | 64 class ScriptState; |
64 class TextTrackContainer; | 65 class TextTrackContainer; |
65 class TextTrackList; | 66 class TextTrackList; |
66 class TimeRanges; | 67 class TimeRanges; |
67 class URLRegistry; | 68 class URLRegistry; |
| 69 class VideoTrack; |
68 class VideoTrackList; | 70 class VideoTrackList; |
69 class WebAudioSourceProvider; | 71 class WebAudioSourceProvider; |
70 class WebInbandTextTrack; | 72 class WebInbandTextTrack; |
71 class WebLayer; | 73 class WebLayer; |
72 class WebRemotePlaybackClient; | 74 class WebRemotePlaybackClient; |
73 | 75 |
74 class CORE_EXPORT HTMLMediaElement : public HTMLElement, public Supplementable<H
TMLMediaElement>, public ActiveScriptWrappable, public ActiveDOMObject, private
WebMediaPlayerClient { | 76 class CORE_EXPORT HTMLMediaElement : public HTMLElement, public Supplementable<H
TMLMediaElement>, public ActiveScriptWrappable, public ActiveDOMObject, private
WebMediaPlayerClient { |
75 DEFINE_WRAPPERTYPEINFO(); | 77 DEFINE_WRAPPERTYPEINFO(); |
76 USING_GARBAGE_COLLECTED_MIXIN(HTMLMediaElement); | 78 USING_GARBAGE_COLLECTED_MIXIN(HTMLMediaElement); |
77 USING_PRE_FINALIZER(HTMLMediaElement, dispose); | 79 USING_PRE_FINALIZER(HTMLMediaElement, dispose); |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 // controls | 179 // controls |
178 bool shouldShowControls(const RecordMetricsBehavior = RecordMetricsBehavior:
:DoNotRecord) const; | 180 bool shouldShowControls(const RecordMetricsBehavior = RecordMetricsBehavior:
:DoNotRecord) const; |
179 double volume() const; | 181 double volume() const; |
180 void setVolume(double, ExceptionState&); | 182 void setVolume(double, ExceptionState&); |
181 bool muted() const; | 183 bool muted() const; |
182 void setMuted(bool); | 184 void setMuted(bool); |
183 | 185 |
184 void togglePlayState(); | 186 void togglePlayState(); |
185 | 187 |
186 AudioTrackList& audioTracks(); | 188 AudioTrackList& audioTracks(); |
187 void audioTrackChanged(WebMediaPlayer::TrackId, bool enabled); | 189 void audioTrackChanged(AudioTrack*, bool enabled); |
188 | 190 |
189 VideoTrackList& videoTracks(); | 191 VideoTrackList& videoTracks(); |
190 void selectedVideoTrackChanged(WebMediaPlayer::TrackId*); | 192 void selectedVideoTrackChanged(VideoTrack*, bool selected); |
191 | 193 |
192 TextTrack* addTextTrack(const AtomicString& kind, const AtomicString& label,
const AtomicString& language, ExceptionState&); | 194 TextTrack* addTextTrack(const AtomicString& kind, const AtomicString& label,
const AtomicString& language, ExceptionState&); |
193 | 195 |
194 TextTrackList* textTracks(); | 196 TextTrackList* textTracks(); |
195 CueTimeline& cueTimeline(); | 197 CueTimeline& cueTimeline(); |
196 | 198 |
197 void addTextTrack(TextTrack*); | 199 void addTextTrack(TextTrack*); |
198 void removeTextTrack(TextTrack*); | 200 void removeTextTrack(TextTrack*); |
199 void textTracksChanged(); | 201 void textTracksChanged(); |
200 void notifyMediaPlayerOfTextTrackChanges(); | 202 void notifyMediaPlayerOfTextTrackChanges(); |
(...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
682 inline bool isHTMLMediaElement(const HTMLElement& element) | 684 inline bool isHTMLMediaElement(const HTMLElement& element) |
683 { | 685 { |
684 return isHTMLAudioElement(element) || isHTMLVideoElement(element); | 686 return isHTMLAudioElement(element) || isHTMLVideoElement(element); |
685 } | 687 } |
686 | 688 |
687 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); | 689 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); |
688 | 690 |
689 } // namespace blink | 691 } // namespace blink |
690 | 692 |
691 #endif // HTMLMediaElement_h | 693 #endif // HTMLMediaElement_h |
OLD | NEW |