| 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 348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 359 , m_autoplayMediaCounted(false) | 359 , m_autoplayMediaCounted(false) |
| 360 , m_inOverlayFullscreenVideo(false) | 360 , m_inOverlayFullscreenVideo(false) |
| 361 , m_audioTracks(AudioTrackList::create(*this)) | 361 , m_audioTracks(AudioTrackList::create(*this)) |
| 362 , m_videoTracks(VideoTrackList::create(*this)) | 362 , m_videoTracks(VideoTrackList::create(*this)) |
| 363 , m_textTracks(nullptr) | 363 , m_textTracks(nullptr) |
| 364 , m_playPromiseResolveTask(CancellableTaskFactory::create(this, &HTMLMediaEl
ement::resolvePlayPromises)) | 364 , m_playPromiseResolveTask(CancellableTaskFactory::create(this, &HTMLMediaEl
ement::resolvePlayPromises)) |
| 365 , m_playPromiseRejectTask(CancellableTaskFactory::create(this, &HTMLMediaEle
ment::rejectPlayPromises)) | 365 , m_playPromiseRejectTask(CancellableTaskFactory::create(this, &HTMLMediaEle
ment::rejectPlayPromises)) |
| 366 , m_audioSourceNode(nullptr) | 366 , m_audioSourceNode(nullptr) |
| 367 , m_autoplayHelper(*this) | 367 , m_autoplayHelper(*this) |
| 368 , m_remotePlaybackClient(nullptr) | 368 , m_remotePlaybackClient(nullptr) |
| 369 #if !ENABLE(OILPAN) |
| 370 , m_weakPtrFactory(this) |
| 371 #endif |
| 369 { | 372 { |
| 370 #if ENABLE(OILPAN) | 373 #if ENABLE(OILPAN) |
| 371 ThreadState::current()->registerPreFinalizer(this); | 374 ThreadState::current()->registerPreFinalizer(this); |
| 372 #endif | 375 #endif |
| 373 | 376 |
| 374 WTF_LOG(Media, "HTMLMediaElement::HTMLMediaElement(%p)", this); | 377 WTF_LOG(Media, "HTMLMediaElement::HTMLMediaElement(%p)", this); |
| 375 | 378 |
| 376 if (document.settings() && document.settings()->mediaPlaybackRequiresUserGes
ture()) | 379 if (document.settings() && document.settings()->mediaPlaybackRequiresUserGes
ture()) |
| 377 m_userGestureRequiredForPlay = true; | 380 m_userGestureRequiredForPlay = true; |
| 378 | 381 |
| (...skipping 3445 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3824 DEFINE_TRACE(HTMLMediaElement::AudioClientImpl) | 3827 DEFINE_TRACE(HTMLMediaElement::AudioClientImpl) |
| 3825 { | 3828 { |
| 3826 visitor->trace(m_client); | 3829 visitor->trace(m_client); |
| 3827 } | 3830 } |
| 3828 | 3831 |
| 3829 DEFINE_TRACE(HTMLMediaElement::AudioSourceProviderImpl) | 3832 DEFINE_TRACE(HTMLMediaElement::AudioSourceProviderImpl) |
| 3830 { | 3833 { |
| 3831 visitor->trace(m_client); | 3834 visitor->trace(m_client); |
| 3832 } | 3835 } |
| 3833 | 3836 |
| 3837 |
| 3838 #if !ENABLE(OILPAN) |
| 3839 WeakPtr<HTMLMediaElement> HTMLMediaElement::createWeakPtr() |
| 3840 { |
| 3841 return m_weakPtrFactory.createWeakPtr(); |
| 3842 } |
| 3843 #endif |
| 3844 |
| 3834 } // namespace blink | 3845 } // namespace blink |
| OLD | NEW |