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

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

Issue 2565203002: Add a requestFullscreen variant with a default (prefixed) type (Closed)
Patch Set: Created 4 years 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/Fullscreen.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 Fullscreen::requestFullscreen(element, Fullscreen::UnprefixedRequest); 13 Fullscreen::requestFullscreen(element, Fullscreen::RequestType::Unprefixed);
14 } 14 }
15 15
16 void ElementFullscreen::webkitRequestFullscreen(Element& element) { 16 void ElementFullscreen::webkitRequestFullscreen(Element& element) {
17 if (element.isInShadowTree()) 17 if (element.isInShadowTree())
18 UseCounter::count(element.document(), 18 UseCounter::count(element.document(),
19 UseCounter::PrefixedElementRequestFullscreenInShadow); 19 UseCounter::PrefixedElementRequestFullscreenInShadow);
20 Fullscreen::requestFullscreen(element, Fullscreen::PrefixedRequest); 20 Fullscreen::requestFullscreen(element, Fullscreen::RequestType::Prefixed);
21 } 21 }
22 22
23 } // namespace blink 23 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/Fullscreen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698