Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Side by Side Diff: remoting/webapp/host_list.js

Issue 160963003: Minor cleanups in UI code that gets host state when webapp is stared (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « remoting/webapp/host_controller.js ('k') | remoting/webapp/remoting.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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;
OLDNEW
« no previous file with comments | « remoting/webapp/host_controller.js ('k') | remoting/webapp/remoting.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698