OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 /** @type {remoting.HostSession} */ remoting.hostSession = null; | 10 /** @type {remoting.HostSession} */ remoting.hostSession = null; |
(...skipping 24 matching lines...) Expand all Loading... | |
35 // Create global objects. | 35 // Create global objects. |
36 remoting.oauth2 = new remoting.OAuth2(); | 36 remoting.oauth2 = new remoting.OAuth2(); |
37 remoting.stats = new remoting.ConnectionStats( | 37 remoting.stats = new remoting.ConnectionStats( |
38 document.getElementById('statistics')); | 38 document.getElementById('statistics')); |
39 remoting.formatIq = new remoting.FormatIq(); | 39 remoting.formatIq = new remoting.FormatIq(); |
40 remoting.hostList = new remoting.HostList( | 40 remoting.hostList = new remoting.HostList( |
41 document.getElementById('host-list'), | 41 document.getElementById('host-list'), |
42 document.getElementById('host-list-error')); | 42 document.getElementById('host-list-error')); |
43 remoting.toolbar = new remoting.Toolbar( | 43 remoting.toolbar = new remoting.Toolbar( |
44 document.getElementById('session-toolbar')); | 44 document.getElementById('session-toolbar')); |
45 remoting.connectionHistory = new remoting.ConnectionHistory(); | |
garykac
2012/03/02 00:53:56
Comment out? Or do you want this here to make sure
Jamie
2012/03/02 01:11:05
Done.
| |
45 | 46 |
46 refreshEmail_(); | 47 refreshEmail_(); |
47 var email = remoting.oauth2.getCachedEmail(); | 48 var email = remoting.oauth2.getCachedEmail(); |
48 if (email) { | 49 if (email) { |
49 document.getElementById('current-email').innerText = email; | 50 document.getElementById('current-email').innerText = email; |
50 } | 51 } |
51 | 52 |
52 window.addEventListener('blur', pluginLostFocus_, false); | 53 window.addEventListener('blur', pluginLostFocus_, false); |
53 | 54 |
54 // Parse URL parameters. | 55 // Parse URL parameters. |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
167 | 168 |
168 /** | 169 /** |
169 * Returns whether Host mode is supported on this platform. | 170 * Returns whether Host mode is supported on this platform. |
170 * | 171 * |
171 * @return {boolean} True if Host mode is supported. | 172 * @return {boolean} True if Host mode is supported. |
172 */ | 173 */ |
173 function isHostModeSupported_() { | 174 function isHostModeSupported_() { |
174 // Currently, sharing on Chromebooks is not supported. | 175 // Currently, sharing on Chromebooks is not supported. |
175 return !navigator.userAgent.match(/\bCrOS\b/); | 176 return !navigator.userAgent.match(/\bCrOS\b/); |
176 } | 177 } |
OLD | NEW |