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

Unified Diff: remoting/webapp/remoting.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/remoting.js
diff --git a/remoting/webapp/remoting.js b/remoting/webapp/remoting.js
index 4e34d50025ce4c1988512f7e03bf341babfbab04..249d49a2ff6e725069fcad8e3425021712f63a13 100644
--- a/remoting/webapp/remoting.js
+++ b/remoting/webapp/remoting.js
@@ -61,6 +61,7 @@ remoting.init = function() {
remoting.fullscreen = new remoting.FullscreenAppsV2();
remoting.windowFrame = new remoting.WindowFrame(
document.getElementById('title-bar'));
+ remoting.optionsMenu = remoting.windowFrame.createOptionsMenu();
} else {
remoting.oauth2 = new remoting.OAuth2();
if (!remoting.oauth2.isAuthenticated()) {
@@ -68,6 +69,9 @@ remoting.init = function() {
}
remoting.identity = remoting.oauth2;
remoting.fullscreen = new remoting.FullscreenAppsV1();
+ remoting.toolbar = new remoting.Toolbar(
+ document.getElementById('session-toolbar'));
+ remoting.optionsMenu = remoting.toolbar.createOptionsMenu();
}
remoting.stats = new remoting.ConnectionStats(
document.getElementById('statistics'));
@@ -78,8 +82,6 @@ remoting.init = function() {
document.getElementById('host-list-error-message'),
document.getElementById('host-list-refresh-failed-button'),
document.getElementById('host-list-loading-indicator'));
- remoting.toolbar = new remoting.Toolbar(
- document.getElementById('session-toolbar'));
remoting.clipboard = new remoting.Clipboard();
var sandbox = /** @type {HTMLIFrameElement} */
document.getElementById('wcs-sandbox');

Powered by Google App Engine
This is Rietveld 408576698