| 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 /** | 5 /** |
| 6 * @fileoverview | 6 * @fileoverview |
| 7 * Class representing the host-list portion of the home screen UI. | 7 * Class representing the host-list portion of the home screen UI. |
| 8 */ | 8 */ |
| 9 | 9 |
| 10 'use strict'; | 10 'use strict'; |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 this.lastError_ = ''; | 73 this.lastError_ = ''; |
| 74 /** | 74 /** |
| 75 * @type {remoting.Host?} | 75 * @type {remoting.Host?} |
| 76 * @private | 76 * @private |
| 77 */ | 77 */ |
| 78 this.localHost_ = null; | 78 this.localHost_ = null; |
| 79 /** | 79 /** |
| 80 * @type {remoting.HostController.State} | 80 * @type {remoting.HostController.State} |
| 81 * @private | 81 * @private |
| 82 */ | 82 */ |
| 83 this.localHostState_ = remoting.HostController.State.NOT_IMPLEMENTED; | 83 this.localHostState_ = remoting.isMe2MeSupported() |
| 84 ? remoting.HostController.State.NOT_INSTALLED |
| 85 : remoting.HostController.State.NOT_IMPLEMENTED; |
| 84 /** | 86 /** |
| 85 * @type {number} | 87 * @type {number} |
| 86 * @private | 88 * @private |
| 87 */ | 89 */ |
| 88 this.webappMajorVersion_ = parseInt(chrome.runtime.getManifest().version, 10); | 90 this.webappMajorVersion_ = parseInt(chrome.runtime.getManifest().version, 10); |
| 89 | 91 |
| 90 this.errorButton_.addEventListener('click', | 92 this.errorButton_.addEventListener('click', |
| 91 this.onErrorClick_.bind(this), | 93 this.onErrorClick_.bind(this), |
| 92 false); | 94 false); |
| 93 var reloadButton = this.loadingIndicator_.firstElementChild; | 95 var reloadButton = this.loadingIndicator_.firstElementChild; |
| (...skipping 414 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 508 chrome.storage.local.set(items); | 510 chrome.storage.local.set(items); |
| 509 }; | 511 }; |
| 510 | 512 |
| 511 /** | 513 /** |
| 512 * Key name under which Me2Me hosts are cached. | 514 * Key name under which Me2Me hosts are cached. |
| 513 */ | 515 */ |
| 514 remoting.HostList.HOSTS_KEY = 'me2me-cached-hosts'; | 516 remoting.HostList.HOSTS_KEY = 'me2me-cached-hosts'; |
| 515 | 517 |
| 516 /** @type {remoting.HostList} */ | 518 /** @type {remoting.HostList} */ |
| 517 remoting.hostList = null; | 519 remoting.hostList = null; |
| OLD | NEW |