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

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

Issue 22006002: Fix scroll-bar behaviour. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed debug log message. Created 7 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 | « no previous file | remoting/webapp/client_session.js » ('j') | 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 * 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 316 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 clientId, sharedSecret); 327 clientId, sharedSecret);
328 } 328 }
329 329
330 remoting.HostSettings.load(host.hostId, connectMe2MeHostSettingsRetrieved); 330 remoting.HostSettings.load(host.hostId, connectMe2MeHostSettingsRetrieved);
331 }; 331 };
332 332
333 /** @param {remoting.ClientSession} clientSession */ 333 /** @param {remoting.ClientSession} clientSession */
334 remoting.onConnected = function(clientSession) { 334 remoting.onConnected = function(clientSession) {
335 remoting.clientSession = clientSession; 335 remoting.clientSession = clientSession;
336 remoting.clientSession.setOnStateChange(onClientStateChange_); 336 remoting.clientSession.setOnStateChange(onClientStateChange_);
337 remoting.clientSession.setScrollbarVisibility();
338 setConnectionInterruptedButtonsText_(); 337 setConnectionInterruptedButtonsText_();
339 var connectedTo = document.getElementById('connected-to'); 338 var connectedTo = document.getElementById('connected-to');
340 connectedTo.innerText = clientSession.hostDisplayName; 339 connectedTo.innerText = clientSession.hostDisplayName;
341 remoting.setMode(remoting.AppMode.IN_SESSION); 340 remoting.setMode(remoting.AppMode.IN_SESSION);
342 remoting.toolbar.center(); 341 remoting.toolbar.center();
343 remoting.toolbar.preview(); 342 remoting.toolbar.preview();
344 remoting.clipboard.startSession(); 343 remoting.clipboard.startSession();
345 updateStatistics_(); 344 updateStatistics_();
346 if (remoting.connector.pairingRequested) { 345 if (remoting.connector.pairingRequested) {
347 /** 346 /**
(...skipping 21 matching lines...) Expand all
369 clientName = 'ChromeOS'; 368 clientName = 'ChromeOS';
370 } else if (navigator.platform.indexOf('Linux') != -1) { 369 } else if (navigator.platform.indexOf('Linux') != -1) {
371 clientName = 'Linux'; 370 clientName = 'Linux';
372 } else { 371 } else {
373 console.log('Unrecognized client platform. Using navigator.platform.'); 372 console.log('Unrecognized client platform. Using navigator.platform.');
374 clientName = navigator.platform; 373 clientName = navigator.platform;
375 } 374 }
376 clientSession.requestPairing(clientName, onPairingComplete); 375 clientSession.requestPairing(clientName, onPairingComplete);
377 } 376 }
378 }; 377 };
OLDNEW
« no previous file with comments | « no previous file | remoting/webapp/client_session.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698