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

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

Issue 1153923007: Add a menu option for the right-hand Ctrl -> Meta mapping. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Reviewer feedback. Created 5 years, 6 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/toolbar.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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 this.showWindowControlsPreview_.bind(this)); 76 this.showWindowControlsPreview_.bind(this));
77 }; 77 };
78 78
79 /** 79 /**
80 * @return {remoting.OptionsMenu} 80 * @return {remoting.OptionsMenu}
81 */ 81 */
82 remoting.WindowFrame.prototype.createOptionsMenu = function() { 82 remoting.WindowFrame.prototype.createOptionsMenu = function() {
83 return new remoting.OptionsMenu( 83 return new remoting.OptionsMenu(
84 this.titleBar_.querySelector('.menu-send-ctrl-alt-del'), 84 this.titleBar_.querySelector('.menu-send-ctrl-alt-del'),
85 this.titleBar_.querySelector('.menu-send-print-screen'), 85 this.titleBar_.querySelector('.menu-send-print-screen'),
86 this.titleBar_.querySelector('.menu-map-right-ctrl-to-meta'),
86 this.titleBar_.querySelector('.menu-resize-to-client'), 87 this.titleBar_.querySelector('.menu-resize-to-client'),
87 this.titleBar_.querySelector('.menu-shrink-to-fit'), 88 this.titleBar_.querySelector('.menu-shrink-to-fit'),
88 this.titleBar_.querySelector('.menu-new-connection'), 89 this.titleBar_.querySelector('.menu-new-connection'),
89 this.titleBar_.querySelector('.window-fullscreen'), 90 this.titleBar_.querySelector('.window-fullscreen'),
90 this.titleBar_.querySelector('.menu-toggle-connection-stats'), 91 this.titleBar_.querySelector('.menu-toggle-connection-stats'),
91 this.titleBar_.querySelector('.menu-start-stop-recording')); 92 this.titleBar_.querySelector('.menu-start-stop-recording'));
92 }; 93 };
93 94
94 /** 95 /**
95 * @param {remoting.DesktopConnectedView} desktopConnectedView The view for the 96 * @param {remoting.DesktopConnectedView} desktopConnectedView The view for the
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 var hidePreview = function() { 216 var hidePreview = function() {
216 target.classList.remove('preview'); 217 target.classList.remove('preview');
217 }; 218 };
218 target.classList.add('preview'); 219 target.classList.add('preview');
219 window.setTimeout(hidePreview, kPreviewTimeoutMs); 220 window.setTimeout(hidePreview, kPreviewTimeoutMs);
220 }; 221 };
221 222
222 223
223 /** @type {remoting.WindowFrame} */ 224 /** @type {remoting.WindowFrame} */
224 remoting.windowFrame = null; 225 remoting.windowFrame = null;
OLDNEW
« no previous file with comments | « remoting/webapp/crd/js/toolbar.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698