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

Unified 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, 10 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/webapp/crd/js/fullscreen.js
diff --git a/remoting/webapp/crd/js/fullscreen.js b/remoting/webapp/crd/js/fullscreen.js
index 415734b7b21d01fdf84f2392921923c8b8b92647..6f215cc346e2f30a09c1d161f2d10112a7f3f2f0 100644
--- a/remoting/webapp/crd/js/fullscreen.js
+++ b/remoting/webapp/crd/js/fullscreen.js
@@ -50,3 +50,19 @@ remoting.Fullscreen.prototype.removeListener = function(callback) { };
/** @type {remoting.Fullscreen} */
remoting.fullscreen = null;
+
+
+/**
+ * @constructor
+ * @param {function(boolean=)} listener
+ * @implements {base.Disposable}
+ */
+remoting.Fullscreen.EventHook = function(listener) {
+ this.src_ = remoting.fullscreen;
Jamie 2015/03/04 22:00:52 Add @private annotations for these members.
+ this.listener_ = listener;
+ this.src_.addListener(listener);
+};
+
+remoting.Fullscreen.EventHook.prototype.dispose = function() {
+ this.src_.removeListener(this.listener_);
+};
« 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