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

Unified Diff: remoting/webapp/app_remoting/js/context_menu_dom.js

Issue 1143453007: remoting.WindowShape clean up. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Reviewer's feedback Created 5 years, 7 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
Index: remoting/webapp/app_remoting/js/context_menu_dom.js
diff --git a/remoting/webapp/app_remoting/js/context_menu_dom.js b/remoting/webapp/app_remoting/js/context_menu_dom.js
index 0338e6fcb4adb128577e996847caff1224cbf265..48791b7f3b20852e62cc33339a36114fbeb61c08 100644
--- a/remoting/webapp/app_remoting/js/context_menu_dom.js
+++ b/remoting/webapp/app_remoting/js/context_menu_dom.js
@@ -74,7 +74,11 @@ remoting.ContextMenuDom = function(root) {
this.root_.hidden = false;
this.root_.style.bottom = this.bottom_ + 'px';
- remoting.windowShape.addCallback(this);
+ remoting.windowShape.registerClientUI(this);
+};
+
+remoting.ContextMenuDom.prototype.dispose = function() {
+ remoting.windowShape.unregisterClientUI(this);
};
/**
« no previous file with comments | « remoting/webapp/app_remoting/js/context_menu_chrome.js ('k') | remoting/webapp/app_remoting/js/idle_detector.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698