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

Side by Side Diff: remoting/webapp/client_screen.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: Rebase 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 * Functions related to the 'client screen' for Chromoting. 7 * Functions related to the 'client screen' for Chromoting.
8 */ 8 */
9 9
10 'use strict'; 10 'use strict';
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after
353 }; 353 };
354 354
355 /** 355 /**
356 * Extension message handler. 356 * Extension message handler.
357 * 357 *
358 * @param {string} type The type of the extension message. 358 * @param {string} type The type of the extension message.
359 * @param {string} data The payload of the extension message. 359 * @param {string} data The payload of the extension message.
360 * @return {boolean} Return true if the extension message was recognized. 360 * @return {boolean} Return true if the extension message was recognized.
361 */ 361 */
362 remoting.onExtensionMessage = function(type, data) { 362 remoting.onExtensionMessage = function(type, data) {
363 if (remoting.clientSession &&
364 remoting.clientSession.handleVideoRecorderMessage(type, data)) {
Jamie 2014/08/01 01:28:36 Since handleVideoRecorderMessage has side-effects,
Wez 2014/08/19 00:15:52 Done.
365 return true;
366 }
363 return false; 367 return false;
364 }; 368 };
365 369
366 /** 370 /**
367 * Create a session connector if one doesn't already exist. 371 * Create a session connector if one doesn't already exist.
368 */ 372 */
369 remoting.ensureSessionConnector_ = function() { 373 remoting.ensureSessionConnector_ = function() {
370 if (!remoting.connector) { 374 if (!remoting.connector) {
371 remoting.connector = new remoting.SessionConnector( 375 remoting.connector = new remoting.SessionConnector(
372 document.getElementById('video-container'), 376 document.getElementById('video-container'),
373 remoting.onConnected, 377 remoting.onConnected,
374 showConnectError_, remoting.onExtensionMessage); 378 showConnectError_, remoting.onExtensionMessage);
375 } 379 }
376 }; 380 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698