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