chromium/third_party/blink/renderer/core/fullscreen/element_fullscreen.idl

// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// https://fullscreen.spec.whatwg.org/#api

[
    ImplementedAs=ElementFullscreen
] partial interface Element {
    [CallWith=ScriptState, RaisesException] Promise<undefined> requestFullscreen(optional FullscreenOptions options = {});

    attribute EventHandler onfullscreenchange;
    attribute EventHandler onfullscreenerror;

    // Mozilla version
    [LogActivity, LogAllWorlds, MeasureAs=PrefixedElementRequestFullScreen, ImplementedAs=webkitRequestFullscreen] void webkitRequestFullScreen(optional FullscreenOptions options = {});

    // W3C version
    [LogActivity, LogAllWorlds, MeasureAs=PrefixedElementRequestFullscreen] void webkitRequestFullscreen(optional FullscreenOptions options = {});

    attribute EventHandler onwebkitfullscreenchange;
    attribute EventHandler onwebkitfullscreenerror;
};