| 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 399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 410 void RequestSeek(double) final; | 410 void RequestSeek(double) final; |
| 411 void RemoteRouteAvailabilityChanged(WebRemotePlaybackAvailability) final; | 411 void RemoteRouteAvailabilityChanged(WebRemotePlaybackAvailability) final; |
| 412 void ConnectedToRemoteDevice() final; | 412 void ConnectedToRemoteDevice() final; |
| 413 void DisconnectedFromRemoteDevice() final; | 413 void DisconnectedFromRemoteDevice() final; |
| 414 void CancelledRemotePlaybackRequest() final; | 414 void CancelledRemotePlaybackRequest() final; |
| 415 void RemotePlaybackStarted() final; | 415 void RemotePlaybackStarted() final; |
| 416 void OnBecamePersistentVideo(bool) override{}; | 416 void OnBecamePersistentVideo(bool) override{}; |
| 417 bool HasSelectedVideoTrack() final; | 417 bool HasSelectedVideoTrack() final; |
| 418 WebMediaPlayer::TrackId GetSelectedVideoTrackId() final; | 418 WebMediaPlayer::TrackId GetSelectedVideoTrackId() final; |
| 419 bool IsAutoplayingMuted() final; | 419 bool IsAutoplayingMuted() final; |
| 420 void RequestReload(const WebURL&) final; | |
| 421 void ActivateViewportIntersectionMonitoring(bool) final; | 420 void ActivateViewportIntersectionMonitoring(bool) final; |
| 422 | 421 |
| 423 void LoadTimerFired(TimerBase*); | 422 void LoadTimerFired(TimerBase*); |
| 424 void ProgressEventTimerFired(TimerBase*); | 423 void ProgressEventTimerFired(TimerBase*); |
| 425 void PlaybackProgressTimerFired(TimerBase*); | 424 void PlaybackProgressTimerFired(TimerBase*); |
| 426 void CheckViewportIntersectionTimerFired(TimerBase*); | 425 void CheckViewportIntersectionTimerFired(TimerBase*); |
| 427 void StartPlaybackProgressTimer(); | 426 void StartPlaybackProgressTimer(); |
| 428 void StartProgressEventTimer(); | 427 void StartProgressEventTimer(); |
| 429 void StopPeriodicTimers(); | 428 void StopPeriodicTimers(); |
| 430 | 429 |
| 431 void Seek(double time); | 430 void Seek(double time); |
| 432 void FinishSeek(); | 431 void FinishSeek(); |
| 433 void CheckIfSeekNeeded(); | 432 void CheckIfSeekNeeded(); |
| 434 void AddPlayedRange(double start, double end); | 433 void AddPlayedRange(double start, double end); |
| 435 | 434 |
| 436 // FIXME: Rename to scheduleNamedEvent for clarity. | 435 // FIXME: Rename to scheduleNamedEvent for clarity. |
| 437 void ScheduleEvent(const AtomicString& event_name); | 436 void ScheduleEvent(const AtomicString& event_name); |
| 438 | 437 |
| 439 // loading | 438 // loading |
| 440 void InvokeLoadAlgorithm(); | 439 void InvokeLoadAlgorithm(); |
| 441 void InvokeResourceSelectionAlgorithm(); | 440 void InvokeResourceSelectionAlgorithm(); |
| 442 void LoadInternal(); | 441 void LoadInternal(); |
| 443 void SelectMediaResource(); | 442 void SelectMediaResource(); |
| 444 void LoadResource(const WebMediaPlayerSource&, const String& content_type); | 443 void LoadResource(const WebMediaPlayerSource&, const String& content_type); |
| 445 void StartPlayerLoad(const KURL& player_provided_url = KURL()); | 444 void StartPlayerLoad(); |
| 446 void SetPlayerPreload(); | 445 void SetPlayerPreload(); |
| 447 WebMediaPlayer::LoadType GetLoadType() const; | 446 WebMediaPlayer::LoadType GetLoadType() const; |
| 448 void ScheduleNextSourceChild(); | 447 void ScheduleNextSourceChild(); |
| 449 void LoadSourceFromObject(); | 448 void LoadSourceFromObject(); |
| 450 void LoadSourceFromAttribute(); | 449 void LoadSourceFromAttribute(); |
| 451 void LoadNextSourceChild(); | 450 void LoadNextSourceChild(); |
| 452 void ClearMediaPlayer(); | 451 void ClearMediaPlayer(); |
| 453 void ClearMediaPlayerAndAudioSourceProviderClientWithoutLocking(); | 452 void ClearMediaPlayerAndAudioSourceProviderClientWithoutLocking(); |
| 454 bool HavePotentialSourceChild(); | 453 bool HavePotentialSourceChild(); |
| 455 void NoneSupported(const String&); | 454 void NoneSupported(const String&); |
| (...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 739 | 738 |
| 740 inline bool IsHTMLMediaElement(const HTMLElement& element) { | 739 inline bool IsHTMLMediaElement(const HTMLElement& element) { |
| 741 return isHTMLAudioElement(element) || isHTMLVideoElement(element); | 740 return isHTMLAudioElement(element) || isHTMLVideoElement(element); |
| 742 } | 741 } |
| 743 | 742 |
| 744 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); | 743 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); |
| 745 | 744 |
| 746 } // namespace blink | 745 } // namespace blink |
| 747 | 746 |
| 748 #endif // HTMLMediaElement_h | 747 #endif // HTMLMediaElement_h |
| OLD | NEW |