| OLD | NEW |
| 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 |
| OLD | NEW |