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

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

Issue 8897017: Fix null pointer error. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review Created 9 years 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/me2mom/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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 remoting.clientSession.updateDimensions(); 115 remoting.clientSession.updateDimensions();
116 } 116 }
117 117
118 /** 118 /**
119 * Update the remoting client layout in response to a resize event. 119 * Update the remoting client layout in response to a resize event.
120 * 120 *
121 * @return {void} Nothing. 121 * @return {void} Nothing.
122 */ 122 */
123 remoting.onResize = function() { 123 remoting.onResize = function() {
124 if (remoting.clientSession) 124 if (remoting.clientSession)
125 remoting.clientSession.onWindowSizeChanged(); 125 remoting.clientSession.onResize();
126 remoting.toolbar.center();
127 } 126 }
128 127
129 /** 128 /**
130 * Disconnect the remoting client. 129 * Disconnect the remoting client.
131 * 130 *
132 * @return {void} Nothing. 131 * @return {void} Nothing.
133 */ 132 */
134 remoting.disconnect = function() { 133 remoting.disconnect = function() {
135 if (remoting.clientSession) { 134 if (remoting.clientSession) {
136 remoting.clientSession.disconnect(); 135 remoting.clientSession.disconnect();
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after
439 var createPluginAndConnect = function(token) { 438 var createPluginAndConnect = function(token) {
440 remoting.clientSession.createPluginAndConnect( 439 remoting.clientSession.createPluginAndConnect(
441 document.getElementById('session-mode'), 440 document.getElementById('session-mode'),
442 token); 441 token);
443 }; 442 };
444 443
445 remoting.oauth2.callWithToken(createPluginAndConnect); 444 remoting.oauth2.callWithToken(createPluginAndConnect);
446 } 445 }
447 446
448 }()); 447 }());
OLDNEW
« no previous file with comments | « no previous file | remoting/webapp/me2mom/client_session.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698