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 3124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3135 | 3135 |
3136 bool HTMLMediaElement::isFullscreen() const | 3136 bool HTMLMediaElement::isFullscreen() const |
3137 { | 3137 { |
3138 return Fullscreen::isActiveFullScreenElement(*this); | 3138 return Fullscreen::isActiveFullScreenElement(*this); |
3139 } | 3139 } |
3140 | 3140 |
3141 void HTMLMediaElement::enterFullscreen() | 3141 void HTMLMediaElement::enterFullscreen() |
3142 { | 3142 { |
3143 WTF_LOG(Media, "HTMLMediaElement::enterFullscreen(%p)", this); | 3143 WTF_LOG(Media, "HTMLMediaElement::enterFullscreen(%p)", this); |
3144 | 3144 |
3145 Fullscreen::from(document()).requestFullscreen(*this, Fullscreen::PrefixedVi
deoRequest); | 3145 Fullscreen::from(document()).requestFullscreen(*this, Fullscreen::PrefixedRe
quest); |
3146 } | 3146 } |
3147 | 3147 |
3148 void HTMLMediaElement::exitFullscreen() | 3148 void HTMLMediaElement::exitFullscreen() |
3149 { | 3149 { |
3150 WTF_LOG(Media, "HTMLMediaElement::exitFullscreen(%p)", this); | 3150 WTF_LOG(Media, "HTMLMediaElement::exitFullscreen(%p)", this); |
3151 | 3151 |
3152 Fullscreen::from(document()).exitFullscreen(); | 3152 Fullscreen::from(document()).exitFullscreen(); |
3153 } | 3153 } |
3154 | 3154 |
3155 void HTMLMediaElement::didBecomeFullscreenElement() | 3155 void HTMLMediaElement::didBecomeFullscreenElement() |
(...skipping 534 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3690 | 3690 |
3691 #if ENABLE(WEB_AUDIO) | 3691 #if ENABLE(WEB_AUDIO) |
3692 void HTMLMediaElement::clearWeakMembers(Visitor* visitor) | 3692 void HTMLMediaElement::clearWeakMembers(Visitor* visitor) |
3693 { | 3693 { |
3694 if (!Heap::isHeapObjectAlive(m_audioSourceNode) && audioSourceProvider()) | 3694 if (!Heap::isHeapObjectAlive(m_audioSourceNode) && audioSourceProvider()) |
3695 audioSourceProvider()->setClient(nullptr); | 3695 audioSourceProvider()->setClient(nullptr); |
3696 } | 3696 } |
3697 #endif | 3697 #endif |
3698 | 3698 |
3699 } | 3699 } |
OLD | NEW |