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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 PassRefPtr<MediaError> error() const; | 102 PassRefPtr<MediaError> error() const; |
103 | 103 |
104 // network state | 104 // network state |
105 void setSrc(const AtomicString&); | 105 void setSrc(const AtomicString&); |
106 const KURL& currentSrc() const { return m_currentSrc; } | 106 const KURL& currentSrc() const { return m_currentSrc; } |
107 | 107 |
108 enum NetworkState { NETWORK_EMPTY, NETWORK_IDLE, NETWORK_LOADING, NETWORK_NO
_SOURCE }; | 108 enum NetworkState { NETWORK_EMPTY, NETWORK_IDLE, NETWORK_LOADING, NETWORK_NO
_SOURCE }; |
109 NetworkState networkState() const; | 109 NetworkState networkState() const; |
110 | 110 |
111 String preload() const; | 111 String preload() const; |
112 void setPreload(const String&); | 112 void setPreload(const AtomicString&); |
113 | 113 |
114 PassRefPtr<TimeRanges> buffered() const; | 114 PassRefPtr<TimeRanges> buffered() const; |
115 void load(); | 115 void load(); |
116 String canPlayType(const String& mimeType, const String& keySystem = String(
), const KURL& = KURL()) const; | 116 String canPlayType(const String& mimeType, const String& keySystem = String(
), const KURL& = KURL()) const; |
117 | 117 |
118 // ready state | 118 // ready state |
119 ReadyState readyState() const; | 119 ReadyState readyState() const; |
120 bool seeking() const; | 120 bool seeking() const; |
121 | 121 |
122 // playback state | 122 // playback state |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 void setMuted(bool); | 170 void setMuted(bool); |
171 | 171 |
172 void togglePlayState(); | 172 void togglePlayState(); |
173 void beginScrubbing(); | 173 void beginScrubbing(); |
174 void endScrubbing(); | 174 void endScrubbing(); |
175 | 175 |
176 bool canPlay() const; | 176 bool canPlay() const; |
177 | 177 |
178 double percentLoaded() const; | 178 double percentLoaded() const; |
179 | 179 |
180 PassRefPtr<TextTrack> addTextTrack(const String& kind, const String& label,
const String& language, ExceptionState&); | 180 PassRefPtr<TextTrack> addTextTrack(const AtomicString& kind, const AtomicStr
ing& label, const AtomicString& language, ExceptionState&); |
181 PassRefPtr<TextTrack> addTextTrack(const String& kind, const String& label,
ExceptionState& exceptionState) { return addTextTrack(kind, label, emptyString()
, exceptionState); } | 181 PassRefPtr<TextTrack> addTextTrack(const AtomicString& kind, const AtomicStr
ing& label, ExceptionState& exceptionState) { return addTextTrack(kind, label, e
mptyAtom, exceptionState); } |
182 PassRefPtr<TextTrack> addTextTrack(const String& kind, ExceptionState& excep
tionState) { return addTextTrack(kind, emptyString(), emptyString(), exceptionSt
ate); } | 182 PassRefPtr<TextTrack> addTextTrack(const AtomicString& kind, ExceptionState&
exceptionState) { return addTextTrack(kind, emptyAtom, emptyAtom, exceptionStat
e); } |
183 | 183 |
184 TextTrackList* textTracks(); | 184 TextTrackList* textTracks(); |
185 CueList currentlyActiveCues() const { return m_currentlyActiveCues; } | 185 CueList currentlyActiveCues() const { return m_currentlyActiveCues; } |
186 | 186 |
187 void addTrack(TextTrack*); | 187 void addTrack(TextTrack*); |
188 void removeTrack(TextTrack*); | 188 void removeTrack(TextTrack*); |
189 void removeAllInbandTracks(); | 189 void removeAllInbandTracks(); |
190 void closeCaptionTracksChanged(); | 190 void closeCaptionTracksChanged(); |
191 void notifyMediaPlayerOfTextTrackChanges(); | 191 void notifyMediaPlayerOfTextTrackChanges(); |
192 | 192 |
(...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
583 inline bool isHTMLMediaElement(const Node& node) | 583 inline bool isHTMLMediaElement(const Node& node) |
584 { | 584 { |
585 return node.isElementNode() && toElement(node).isMediaElement(); | 585 return node.isElementNode() && toElement(node).isMediaElement(); |
586 } | 586 } |
587 | 587 |
588 DEFINE_NODE_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); | 588 DEFINE_NODE_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); |
589 | 589 |
590 } //namespace | 590 } //namespace |
591 | 591 |
592 #endif | 592 #endif |
OLD | NEW |