| 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 | 83 |
| 84 bool supportsSave() const; | 84 bool supportsSave() const; |
| 85 | 85 |
| 86 WebLayer* platformLayer() const; | 86 WebLayer* platformLayer() const; |
| 87 | 87 |
| 88 enum DelayedActionType { | 88 enum DelayedActionType { |
| 89 LoadMediaResource = 1 << 0, | 89 LoadMediaResource = 1 << 0, |
| 90 LoadTextTrackResource = 1 << 1, | 90 LoadTextTrackResource = 1 << 1, |
| 91 TextTrackChangesNotification = 1 << 2 | 91 TextTrackChangesNotification = 1 << 2 |
| 92 }; | 92 }; |
| 93 void scheduleDelayedAction(DelayedActionType); | 93 void scheduleTextTrackResourceLoad(); |
| 94 | 94 |
| 95 bool hasRemoteRoutes() const { return m_remoteRoutesAvailable; } | 95 bool hasRemoteRoutes() const { return m_remoteRoutesAvailable; } |
| 96 bool isPlayingRemotely() const { return m_playingRemotely; } | 96 bool isPlayingRemotely() const { return m_playingRemotely; } |
| 97 | 97 |
| 98 // error state | 98 // error state |
| 99 MediaError* error() const; | 99 MediaError* error() const; |
| 100 | 100 |
| 101 // network state | 101 // network state |
| 102 void setSrc(const AtomicString&); | 102 void setSrc(const AtomicString&); |
| 103 const KURL& currentSrc() const { return m_currentSrc; } | 103 const KURL& currentSrc() const { return m_currentSrc; } |
| (...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 331 void stopPeriodicTimers(); | 331 void stopPeriodicTimers(); |
| 332 | 332 |
| 333 void seek(double time); | 333 void seek(double time); |
| 334 void finishSeek(); | 334 void finishSeek(); |
| 335 void checkIfSeekNeeded(); | 335 void checkIfSeekNeeded(); |
| 336 void addPlayedRange(double start, double end); | 336 void addPlayedRange(double start, double end); |
| 337 | 337 |
| 338 void scheduleEvent(const AtomicString& eventName); // FIXME: Rename to sched
uleNamedEvent for clarity. | 338 void scheduleEvent(const AtomicString& eventName); // FIXME: Rename to sched
uleNamedEvent for clarity. |
| 339 | 339 |
| 340 // loading | 340 // loading |
| 341 void invokeLoadAlgorithm(); |
| 341 void prepareForLoad(); | 342 void prepareForLoad(); |
| 343 void invokeResourceSelectionAlgorithm(); |
| 342 void loadInternal(); | 344 void loadInternal(); |
| 343 void selectMediaResource(); | 345 void selectMediaResource(); |
| 344 void loadResource(const KURL&, ContentType&, const String& keySystem); | 346 void loadResource(const KURL&, ContentType&, const String& keySystem); |
| 345 void startPlayerLoad(); | 347 void startPlayerLoad(); |
| 346 void setPlayerPreload(); | 348 void setPlayerPreload(); |
| 347 WebMediaPlayer::LoadType loadType() const; | 349 WebMediaPlayer::LoadType loadType() const; |
| 348 void scheduleNextSourceChild(); | 350 void scheduleNextSourceChild(); |
| 349 void loadNextSourceChild(); | 351 void loadNextSourceChild(); |
| 350 void clearMediaPlayer(int flags); | 352 void resetMediaElement(int flags); |
| 351 void clearMediaPlayerAndAudioSourceProviderClientWithoutLocking(); | 353 void clearMediaPlayerAndAudioSourceProviderClientWithoutLocking(); |
| 352 bool havePotentialSourceChild(); | 354 bool havePotentialSourceChild(); |
| 353 void noneSupported(); | 355 void noneSupported(); |
| 354 void mediaEngineError(MediaError*); | 356 void mediaEngineError(MediaError*); |
| 355 void cancelPendingEventsAndCallbacks(); | 357 void cancelPendingEventsAndCallbacks(); |
| 356 void waitForSourceChange(); | 358 void waitForSourceChange(); |
| 357 void prepareToPlay(); | 359 void prepareToPlay(); |
| 358 | 360 |
| 359 KURL selectNextSourceChild(ContentType*, String* keySystem, InvalidURLAction
); | 361 KURL selectNextSourceChild(ContentType*, String* keySystem, InvalidURLAction
); |
| 360 | 362 |
| (...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 624 inline bool isHTMLMediaElement(const HTMLElement& element) | 626 inline bool isHTMLMediaElement(const HTMLElement& element) |
| 625 { | 627 { |
| 626 return isHTMLAudioElement(element) || isHTMLVideoElement(element); | 628 return isHTMLAudioElement(element) || isHTMLVideoElement(element); |
| 627 } | 629 } |
| 628 | 630 |
| 629 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); | 631 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); |
| 630 | 632 |
| 631 } // namespace blink | 633 } // namespace blink |
| 632 | 634 |
| 633 #endif // HTMLMediaElement_h | 635 #endif // HTMLMediaElement_h |
| OLD | NEW |