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