OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 'use strict'; | 5 'use strict'; |
6 | 6 |
7 /** @suppress {duplicate} */ | 7 /** @suppress {duplicate} */ |
8 var remoting = remoting || {}; | 8 var remoting = remoting || {}; |
9 | 9 |
10 /** | 10 /** |
11 * Display the user's email address and allow access to the rest of the app, | |
12 * including parsing URL parameters. | |
13 * | |
14 * @param {string} email The user's email address. | |
15 * @return {void} Nothing. | |
16 */ | |
17 remoting.onEmailAvailable = function(email, fullName) { | |
18 document.getElementById('current-email').innerText = email; | |
19 document.getElementById('get-started-it2me').disabled = false; | |
20 document.getElementById('get-started-me2me').disabled = false; | |
21 }; | |
22 | |
23 /** | |
24 * Initialize the host list. | 11 * Initialize the host list. |
25 */ | 12 */ |
26 remoting.initHostlist_ = function() { | 13 remoting.initHostlist_ = function() { |
27 remoting.hostList = new remoting.HostList( | 14 remoting.hostList = new remoting.HostList( |
28 document.getElementById('host-list'), | 15 document.getElementById('host-list'), |
29 document.getElementById('host-list-empty'), | 16 document.getElementById('host-list-empty'), |
30 document.getElementById('host-list-error-message'), | 17 document.getElementById('host-list-error-message'), |
31 document.getElementById('host-list-refresh-failed-button'), | 18 document.getElementById('host-list-refresh-failed-button'), |
32 document.getElementById('host-list-loading-indicator')); | 19 document.getElementById('host-list-loading-indicator')); |
33 | 20 |
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 } | 202 } |
216 | 203 |
217 | 204 |
218 remoting.startDesktopRemoting = function() { | 205 remoting.startDesktopRemoting = function() { |
219 remoting.app = new remoting.Application(); | 206 remoting.app = new remoting.Application(); |
220 var desktop_remoting = new remoting.DesktopRemoting(remoting.app); | 207 var desktop_remoting = new remoting.DesktopRemoting(remoting.app); |
221 remoting.app.start(); | 208 remoting.app.start(); |
222 }; | 209 }; |
223 | 210 |
224 window.addEventListener('load', remoting.startDesktopRemotingForTesting, false); | 211 window.addEventListener('load', remoting.startDesktopRemotingForTesting, false); |
OLD | NEW |