| 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 3575 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3586 | 3586 |
| 3587 void HTMLMediaElement::setNetworkState(NetworkState state) | 3587 void HTMLMediaElement::setNetworkState(NetworkState state) |
| 3588 { | 3588 { |
| 3589 if (m_networkState != state) { | 3589 if (m_networkState != state) { |
| 3590 m_networkState = state; | 3590 m_networkState = state; |
| 3591 if (MediaControls* controls = mediaControls()) | 3591 if (MediaControls* controls = mediaControls()) |
| 3592 controls->networkStateChanged(); | 3592 controls->networkStateChanged(); |
| 3593 } | 3593 } |
| 3594 } | 3594 } |
| 3595 | 3595 |
| 3596 void HTMLMediaElement::notifyPositionMayHaveChanged(const IntRect& visibleRect) |
| 3597 { |
| 3598 m_autoplayHelper.positionChanged(visibleRect); |
| 3599 } |
| 3600 |
| 3601 void HTMLMediaElement::updatePositionNotificationRegistration() |
| 3602 { |
| 3603 m_autoplayHelper.updatePositionNotificationRegistration(); |
| 3604 } |
| 3605 |
| 3606 // TODO(liberato): remove once autoplay gesture override experiment concludes. |
| 3607 void HTMLMediaElement::triggerAutoplayViewportCheckForTesting() |
| 3608 { |
| 3609 m_autoplayHelper.triggerAutoplayViewportCheckForTesting(); |
| 3610 } |
| 3611 |
| 3596 #if ENABLE(WEB_AUDIO) | 3612 #if ENABLE(WEB_AUDIO) |
| 3597 void HTMLMediaElement::clearWeakMembers(Visitor* visitor) | 3613 void HTMLMediaElement::clearWeakMembers(Visitor* visitor) |
| 3598 { | 3614 { |
| 3599 if (!Heap::isHeapObjectAlive(m_audioSourceNode)) | 3615 if (!Heap::isHeapObjectAlive(m_audioSourceNode)) |
| 3600 audioSourceProvider().setClient(nullptr); | 3616 audioSourceProvider().setClient(nullptr); |
| 3601 } | 3617 } |
| 3602 | 3618 |
| 3603 void HTMLMediaElement::AudioSourceProviderImpl::wrap(WebAudioSourceProvider* pro
vider) | 3619 void HTMLMediaElement::AudioSourceProviderImpl::wrap(WebAudioSourceProvider* pro
vider) |
| 3604 { | 3620 { |
| 3605 MutexLocker locker(provideInputLock); | 3621 MutexLocker locker(provideInputLock); |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3655 visitor->trace(m_client); | 3671 visitor->trace(m_client); |
| 3656 } | 3672 } |
| 3657 | 3673 |
| 3658 DEFINE_TRACE(HTMLMediaElement::AudioSourceProviderImpl) | 3674 DEFINE_TRACE(HTMLMediaElement::AudioSourceProviderImpl) |
| 3659 { | 3675 { |
| 3660 visitor->trace(m_client); | 3676 visitor->trace(m_client); |
| 3661 } | 3677 } |
| 3662 #endif | 3678 #endif |
| 3663 | 3679 |
| 3664 } | 3680 } |
| OLD | NEW |