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 410 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
421 void addPlayedRange(double start, double end); | 421 void addPlayedRange(double start, double end); |
422 | 422 |
423 // FIXME: Rename to scheduleNamedEvent for clarity. | 423 // FIXME: Rename to scheduleNamedEvent for clarity. |
424 void scheduleEvent(const AtomicString& eventName); | 424 void scheduleEvent(const AtomicString& eventName); |
425 | 425 |
426 // loading | 426 // loading |
427 void invokeLoadAlgorithm(); | 427 void invokeLoadAlgorithm(); |
428 void invokeResourceSelectionAlgorithm(); | 428 void invokeResourceSelectionAlgorithm(); |
429 void loadInternal(); | 429 void loadInternal(); |
430 void selectMediaResource(); | 430 void selectMediaResource(); |
431 void loadResource(const WebMediaPlayerSource&, const ContentType&); | 431 void loadResource(const WebMediaPlayerSource&, const String& contentType); |
432 void startPlayerLoad(const KURL& playerProvidedUrl = KURL()); | 432 void startPlayerLoad(const KURL& playerProvidedUrl = KURL()); |
433 void setPlayerPreload(); | 433 void setPlayerPreload(); |
434 WebMediaPlayer::LoadType loadType() const; | 434 WebMediaPlayer::LoadType loadType() const; |
435 void scheduleNextSourceChild(); | 435 void scheduleNextSourceChild(); |
436 void loadSourceFromObject(); | 436 void loadSourceFromObject(); |
437 void loadSourceFromAttribute(); | 437 void loadSourceFromAttribute(); |
438 void loadNextSourceChild(); | 438 void loadNextSourceChild(); |
439 void clearMediaPlayer(); | 439 void clearMediaPlayer(); |
440 void clearMediaPlayerAndAudioSourceProviderClientWithoutLocking(); | 440 void clearMediaPlayerAndAudioSourceProviderClientWithoutLocking(); |
441 bool havePotentialSourceChild(); | 441 bool havePotentialSourceChild(); |
442 void noneSupported(); | 442 void noneSupported(); |
443 void mediaEngineError(MediaError*); | 443 void mediaEngineError(MediaError*); |
444 void cancelPendingEventsAndCallbacks(); | 444 void cancelPendingEventsAndCallbacks(); |
445 void waitForSourceChange(); | 445 void waitForSourceChange(); |
446 void setIgnorePreloadNone(); | 446 void setIgnorePreloadNone(); |
447 | 447 |
448 KURL selectNextSourceChild(ContentType*, InvalidURLAction); | 448 KURL selectNextSourceChild(String* contentType, InvalidURLAction); |
449 | 449 |
450 void mediaLoadingFailed(WebMediaPlayer::NetworkState); | 450 void mediaLoadingFailed(WebMediaPlayer::NetworkState); |
451 | 451 |
452 // deferred loading (preload=none) | 452 // deferred loading (preload=none) |
453 bool loadIsDeferred() const; | 453 bool loadIsDeferred() const; |
454 void deferLoad(); | 454 void deferLoad(); |
455 void cancelDeferredLoad(); | 455 void cancelDeferredLoad(); |
456 void startDeferredLoad(); | 456 void startDeferredLoad(); |
457 void executeDeferredLoad(); | 457 void executeDeferredLoad(); |
458 void deferredLoadTimerFired(TimerBase*); | 458 void deferredLoadTimerFired(TimerBase*); |
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
761 | 761 |
762 inline bool isHTMLMediaElement(const HTMLElement& element) { | 762 inline bool isHTMLMediaElement(const HTMLElement& element) { |
763 return isHTMLAudioElement(element) || isHTMLVideoElement(element); | 763 return isHTMLAudioElement(element) || isHTMLVideoElement(element); |
764 } | 764 } |
765 | 765 |
766 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); | 766 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); |
767 | 767 |
768 } // namespace blink | 768 } // namespace blink |
769 | 769 |
770 #endif // HTMLMediaElement_h | 770 #endif // HTMLMediaElement_h |
OLD | NEW |