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

Side by Side Diff: remoting/webapp/crd/js/window_frame.js

Issue 1089493002: [Webapp Refactor] Re-add remoting.ConnectionStats. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Reviewer's feedback Created 5 years, 8 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 unified diff | Download patch
« no previous file with comments | « remoting/webapp/crd/js/ui_mode.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** 5 /**
6 * @fileoverview 6 * @fileoverview
7 * Apps v2 custom title bar implementation 7 * Apps v2 custom title bar implementation
8 */ 8 */
9 9
10 'use strict'; 10 'use strict';
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 * @return {remoting.OptionsMenu} 78 * @return {remoting.OptionsMenu}
79 */ 79 */
80 remoting.WindowFrame.prototype.createOptionsMenu = function() { 80 remoting.WindowFrame.prototype.createOptionsMenu = function() {
81 return new remoting.OptionsMenu( 81 return new remoting.OptionsMenu(
82 this.titleBar_.querySelector('.menu-send-ctrl-alt-del'), 82 this.titleBar_.querySelector('.menu-send-ctrl-alt-del'),
83 this.titleBar_.querySelector('.menu-send-print-screen'), 83 this.titleBar_.querySelector('.menu-send-print-screen'),
84 this.titleBar_.querySelector('.menu-resize-to-client'), 84 this.titleBar_.querySelector('.menu-resize-to-client'),
85 this.titleBar_.querySelector('.menu-shrink-to-fit'), 85 this.titleBar_.querySelector('.menu-shrink-to-fit'),
86 this.titleBar_.querySelector('.menu-new-connection'), 86 this.titleBar_.querySelector('.menu-new-connection'),
87 this.titleBar_.querySelector('.window-fullscreen'), 87 this.titleBar_.querySelector('.window-fullscreen'),
88 this.titleBar_.querySelector('.menu-toggle-connection-stats'),
88 this.titleBar_.querySelector('.menu-start-stop-recording')); 89 this.titleBar_.querySelector('.menu-start-stop-recording'));
89 }; 90 };
90 91
91 /** 92 /**
92 * @param {remoting.DesktopConnectedView} desktopConnectedView The view for the 93 * @param {remoting.DesktopConnectedView} desktopConnectedView The view for the
93 * current session, or null if there is no connection. 94 * current session, or null if there is no connection.
94 */ 95 */
95 remoting.WindowFrame.prototype.setDesktopConnectedView = function( 96 remoting.WindowFrame.prototype.setDesktopConnectedView = function(
96 desktopConnectedView) { 97 desktopConnectedView) {
97 this.desktopConnectedView_ = desktopConnectedView; 98 this.desktopConnectedView_ = desktopConnectedView;
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 var hidePreview = function() { 220 var hidePreview = function() {
220 target.classList.remove('preview'); 221 target.classList.remove('preview');
221 }; 222 };
222 target.classList.add('preview'); 223 target.classList.add('preview');
223 window.setTimeout(hidePreview, kPreviewTimeoutMs); 224 window.setTimeout(hidePreview, kPreviewTimeoutMs);
224 }; 225 };
225 226
226 227
227 /** @type {remoting.WindowFrame} */ 228 /** @type {remoting.WindowFrame} */
228 remoting.windowFrame = null; 229 remoting.windowFrame = null;
OLDNEW
« no previous file with comments | « remoting/webapp/crd/js/ui_mode.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698