-
Notifications
You must be signed in to change notification settings - Fork 8
/
fullscreen.js
52 lines (42 loc) · 1.27 KB
/
fullscreen.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
// 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.
/**
* @fileoverview
* Controller interface for full-screen mode.
*/
'use strict';
/** @suppress {duplicate} */
var remoting = remoting || {};
/** @interface */
remoting.Fullscreen = function() { };
/**
* Enter or leave full-screen mode.
*
* @param {boolean} fullscreen True to enter full-screen mode; false to leave.
* @param {function():void=} opt_onDone Optional completion callback.
*/
remoting.Fullscreen.prototype.activate = function(fullscreen, opt_onDone) { };
/**
* @return {boolean} True if full-screen mode is active.
*/
remoting.Fullscreen.prototype.isActive = function() { };
/**
* Toggle full-screen mode.
* @return {void}
*/
remoting.Fullscreen.prototype.toggle = function() { };
/**
* Add a listener for the full-screen-changed event.
*
* @param {function(boolean=):void} callback
*/
remoting.Fullscreen.prototype.addListener = function(callback) { };
/**
* Remove a listener for the full-screen-changed event.
*
* @param {function(boolean=):void} callback
*/
remoting.Fullscreen.prototype.removeListener = function(callback) { };
/** @type {remoting.Fullscreen} */
remoting.fullscreen = null;