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

Unified Diff: chrome/browser/resources/md_downloads/crisper.js

Issue 1409473002: MD Downloads: replace <paper-icon-button> with <inky-text-button> (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@iron-list3
Patch Set: crisp Created 5 years, 2 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/md_downloads/crisper.js
diff --git a/chrome/browser/resources/md_downloads/crisper.js b/chrome/browser/resources/md_downloads/crisper.js
index e3a387f45fafe32692e9c2b8f0365ced4f683bdd..7c3abc3aec25e4508745d7d0cf3488fee1ce7c99 100644
--- a/chrome/browser/resources/md_downloads/crisper.js
+++ b/chrome/browser/resources/md_downloads/crisper.js
@@ -12673,9 +12673,26 @@ cr.define('downloads', function() {
],
ready: function() {
+ this.listen(this.$.remove, 'down', 'activateRipple_');
+ this.listen(this.$.remove, 'up', 'deactivateRipple_');
+
this.content = this.$.content;
},
+ /**
+ * @param {!Event} e
+ * @private
+ */
+ activateRipple_: function(e) {
+ if (!this.removeRipple_) {
+ this.removeRipple_ = document.createElement('paper-ripple');
+ this.removeRipple_.setAttribute('center', '');
+ this.removeRipple_.classList.add('circle');
+ this.$.remove.appendChild(this.removeRipple_);
+ }
+ this.removeRipple_.downAction(e);
+ },
+
/** @private */
computeClass_: function() {
var classes = [];
@@ -12823,6 +12840,14 @@ cr.define('downloads', function() {
return '';
},
+ /**
+ * @param {!Event} e
+ * @private
+ */
+ deactivateRipple_: function(e) {
+ this.removeRipple_.upAction(e);
+ },
+
/** @private */
isIndeterminate_: function() {
return this.data.percent == -1;
« no previous file with comments | « no previous file | chrome/browser/resources/md_downloads/item.css » ('j') | chrome/browser/resources/md_downloads/item.html » ('J')

Powered by Google App Engine
This is Rietveld 408576698