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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 class AutoplayUmaHelper; | 54 class AutoplayUmaHelper; |
55 class ContentType; | 55 class ContentType; |
56 class CueTimeline; | 56 class CueTimeline; |
57 class ElementVisibilityObserver; | 57 class ElementVisibilityObserver; |
58 class EnumerationHistogram; | 58 class EnumerationHistogram; |
59 class Event; | 59 class Event; |
60 class ExceptionState; | 60 class ExceptionState; |
61 class HTMLMediaElementControlsList; | 61 class HTMLMediaElementControlsList; |
62 class HTMLSourceElement; | 62 class HTMLSourceElement; |
63 class HTMLTrackElement; | 63 class HTMLTrackElement; |
| 64 class JSONObject; |
64 class KURL; | 65 class KURL; |
65 class MediaError; | 66 class MediaError; |
66 class MediaStreamDescriptor; | 67 class MediaStreamDescriptor; |
67 class HTMLMediaSource; | 68 class HTMLMediaSource; |
68 class ScriptState; | 69 class ScriptState; |
69 class TextTrackContainer; | 70 class TextTrackContainer; |
70 class TextTrackList; | 71 class TextTrackList; |
71 class TimeRanges; | 72 class TimeRanges; |
72 class URLRegistry; | 73 class URLRegistry; |
73 class VideoTrack; | 74 class VideoTrack; |
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
441 void StartPlayerLoad(const KURL& player_provided_url = KURL()); | 442 void StartPlayerLoad(const KURL& player_provided_url = KURL()); |
442 void SetPlayerPreload(); | 443 void SetPlayerPreload(); |
443 WebMediaPlayer::LoadType GetLoadType() const; | 444 WebMediaPlayer::LoadType GetLoadType() const; |
444 void ScheduleNextSourceChild(); | 445 void ScheduleNextSourceChild(); |
445 void LoadSourceFromObject(); | 446 void LoadSourceFromObject(); |
446 void LoadSourceFromAttribute(); | 447 void LoadSourceFromAttribute(); |
447 void LoadNextSourceChild(); | 448 void LoadNextSourceChild(); |
448 void ClearMediaPlayer(); | 449 void ClearMediaPlayer(); |
449 void ClearMediaPlayerAndAudioSourceProviderClientWithoutLocking(); | 450 void ClearMediaPlayerAndAudioSourceProviderClientWithoutLocking(); |
450 bool HavePotentialSourceChild(); | 451 bool HavePotentialSourceChild(); |
451 void NoneSupported(); | 452 void NoneSupported(std::unique_ptr<JSONObject>); |
452 void MediaEngineError(MediaError*); | 453 void MediaEngineError(MediaError*); |
453 void CancelPendingEventsAndCallbacks(); | 454 void CancelPendingEventsAndCallbacks(); |
454 void WaitForSourceChange(); | 455 void WaitForSourceChange(); |
455 void SetIgnorePreloadNone(); | 456 void SetIgnorePreloadNone(); |
456 | 457 |
457 KURL SelectNextSourceChild(String* content_type, InvalidURLAction); | 458 KURL SelectNextSourceChild(String* content_type, InvalidURLAction); |
458 | 459 |
459 void MediaLoadingFailed(WebMediaPlayer::NetworkState); | 460 void MediaLoadingFailed(WebMediaPlayer::NetworkState, |
| 461 std::unique_ptr<JSONObject>); |
460 | 462 |
461 // deferred loading (preload=none) | 463 // deferred loading (preload=none) |
462 bool LoadIsDeferred() const; | 464 bool LoadIsDeferred() const; |
463 void DeferLoad(); | 465 void DeferLoad(); |
464 void CancelDeferredLoad(); | 466 void CancelDeferredLoad(); |
465 void StartDeferredLoad(); | 467 void StartDeferredLoad(); |
466 void ExecuteDeferredLoad(); | 468 void ExecuteDeferredLoad(); |
467 void DeferredLoadTimerFired(TimerBase*); | 469 void DeferredLoadTimerFired(TimerBase*); |
468 | 470 |
469 void MarkCaptionAndSubtitleTracksAsUnconfigured(); | 471 void MarkCaptionAndSubtitleTracksAsUnconfigured(); |
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
769 | 771 |
770 inline bool IsHTMLMediaElement(const HTMLElement& element) { | 772 inline bool IsHTMLMediaElement(const HTMLElement& element) { |
771 return isHTMLAudioElement(element) || isHTMLVideoElement(element); | 773 return isHTMLAudioElement(element) || isHTMLVideoElement(element); |
772 } | 774 } |
773 | 775 |
774 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); | 776 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); |
775 | 777 |
776 } // namespace blink | 778 } // namespace blink |
777 | 779 |
778 #endif // HTMLMediaElement_h | 780 #endif // HTMLMediaElement_h |
OLD | NEW |