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

Side by Side Diff: third_party/WebKit/Source/core/dom/ElementFullscreen.cpp

Issue 2325663002: Make Fullscreen::requestFullscreen and exitFullscreen static (Closed)
Patch Set: Created 4 years, 3 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "core/dom/ElementFullscreen.h" 5 #include "core/dom/ElementFullscreen.h"
6 6
7 #include "core/dom/Fullscreen.h" 7 #include "core/dom/Fullscreen.h"
8 #include "core/frame/UseCounter.h" 8 #include "core/frame/UseCounter.h"
9 9
10 namespace blink { 10 namespace blink {
11 11
12 void ElementFullscreen::requestFullscreen(Element& element) 12 void ElementFullscreen::requestFullscreen(Element& element)
13 { 13 {
14 Fullscreen::from(element.document()).requestFullscreen(element, Fullscreen:: UnprefixedRequest); 14 Fullscreen::requestFullscreen(element, Fullscreen::UnprefixedRequest);
15 } 15 }
16 16
17 void ElementFullscreen::webkitRequestFullscreen(Element& element) 17 void ElementFullscreen::webkitRequestFullscreen(Element& element)
18 { 18 {
19 if (element.isInShadowTree()) 19 if (element.isInShadowTree())
20 UseCounter::count(element.document(), UseCounter::PrefixedElementRequest FullscreenInShadow); 20 UseCounter::count(element.document(), UseCounter::PrefixedElementRequest FullscreenInShadow);
21 Fullscreen::from(element.document()).requestFullscreen(element, Fullscreen:: PrefixedRequest); 21 Fullscreen::requestFullscreen(element, Fullscreen::PrefixedRequest);
22 } 22 }
23 23
24 } // namespace blink 24 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698