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 29 matching lines...) Expand all Loading... |
40 /** | 40 /** |
41 * @type {remoting.OptionsMenu} | 41 * @type {remoting.OptionsMenu} |
42 * @private | 42 * @private |
43 */ | 43 */ |
44 this.optionsMenu_ = new remoting.OptionsMenu( | 44 this.optionsMenu_ = new remoting.OptionsMenu( |
45 titleBar.querySelector('.menu-send-ctrl-alt-del'), | 45 titleBar.querySelector('.menu-send-ctrl-alt-del'), |
46 titleBar.querySelector('.menu-send-print-screen'), | 46 titleBar.querySelector('.menu-send-print-screen'), |
47 titleBar.querySelector('.menu-resize-to-client'), | 47 titleBar.querySelector('.menu-resize-to-client'), |
48 titleBar.querySelector('.menu-shrink-to-fit'), | 48 titleBar.querySelector('.menu-shrink-to-fit'), |
49 titleBar.querySelector('.menu-new-connection'), | 49 titleBar.querySelector('.menu-new-connection'), |
50 null); | 50 null, |
| 51 titleBar.querySelector('.menu-start-stop-recording')); |
51 | 52 |
52 /** | 53 /** |
53 * @type {HTMLElement} | 54 * @type {HTMLElement} |
54 * @private | 55 * @private |
55 */ | 56 */ |
56 this.title_ = /** @type {HTMLElement} */ | 57 this.title_ = /** @type {HTMLElement} */ |
57 (titleBar.querySelector('.window-title')); | 58 (titleBar.querySelector('.window-title')); |
58 base.debug.assert(this.title_ != null); | 59 base.debug.assert(this.title_ != null); |
59 | 60 |
60 /** | 61 /** |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
241 var hidePreview = function() { | 242 var hidePreview = function() { |
242 target.classList.remove('preview'); | 243 target.classList.remove('preview'); |
243 }; | 244 }; |
244 target.classList.add('preview'); | 245 target.classList.add('preview'); |
245 window.setTimeout(hidePreview, kPreviewTimeoutMs); | 246 window.setTimeout(hidePreview, kPreviewTimeoutMs); |
246 }; | 247 }; |
247 | 248 |
248 | 249 |
249 /** @type {remoting.WindowFrame} */ | 250 /** @type {remoting.WindowFrame} */ |
250 remoting.windowFrame = null; | 251 remoting.windowFrame = null; |
OLD | NEW |