GN + Android: extract android_standalone_library rule.
[chromium-blink-merge.git] / remoting / webapp / crd / js / fullscreen.js
blob0107a6b49a76e37f23c92309454a7da0aeea6a0b
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 /**
6 * @fileoverview
7 * Controller interface for full-screen mode.
8 */
10 'use strict';
12 /** @suppress {duplicate} */
13 var remoting = remoting || {};
15 /** @interface */
16 remoting.Fullscreen = function() { };
18 /**
19 * Enter or leave full-screen mode.
21 * @param {boolean} fullscreen True to enter full-screen mode; false to leave.
22 * @param {function():void=} opt_onDone Optional completion callback.
24 remoting.Fullscreen.prototype.activate = function(fullscreen, opt_onDone) { };
26 /**
27 * @return {boolean} True if full-screen mode is active.
29 remoting.Fullscreen.prototype.isActive = function() { };
31 /**
32 * Toggle full-screen mode.
34 remoting.Fullscreen.prototype.toggle = function() { };
36 /**
37 * Add a listener for the full-screen-changed event.
39 * @param {function(boolean):void} callback
41 remoting.Fullscreen.prototype.addListener = function(callback) { };
43 /**
44 * Remove a listener for the full-screen-changed event.
46 * @param {function(boolean):void} callback
48 remoting.Fullscreen.prototype.removeListener = function(callback) { };
50 /** @type {remoting.Fullscreen} */
51 remoting.fullscreen = null;