| 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 329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 340 WebMediaPlayer::TrackId addVideoTrack(const WebString&, WebMediaPlayerClient
::VideoTrackKind, const WebString&, const WebString&, bool) final; | 340 WebMediaPlayer::TrackId addVideoTrack(const WebString&, WebMediaPlayerClient
::VideoTrackKind, const WebString&, const WebString&, bool) final; |
| 341 void removeVideoTrack(WebMediaPlayer::TrackId) final; | 341 void removeVideoTrack(WebMediaPlayer::TrackId) final; |
| 342 void addTextTrack(WebInbandTextTrack*) final; | 342 void addTextTrack(WebInbandTextTrack*) final; |
| 343 void removeTextTrack(WebInbandTextTrack*) final; | 343 void removeTextTrack(WebInbandTextTrack*) final; |
| 344 void mediaSourceOpened(WebMediaSource*) final; | 344 void mediaSourceOpened(WebMediaSource*) final; |
| 345 void requestSeek(double) final; | 345 void requestSeek(double) final; |
| 346 void remoteRouteAvailabilityChanged(bool) final; | 346 void remoteRouteAvailabilityChanged(bool) final; |
| 347 void connectedToRemoteDevice() final; | 347 void connectedToRemoteDevice() final; |
| 348 void disconnectedFromRemoteDevice() final; | 348 void disconnectedFromRemoteDevice() final; |
| 349 void cancelledRemotePlaybackRequest() final; | 349 void cancelledRemotePlaybackRequest() final; |
| 350 void requestReload(const WebURL&) final; |
| 350 | 351 |
| 351 void loadTimerFired(Timer<HTMLMediaElement>*); | 352 void loadTimerFired(Timer<HTMLMediaElement>*); |
| 352 void progressEventTimerFired(Timer<HTMLMediaElement>*); | 353 void progressEventTimerFired(Timer<HTMLMediaElement>*); |
| 353 void playbackProgressTimerFired(Timer<HTMLMediaElement>*); | 354 void playbackProgressTimerFired(Timer<HTMLMediaElement>*); |
| 354 void startPlaybackProgressTimer(); | 355 void startPlaybackProgressTimer(); |
| 355 void startProgressEventTimer(); | 356 void startProgressEventTimer(); |
| 356 void stopPeriodicTimers(); | 357 void stopPeriodicTimers(); |
| 357 | 358 |
| 358 void seek(double time); | 359 void seek(double time); |
| 359 void finishSeek(); | 360 void finishSeek(); |
| 360 void checkIfSeekNeeded(); | 361 void checkIfSeekNeeded(); |
| 361 void addPlayedRange(double start, double end); | 362 void addPlayedRange(double start, double end); |
| 362 | 363 |
| 363 void scheduleEvent(const AtomicString& eventName); // FIXME: Rename to sched
uleNamedEvent for clarity. | 364 void scheduleEvent(const AtomicString& eventName); // FIXME: Rename to sched
uleNamedEvent for clarity. |
| 364 | 365 |
| 365 // loading | 366 // loading |
| 366 void invokeLoadAlgorithm(); | 367 void invokeLoadAlgorithm(); |
| 367 void invokeResourceSelectionAlgorithm(); | 368 void invokeResourceSelectionAlgorithm(); |
| 368 void loadInternal(); | 369 void loadInternal(); |
| 369 void selectMediaResource(); | 370 void selectMediaResource(); |
| 370 void loadResource(const WebMediaPlayerSource&, ContentType&); | 371 void loadResource(const WebMediaPlayerSource&, const ContentType&); |
| 371 void startPlayerLoad(); | 372 void startPlayerLoad(const KURL& playerProvidedUrl = KURL()); |
| 372 void setPlayerPreload(); | 373 void setPlayerPreload(); |
| 373 WebMediaPlayer::LoadType loadType() const; | 374 WebMediaPlayer::LoadType loadType() const; |
| 374 void scheduleNextSourceChild(); | 375 void scheduleNextSourceChild(); |
| 375 void loadSourceFromObject(); | 376 void loadSourceFromObject(); |
| 376 void loadSourceFromAttribute(); | 377 void loadSourceFromAttribute(); |
| 377 void loadNextSourceChild(); | 378 void loadNextSourceChild(); |
| 378 void clearMediaPlayer(); | 379 void clearMediaPlayer(); |
| 379 void clearMediaPlayerAndAudioSourceProviderClientWithoutLocking(); | 380 void clearMediaPlayerAndAudioSourceProviderClientWithoutLocking(); |
| 380 bool havePotentialSourceChild(); | 381 bool havePotentialSourceChild(); |
| 381 void noneSupported(); | 382 void noneSupported(); |
| (...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 670 inline bool isHTMLMediaElement(const HTMLElement& element) | 671 inline bool isHTMLMediaElement(const HTMLElement& element) |
| 671 { | 672 { |
| 672 return isHTMLAudioElement(element) || isHTMLVideoElement(element); | 673 return isHTMLAudioElement(element) || isHTMLVideoElement(element); |
| 673 } | 674 } |
| 674 | 675 |
| 675 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); | 676 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); |
| 676 | 677 |
| 677 } // namespace blink | 678 } // namespace blink |
| 678 | 679 |
| 679 #endif // HTMLMediaElement_h | 680 #endif // HTMLMediaElement_h |
| OLD | NEW |