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.isMe2MeSupported() | 83 this.localHostState_ = remoting.HostController.State.UNKNOWN; |
84 ? remoting.HostController.State.NOT_INSTALLED | 84 |
85 : remoting.HostController.State.NOT_IMPLEMENTED; | |
86 /** | 85 /** |
87 * @type {number} | 86 * @type {number} |
88 * @private | 87 * @private |
89 */ | 88 */ |
90 this.webappMajorVersion_ = parseInt(chrome.runtime.getManifest().version, 10); | 89 this.webappMajorVersion_ = parseInt(chrome.runtime.getManifest().version, 10); |
91 | 90 |
92 this.errorButton_.addEventListener('click', | 91 this.errorButton_.addEventListener('click', |
93 this.onErrorClick_.bind(this), | 92 this.onErrorClick_.bind(this), |
94 false); | 93 false); |
95 var reloadButton = this.loadingIndicator_.firstElementChild; | 94 var reloadButton = this.loadingIndicator_.firstElementChild; |
(...skipping 414 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
510 chrome.storage.local.set(items); | 509 chrome.storage.local.set(items); |
511 }; | 510 }; |
512 | 511 |
513 /** | 512 /** |
514 * Key name under which Me2Me hosts are cached. | 513 * Key name under which Me2Me hosts are cached. |
515 */ | 514 */ |
516 remoting.HostList.HOSTS_KEY = 'me2me-cached-hosts'; | 515 remoting.HostList.HOSTS_KEY = 'me2me-cached-hosts'; |
517 | 516 |
518 /** @type {remoting.HostList} */ | 517 /** @type {remoting.HostList} */ |
519 remoting.hostList = null; | 518 remoting.hostList = null; |
OLD | NEW |