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

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

Issue 132793007: Download the host components when user tries to enable Me2Me host. (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_dispatcher.js ('k') | remoting/webapp/host_native_messaging.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.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
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;
OLDNEW
« no previous file with comments | « remoting/webapp/host_dispatcher.js ('k') | remoting/webapp/host_native_messaging.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698