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

Side by Side Diff: chrome/browser/resources/downloads/downloads.js

Issue 13467030: chrome://downloads Retry link use HTML5 a[download] (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: @r192821 Created 7 years, 8 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 | « chrome/browser/resources/downloads/OWNERS ('k') | no next file » | 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 // TODO(jhawkins): Use hidden instead of showInline* and display:none. 5 // TODO(jhawkins): Use hidden instead of showInline* and display:none.
6 6
7 /** 7 /**
8 * Sets the display style of a node. 8 * Sets the display style of a node.
9 * @param {!Element} node The target element to show or hide. 9 * @param {!Element} node The target element to show or hide.
10 * @param {boolean} isShow Should the target element be visible. 10 * @param {boolean} isShow Should the target element be visible.
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
299 // http://code.google.com/p/chromium-os/issues/detail?id=916. 299 // http://code.google.com/p/chromium-os/issues/detail?id=916.
300 if (loadTimeData.valueExists('control_showinfolder')) { 300 if (loadTimeData.valueExists('control_showinfolder')) {
301 this.controlShow_ = createLink(this.show_.bind(this), 301 this.controlShow_ = createLink(this.show_.bind(this),
302 loadTimeData.getString('control_showinfolder')); 302 loadTimeData.getString('control_showinfolder'));
303 this.nodeControls_.appendChild(this.controlShow_); 303 this.nodeControls_.appendChild(this.controlShow_);
304 } else { 304 } else {
305 this.controlShow_ = null; 305 this.controlShow_ = null;
306 } 306 }
307 307
308 this.controlRetry_ = document.createElement('a'); 308 this.controlRetry_ = document.createElement('a');
309 this.controlRetry_.download = '';
309 this.controlRetry_.textContent = loadTimeData.getString('control_retry'); 310 this.controlRetry_.textContent = loadTimeData.getString('control_retry');
310 this.nodeControls_.appendChild(this.controlRetry_); 311 this.nodeControls_.appendChild(this.controlRetry_);
311 312
312 // Pause/Resume are a toggle. 313 // Pause/Resume are a toggle.
313 this.controlPause_ = createLink(this.pause_.bind(this), 314 this.controlPause_ = createLink(this.pause_.bind(this),
314 loadTimeData.getString('control_pause')); 315 loadTimeData.getString('control_pause'));
315 this.nodeControls_.appendChild(this.controlPause_); 316 this.nodeControls_.appendChild(this.controlPause_);
316 317
317 this.controlResume_ = createLink(this.resume_.bind(this), 318 this.controlResume_ = createLink(this.resume_.bind(this),
318 loadTimeData.getString('control_resume')); 319 loadTimeData.getString('control_resume'));
(...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after
750 if (Date.now() - start > 50) { 751 if (Date.now() - start > 50) {
751 clearTimeout(resultsTimeout); 752 clearTimeout(resultsTimeout);
752 resultsTimeout = setTimeout(tryDownloadUpdatedPeriodically, 5); 753 resultsTimeout = setTimeout(tryDownloadUpdatedPeriodically, 5);
753 break; 754 break;
754 } 755 }
755 } 756 }
756 } 757 }
757 758
758 // Add handlers to HTML elements. 759 // Add handlers to HTML elements.
759 window.addEventListener('DOMContentLoaded', load); 760 window.addEventListener('DOMContentLoaded', load);
OLDNEW
« no previous file with comments | « chrome/browser/resources/downloads/OWNERS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698