Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(99)

Side by Side Diff: Source/core/html/HTMLMediaElement.cpp

Issue 1237133002: Remove the allowfullscreen exemption for the video-specific fullscreen API (reland) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/frame/UseCounter.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « Source/core/frame/UseCounter.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698