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

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

Issue 9582038: CSS clean-up. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed dangling brace. Created 8 years, 9 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/connection_history.css ('k') | remoting/webapp/main.css » ('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 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 /** 194 /**
195 * Show or hide the host-list UI. 195 * Show or hide the host-list UI.
196 * 196 *
197 * @param {boolean} show True to show the UI, or false to hide it. 197 * @param {boolean} show True to show the UI, or false to hide it.
198 * @return {void} Nothing. 198 * @return {void} Nothing.
199 * @private 199 * @private
200 */ 200 */
201 remoting.HostList.prototype.showOrHide_ = function(show) { 201 remoting.HostList.prototype.showOrHide_ = function(show) {
202 var parent = /** @type {Element} */ (this.table_.parentNode); 202 var parent = /** @type {Element} */ (this.table_.parentNode);
203 parent.hidden = !show; 203 parent.hidden = !show;
204 if (show) {
205 removeClass(parent, remoting.HostList.COLLAPSED_);
206 } else {
207 addClass(parent, remoting.HostList.COLLAPSED_);
208 }
209 }; 204 };
210 205
211 /** 206 /**
212 * Remove a host from the list, and deregister it. 207 * Remove a host from the list, and deregister it.
213 * @param {remoting.HostTableEntry} hostTableEntry The host to be removed. 208 * @param {remoting.HostTableEntry} hostTableEntry The host to be removed.
214 * @return {void} Nothing. 209 * @return {void} Nothing.
215 * @private 210 * @private
216 */ 211 */
217 remoting.HostList.prototype.deleteHost_ = function(hostTableEntry) { 212 remoting.HostList.prototype.deleteHost_ = function(hostTableEntry) {
218 this.table_.removeChild(hostTableEntry.tableRow); 213 this.table_.removeChild(hostTableEntry.tableRow);
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 'https://www.googleapis.com/chromoting/v1/@me/hosts/' + 251 'https://www.googleapis.com/chromoting/v1/@me/hosts/' +
257 hostTableEntry.host.hostId, 252 hostTableEntry.host.hostId,
258 function(xhr) {}, 253 function(xhr) {},
259 JSON.stringify(newHostDetails), 254 JSON.stringify(newHostDetails),
260 headers); 255 headers);
261 } 256 }
262 remoting.oauth2.callWithToken(renameHost); 257 remoting.oauth2.callWithToken(renameHost);
263 }; 258 };
264 259
265 /** 260 /**
266 * Class name for the host list when it is collapsed.
267 * @private
268 */
269 remoting.HostList.COLLAPSED_ = 'collapsed';
270
271 /**
272 * Key name under which Me2Me hosts are cached. 261 * Key name under which Me2Me hosts are cached.
273 */ 262 */
274 remoting.HostList.HOSTS_KEY = 'me2me-cached-hosts'; 263 remoting.HostList.HOSTS_KEY = 'me2me-cached-hosts';
275 264
276 /** @type {remoting.HostList} */ 265 /** @type {remoting.HostList} */
277 remoting.hostList = null; 266 remoting.hostList = null;
OLDNEW
« no previous file with comments | « remoting/webapp/connection_history.css ('k') | remoting/webapp/main.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698