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

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: 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 | 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) 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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
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.onWindowSizeChanged();
126 remoting.toolbar.center(); 126 if (remoting.toolbar)
Sergey Ulanov 2011/12/09 22:36:04 Maybe change remoting.Toolbar to add onResize hand
Wez 2011/12/09 22:46:53 That sounds reasonable; we should also rename Clie
Jamie 2011/12/09 23:11:48 Both good points. Done.
127 remoting.toolbar.center();
127 } 128 }
128 129
129 /** 130 /**
130 * Disconnect the remoting client. 131 * Disconnect the remoting client.
131 * 132 *
132 * @return {void} Nothing. 133 * @return {void} Nothing.
133 */ 134 */
134 remoting.disconnect = function() { 135 remoting.disconnect = function() {
135 if (remoting.clientSession) { 136 if (remoting.clientSession) {
136 remoting.clientSession.disconnect(); 137 remoting.clientSession.disconnect();
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after
439 var createPluginAndConnect = function(token) { 440 var createPluginAndConnect = function(token) {
440 remoting.clientSession.createPluginAndConnect( 441 remoting.clientSession.createPluginAndConnect(
441 document.getElementById('session-mode'), 442 document.getElementById('session-mode'),
442 token); 443 token);
443 }; 444 };
444 445
445 remoting.oauth2.callWithToken(createPluginAndConnect); 446 remoting.oauth2.callWithToken(createPluginAndConnect);
446 } 447 }
447 448
448 }()); 449 }());
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