OLD | NEW |
---|---|
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 Loading... | |
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 }; | |
OLD | NEW |