| 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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; |
| OLD | NEW |