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 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
196 double lastSeekTime() const { return m_lastSeekTime; } | 196 double lastSeekTime() const { return m_lastSeekTime; } |
197 void textTrackReadyStateChanged(TextTrack*); | 197 void textTrackReadyStateChanged(TextTrack*); |
198 | 198 |
199 void textTrackModeChanged(TextTrack*); | 199 void textTrackModeChanged(TextTrack*); |
200 | 200 |
201 // EventTarget function. | 201 // EventTarget function. |
202 // Both Node (via HTMLElement) and ActiveDOMObject define this method, which | 202 // Both Node (via HTMLElement) and ActiveDOMObject define this method, which |
203 // causes an ambiguity error at compile time. This class's constructor | 203 // causes an ambiguity error at compile time. This class's constructor |
204 // ensures that both implementations return document, so return the result | 204 // ensures that both implementations return document, so return the result |
205 // of one of them here. | 205 // of one of them here. |
206 using HTMLElement::executionContext; | 206 using HTMLElement::getExecutionContext; |
207 | 207 |
208 bool hasSingleSecurityOrigin() const { return webMediaPlayer() && webMediaPl
ayer()->hasSingleSecurityOrigin(); } | 208 bool hasSingleSecurityOrigin() const { return webMediaPlayer() && webMediaPl
ayer()->hasSingleSecurityOrigin(); } |
209 | 209 |
210 bool isFullscreen() const; | 210 bool isFullscreen() const; |
211 void enterFullscreen(); | 211 void enterFullscreen(); |
212 void exitFullscreen(); | 212 void exitFullscreen(); |
213 virtual bool usesOverlayFullscreenVideo() const { return false; } | 213 virtual bool usesOverlayFullscreenVideo() const { return false; } |
214 | 214 |
215 bool hasClosedCaptions() const; | 215 bool hasClosedCaptions() const; |
216 bool closedCaptionsVisible() const; | 216 bool closedCaptionsVisible() const; |
(...skipping 12 matching lines...) Expand all Loading... |
229 | 229 |
230 void sourceWasRemoved(HTMLSourceElement*); | 230 void sourceWasRemoved(HTMLSourceElement*); |
231 void sourceWasAdded(HTMLSourceElement*); | 231 void sourceWasAdded(HTMLSourceElement*); |
232 | 232 |
233 // ActiveDOMObject functions. | 233 // ActiveDOMObject functions. |
234 bool hasPendingActivity() const final; | 234 bool hasPendingActivity() const final; |
235 | 235 |
236 AudioSourceProviderClient* audioSourceNode() { return m_audioSourceNode; } | 236 AudioSourceProviderClient* audioSourceNode() { return m_audioSourceNode; } |
237 void setAudioSourceNode(AudioSourceProviderClient*); | 237 void setAudioSourceNode(AudioSourceProviderClient*); |
238 | 238 |
239 AudioSourceProvider& audioSourceProvider() { return m_audioSourceProvider; } | 239 AudioSourceProvider& getAudioSourceProvider() { return m_audioSourceProvider
; } |
240 | 240 |
241 enum InvalidURLAction { DoNothing, Complain }; | 241 enum InvalidURLAction { DoNothing, Complain }; |
242 bool isSafeToLoadURL(const KURL&, InvalidURLAction); | 242 bool isSafeToLoadURL(const KURL&, InvalidURLAction); |
243 | 243 |
244 // Checks to see if current media data is CORS-same-origin as the | 244 // Checks to see if current media data is CORS-same-origin as the |
245 // specified origin. | 245 // specified origin. |
246 bool isMediaDataCORSSameOrigin(SecurityOrigin*) const; | 246 bool isMediaDataCORSSameOrigin(SecurityOrigin*) const; |
247 | 247 |
248 void scheduleEvent(PassRefPtrWillBeRawPtr<Event>); | 248 void scheduleEvent(PassRefPtrWillBeRawPtr<Event>); |
249 void scheduleTimeupdateEvent(bool periodicEvent); | 249 void scheduleTimeupdateEvent(bool periodicEvent); |
(...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
643 inline bool isHTMLMediaElement(const HTMLElement& element) | 643 inline bool isHTMLMediaElement(const HTMLElement& element) |
644 { | 644 { |
645 return isHTMLAudioElement(element) || isHTMLVideoElement(element); | 645 return isHTMLAudioElement(element) || isHTMLVideoElement(element); |
646 } | 646 } |
647 | 647 |
648 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); | 648 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); |
649 | 649 |
650 } // namespace blink | 650 } // namespace blink |
651 | 651 |
652 #endif // HTMLMediaElement_h | 652 #endif // HTMLMediaElement_h |
OLD | NEW |