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

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

Issue 308183004: Remove extra newline in log lines from plugin. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 | « no previous file | 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 (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 * Class handling creation and teardown of a remoting client session. 7 * Class handling creation and teardown of a remoting client session.
8 * 8 *
9 * The ClientSession class controls lifetime of the client plugin 9 * The ClientSession class controls lifetime of the client plugin
10 * object and provides the plugin with the functionality it needs to 10 * object and provides the plugin with the functionality it needs to
(...skipping 511 matching lines...) Expand 10 before | Expand all | Expand 10 after
522 .classList.add('mediasource-rendering'); 522 .classList.add('mediasource-rendering');
523 } else { 523 } else {
524 /** @type {HTMLElement} */(document.getElementById('video-container')) 524 /** @type {HTMLElement} */(document.getElementById('video-container'))
525 .classList.remove('mediasource-rendering'); 525 .classList.remove('mediasource-rendering');
526 } 526 }
527 527
528 /** @param {string} msg The IQ stanza to send. */ 528 /** @param {string} msg The IQ stanza to send. */
529 this.plugin_.onOutgoingIqHandler = this.sendIq_.bind(this); 529 this.plugin_.onOutgoingIqHandler = this.sendIq_.bind(this);
530 /** @param {string} msg The message to log. */ 530 /** @param {string} msg The message to log. */
531 this.plugin_.onDebugMessageHandler = function(msg) { 531 this.plugin_.onDebugMessageHandler = function(msg) {
532 console.log('plugin: ' + msg); 532 console.log('plugin: ' + msg.trimRight());
533 }; 533 };
534 534
535 this.plugin_.onConnectionStatusUpdateHandler = 535 this.plugin_.onConnectionStatusUpdateHandler =
536 this.onConnectionStatusUpdate_.bind(this); 536 this.onConnectionStatusUpdate_.bind(this);
537 this.plugin_.onConnectionReadyHandler = 537 this.plugin_.onConnectionReadyHandler =
538 this.onConnectionReady_.bind(this); 538 this.onConnectionReady_.bind(this);
539 this.plugin_.onDesktopSizeUpdateHandler = 539 this.plugin_.onDesktopSizeUpdateHandler =
540 this.onDesktopSizeChanged_.bind(this); 540 this.onDesktopSizeChanged_.bind(this);
541 this.plugin_.onSetCapabilitiesHandler = 541 this.plugin_.onSetCapabilitiesHandler =
542 this.onSetCapabilities_.bind(this); 542 this.onSetCapabilities_.bind(this);
(...skipping 960 matching lines...) Expand 10 before | Expand all | Expand 10 after
1503 * @return {{width: number, height: number}} The height of the window's client 1503 * @return {{width: number, height: number}} The height of the window's client
1504 * area. This differs between apps v1 and apps v2 due to the custom window 1504 * area. This differs between apps v1 and apps v2 due to the custom window
1505 * borders used by the latter. 1505 * borders used by the latter.
1506 * @private 1506 * @private
1507 */ 1507 */
1508 remoting.ClientSession.prototype.getClientArea_ = function() { 1508 remoting.ClientSession.prototype.getClientArea_ = function() {
1509 return remoting.windowFrame ? 1509 return remoting.windowFrame ?
1510 remoting.windowFrame.getClientArea() : 1510 remoting.windowFrame.getClientArea() :
1511 { 'width': window.innerWidth, 'height': window.innerHeight }; 1511 { 'width': window.innerWidth, 'height': window.innerHeight };
1512 } 1512 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698