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.
4
5// https://fullscreen.spec.whatwg.org/#api
6
7[
8    ImplementedAs=ElementFullscreen
9] partial interface Element {
10    [CallWith=ScriptState, RaisesException] Promise<void> requestFullscreen(optional FullscreenOptions options = {});
11
12    attribute EventHandler onfullscreenchange;
13    attribute EventHandler onfullscreenerror;
14
15    // Mozilla version
16    [LogActivity, LogAllWorlds, MeasureAs=PrefixedElementRequestFullScreen, ImplementedAs=webkitRequestFullscreen] void webkitRequestFullScreen(optional FullscreenOptions options = {});
17
18    // W3C version
19    [LogActivity, LogAllWorlds, MeasureAs=PrefixedElementRequestFullscreen] void webkitRequestFullscreen(optional FullscreenOptions options = {});
20
21    attribute EventHandler onwebkitfullscreenchange;
22    attribute EventHandler onwebkitfullscreenerror;
23};
24