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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
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 Loading... | |
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 }()); |
OLD | NEW |