| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 }()); |
| OLD | NEW |