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

Unified Diff: remoting/webapp/options_menu.js

Issue 594503004: Move ownership of the tool-bar's menu buttons into remoting.Toolbar. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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/options_menu.js
diff --git a/remoting/webapp/options_menu.js b/remoting/webapp/options_menu.js
index fce3bc9e9611d835b48afc14bd493b2acdbc1c4a..bddfb8989651e51f04d97572f03b49f284ca745c 100644
--- a/remoting/webapp/options_menu.js
+++ b/remoting/webapp/options_menu.js
@@ -69,6 +69,8 @@ remoting.OptionsMenu.prototype.setClientSession = function(clientSession) {
remoting.OptionsMenu.prototype.onShow = function() {
if (this.clientSession_) {
+ this.resizeToClient_.hidden =
+ this.clientSession_.getMode() == remoting.ClientSession.Mode.IT2ME;
remoting.MenuButton.select(
this.resizeToClient_, this.clientSession_.getResizeToClient());
remoting.MenuButton.select(
@@ -133,3 +135,8 @@ remoting.OptionsMenu.prototype.onStartStopRecording_ = function() {
this.clientSession_.startStopRecording();
}
}
+
+/**
+ * @type {remoting.OptionsMenu}
+ */
+remoting.optionsMenu = null;

Powered by Google App Engine
This is Rietveld 408576698