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 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
324 | 324 |
325 WebRemotePlaybackClient* RemotePlaybackClient() { | 325 WebRemotePlaybackClient* RemotePlaybackClient() { |
326 return remote_playback_client_; | 326 return remote_playback_client_; |
327 } | 327 } |
328 const WebRemotePlaybackClient* RemotePlaybackClient() const { | 328 const WebRemotePlaybackClient* RemotePlaybackClient() const { |
329 return remote_playback_client_; | 329 return remote_playback_client_; |
330 } | 330 } |
331 | 331 |
332 const AutoplayPolicy& GetAutoplayPolicy() const { return *autoplay_policy_; } | 332 const AutoplayPolicy& GetAutoplayPolicy() const { return *autoplay_policy_; } |
333 | 333 |
| 334 WebMediaPlayer::LoadType GetLoadType() const; |
| 335 |
334 protected: | 336 protected: |
335 HTMLMediaElement(const QualifiedName&, Document&); | 337 HTMLMediaElement(const QualifiedName&, Document&); |
336 ~HTMLMediaElement() override; | 338 ~HTMLMediaElement() override; |
337 void Dispose(); | 339 void Dispose(); |
338 | 340 |
339 void ParseAttribute(const AttributeModificationParams&) override; | 341 void ParseAttribute(const AttributeModificationParams&) override; |
340 void FinishParsingChildren() final; | 342 void FinishParsingChildren() final; |
341 bool IsURLAttribute(const Attribute&) const override; | 343 bool IsURLAttribute(const Attribute&) const override; |
342 void AttachLayoutTree(const AttachContext& = AttachContext()) override; | 344 void AttachLayoutTree(const AttachContext& = AttachContext()) override; |
343 | 345 |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
436 void ScheduleEvent(const AtomicString& event_name); | 438 void ScheduleEvent(const AtomicString& event_name); |
437 | 439 |
438 // loading | 440 // loading |
439 void InvokeLoadAlgorithm(); | 441 void InvokeLoadAlgorithm(); |
440 void InvokeResourceSelectionAlgorithm(); | 442 void InvokeResourceSelectionAlgorithm(); |
441 void LoadInternal(); | 443 void LoadInternal(); |
442 void SelectMediaResource(); | 444 void SelectMediaResource(); |
443 void LoadResource(const WebMediaPlayerSource&, const String& content_type); | 445 void LoadResource(const WebMediaPlayerSource&, const String& content_type); |
444 void StartPlayerLoad(); | 446 void StartPlayerLoad(); |
445 void SetPlayerPreload(); | 447 void SetPlayerPreload(); |
446 WebMediaPlayer::LoadType GetLoadType() const; | |
447 void ScheduleNextSourceChild(); | 448 void ScheduleNextSourceChild(); |
448 void LoadSourceFromObject(); | 449 void LoadSourceFromObject(); |
449 void LoadSourceFromAttribute(); | 450 void LoadSourceFromAttribute(); |
450 void LoadNextSourceChild(); | 451 void LoadNextSourceChild(); |
451 void ClearMediaPlayer(); | 452 void ClearMediaPlayer(); |
452 void ClearMediaPlayerAndAudioSourceProviderClientWithoutLocking(); | 453 void ClearMediaPlayerAndAudioSourceProviderClientWithoutLocking(); |
453 bool HavePotentialSourceChild(); | 454 bool HavePotentialSourceChild(); |
454 void NoneSupported(const String&); | 455 void NoneSupported(const String&); |
455 void MediaEngineError(MediaError*); | 456 void MediaEngineError(MediaError*); |
456 void CancelPendingEventsAndCallbacks(); | 457 void CancelPendingEventsAndCallbacks(); |
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
739 | 740 |
740 inline bool IsHTMLMediaElement(const HTMLElement& element) { | 741 inline bool IsHTMLMediaElement(const HTMLElement& element) { |
741 return isHTMLAudioElement(element) || isHTMLVideoElement(element); | 742 return isHTMLAudioElement(element) || isHTMLVideoElement(element); |
742 } | 743 } |
743 | 744 |
744 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); | 745 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); |
745 | 746 |
746 } // namespace blink | 747 } // namespace blink |
747 | 748 |
748 #endif // HTMLMediaElement_h | 749 #endif // HTMLMediaElement_h |
OLD | NEW |