Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / Source / core / dom / ElementFullscreen.cpp
bloba133e8f029db2eee9f2a8ea8d9449f594f593059
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
3 // found in the LICENSE file.
5 #include "config.h"
6 #include "core/dom/ElementFullscreen.h"
8 #include "core/dom/Fullscreen.h"
10 namespace blink {
12 void ElementFullscreen::requestFullscreen(Element& element)
14 Fullscreen::from(element.document()).requestFullscreen(element, Fullscreen::UnprefixedRequest);
17 void ElementFullscreen::webkitRequestFullscreen(Element& element)
19 Fullscreen::from(element.document()).requestFullscreen(element, Fullscreen::PrefixedRequest);
22 } // namespace blink