Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(837)

Side by Side Diff: remoting/webapp/crd/js/fullscreen.js

Issue 952353002: Requiem for client_screen.js (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Reviewer's feedback Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « remoting/webapp/crd/js/desktop_remoting.js ('k') | remoting/webapp/crd/js/smart_reconnector.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** 5 /**
6 * @fileoverview 6 * @fileoverview
7 * Controller interface for full-screen mode. 7 * Controller interface for full-screen mode.
8 */ 8 */
9 9
10 'use strict'; 10 'use strict';
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 43
44 /** 44 /**
45 * Remove a listener for the full-screen-changed event. 45 * Remove a listener for the full-screen-changed event.
46 * 46 *
47 * @param {function(boolean=):void} callback 47 * @param {function(boolean=):void} callback
48 */ 48 */
49 remoting.Fullscreen.prototype.removeListener = function(callback) { }; 49 remoting.Fullscreen.prototype.removeListener = function(callback) { };
50 50
51 /** @type {remoting.Fullscreen} */ 51 /** @type {remoting.Fullscreen} */
52 remoting.fullscreen = null; 52 remoting.fullscreen = null;
53
54
55 /**
56 * @constructor
57 * @param {function(boolean=)} listener
58 * @implements {base.Disposable}
59 */
60 remoting.Fullscreen.EventHook = function(listener) {
61 this.src_ = remoting.fullscreen;
Jamie 2015/03/04 22:00:52 Add @private annotations for these members.
62 this.listener_ = listener;
63 this.src_.addListener(listener);
64 };
65
66 remoting.Fullscreen.EventHook.prototype.dispose = function() {
67 this.src_.removeListener(this.listener_);
68 };
OLDNEW
« no previous file with comments | « remoting/webapp/crd/js/desktop_remoting.js ('k') | remoting/webapp/crd/js/smart_reconnector.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698