| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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; |
| OLD | NEW |