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

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

Issue 386853002: Add a Record button to the web-app if the host supports video recording. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: function -> var Created 6 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « remoting/webapp/video_frame_recorder.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 29 matching lines...) Expand all
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
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;
OLDNEW
« no previous file with comments | « remoting/webapp/video_frame_recorder.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698