| 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 332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 343 virtual void willStopBeingFullscreenElement() OVERRIDE FINAL; | 343 virtual void willStopBeingFullscreenElement() OVERRIDE FINAL; |
| 344 virtual bool isInteractiveContent() const OVERRIDE FINAL; | 344 virtual bool isInteractiveContent() const OVERRIDE FINAL; |
| 345 virtual void defaultEventHandler(Event*) OVERRIDE FINAL; | 345 virtual void defaultEventHandler(Event*) OVERRIDE FINAL; |
| 346 | 346 |
| 347 // ActiveDOMObject functions. | 347 // ActiveDOMObject functions. |
| 348 virtual void stop() OVERRIDE FINAL; | 348 virtual void stop() OVERRIDE FINAL; |
| 349 | 349 |
| 350 virtual void updateDisplayState() { } | 350 virtual void updateDisplayState() { } |
| 351 | 351 |
| 352 void setReadyState(ReadyState); | 352 void setReadyState(ReadyState); |
| 353 void setNetworkState(MediaPlayer::NetworkState); | 353 void setNetworkState(blink::WebMediaPlayer::NetworkState); |
| 354 | 354 |
| 355 virtual void mediaPlayerNetworkStateChanged() OVERRIDE FINAL; | 355 virtual void mediaPlayerNetworkStateChanged() OVERRIDE FINAL; |
| 356 virtual void mediaPlayerReadyStateChanged() OVERRIDE FINAL; | 356 virtual void mediaPlayerReadyStateChanged() OVERRIDE FINAL; |
| 357 virtual void mediaPlayerTimeChanged() OVERRIDE FINAL; | 357 virtual void mediaPlayerTimeChanged() OVERRIDE FINAL; |
| 358 virtual void mediaPlayerDurationChanged() OVERRIDE FINAL; | 358 virtual void mediaPlayerDurationChanged() OVERRIDE FINAL; |
| 359 virtual void mediaPlayerPlaybackStateChanged() OVERRIDE FINAL; | 359 virtual void mediaPlayerPlaybackStateChanged() OVERRIDE FINAL; |
| 360 virtual void mediaPlayerRequestFullscreen() OVERRIDE FINAL; | 360 virtual void mediaPlayerRequestFullscreen() OVERRIDE FINAL; |
| 361 virtual void mediaPlayerRequestSeek(double) OVERRIDE FINAL; | 361 virtual void mediaPlayerRequestSeek(double) OVERRIDE FINAL; |
| 362 virtual void mediaPlayerRepaint() OVERRIDE FINAL; | 362 virtual void mediaPlayerRepaint() OVERRIDE FINAL; |
| 363 virtual void mediaPlayerSizeChanged() OVERRIDE FINAL; | 363 virtual void mediaPlayerSizeChanged() OVERRIDE FINAL; |
| (...skipping 30 matching lines...) Expand all Loading... |
| 394 void clearMediaPlayerAndAudioSourceProviderClientWithoutLocking(); | 394 void clearMediaPlayerAndAudioSourceProviderClientWithoutLocking(); |
| 395 bool havePotentialSourceChild(); | 395 bool havePotentialSourceChild(); |
| 396 void noneSupported(); | 396 void noneSupported(); |
| 397 void mediaEngineError(PassRefPtrWillBeRawPtr<MediaError>); | 397 void mediaEngineError(PassRefPtrWillBeRawPtr<MediaError>); |
| 398 void cancelPendingEventsAndCallbacks(); | 398 void cancelPendingEventsAndCallbacks(); |
| 399 void waitForSourceChange(); | 399 void waitForSourceChange(); |
| 400 void prepareToPlay(); | 400 void prepareToPlay(); |
| 401 | 401 |
| 402 KURL selectNextSourceChild(ContentType*, String* keySystem, InvalidURLAction
); | 402 KURL selectNextSourceChild(ContentType*, String* keySystem, InvalidURLAction
); |
| 403 | 403 |
| 404 void mediaLoadingFailed(MediaPlayer::NetworkState); | 404 void mediaLoadingFailed(blink::WebMediaPlayer::NetworkState); |
| 405 | 405 |
| 406 // deferred loading (preload=none) | 406 // deferred loading (preload=none) |
| 407 bool loadIsDeferred() const; | 407 bool loadIsDeferred() const; |
| 408 void deferLoad(); | 408 void deferLoad(); |
| 409 void cancelDeferredLoad(); | 409 void cancelDeferredLoad(); |
| 410 void startDeferredLoad(); | 410 void startDeferredLoad(); |
| 411 void executeDeferredLoad(); | 411 void executeDeferredLoad(); |
| 412 void deferredLoadTimerFired(Timer<HTMLMediaElement>*); | 412 void deferredLoadTimerFired(Timer<HTMLMediaElement>*); |
| 413 | 413 |
| 414 void updateActiveTextTrackCues(double); | 414 void updateActiveTextTrackCues(double); |
| (...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 631 inline bool isHTMLMediaElement(const HTMLElement& element) | 631 inline bool isHTMLMediaElement(const HTMLElement& element) |
| 632 { | 632 { |
| 633 return isHTMLAudioElement(element) || isHTMLVideoElement(element); | 633 return isHTMLAudioElement(element) || isHTMLVideoElement(element); |
| 634 } | 634 } |
| 635 | 635 |
| 636 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); | 636 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); |
| 637 | 637 |
| 638 } //namespace | 638 } //namespace |
| 639 | 639 |
| 640 #endif | 640 #endif |
| OLD | NEW |