blob: a133e8f029db2eee9f2a8ea8d9449f594f593059 [file] [log] [blame]
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "config.h"
#include "core/dom/ElementFullscreen.h"
#include "core/dom/Fullscreen.h"
namespace blink {
void ElementFullscreen::requestFullscreen(Element& element)
{
Fullscreen::from(element.document()).requestFullscreen(element, Fullscreen::UnprefixedRequest);
}
void ElementFullscreen::webkitRequestFullscreen(Element& element)
{
Fullscreen::from(element.document()).requestFullscreen(element, Fullscreen::PrefixedRequest);
}
} // namespace blink