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

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: Rebase + Ready for Check-in 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..1dfff4f227bd46c0cd9ab2dc8389ab709c2a27b9 100644
--- a/remoting/webapp/crd/js/fullscreen.js
+++ b/remoting/webapp/crd/js/fullscreen.js
@@ -50,3 +50,22 @@ 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) {
+ /** @private */
+ this.src_ = remoting.fullscreen;
+ /** @private */
+ 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