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

Unified Diff: chrome/browser/resources/downloads/item_view.js

Issue 1325853006: MD Downloads: wrap some <paper-buttons>s in <template is="dom-if"> (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/downloads/item_view.js
diff --git a/chrome/browser/resources/downloads/item_view.js b/chrome/browser/resources/downloads/item_view.js
index f91d3fb1c086a76d47583a83395de1d9ff3393e5..c371eb8bea5cc0063dcfca039ab0cd409c0c1b4f 100644
--- a/chrome/browser/resources/downloads/item_view.js
+++ b/chrome/browser/resources/downloads/item_view.js
@@ -28,7 +28,7 @@ cr.define('downloads', function() {
this.fileLink_ = this.queryRequired_('[is="action-link"].name');
this.status_ = this.queryRequired_('.status');
this.srcUrl_ = this.queryRequired_('.src-url');
- this.show_ = this.queryRequired_('.show');
+ this.showInFolder_ = this.queryRequired_('.show-in-folder');
this.retry_ = this.queryRequired_('.retry');
this.pause_ = this.queryRequired_('.pause');
this.resume_ = this.queryRequired_('.resume');
@@ -49,7 +49,7 @@ cr.define('downloads', function() {
// Event handlers (bound once on creation).
this.safe_.ondragstart = this.onSafeDragstart_.bind(this);
this.fileLink_.onclick = this.onFileLinkClick_.bind(this);
- this.show_.onclick = this.onShowClick_.bind(this);
+ this.showInFolder_.onclick = this.onShowInFolderClick_.bind(this);
this.pause_.onclick = this.onPauseClick_.bind(this);
this.resume_.onclick = this.onResumeClick_.bind(this);
this.safeRemove_.onclick = this.onSafeRemoveClick_.bind(this);
@@ -176,7 +176,7 @@ cr.define('downloads', function() {
this.ensureTextIs_(this.fileName_, data.file_name);
this.fileName_.hidden = completelyOnDisk;
- this.show_.hidden = !completelyOnDisk;
+ this.showInFolder_.hidden = !completelyOnDisk;
this.retry_.href = data.url;
this.retry_.hidden = !data.retry;
@@ -346,8 +346,8 @@ cr.define('downloads', function() {
},
/** @private */
- onShowClick_: function() {
- chrome.send('show', [this.id_]);
+ onShowInFolderClick_: function() {
+ chrome.send('showInFolder', [this.id_]);
},
/** @private */

Powered by Google App Engine
This is Rietveld 408576698