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

Side by Side Diff: chrome/browser/resources/md_downloads/item.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: revert some hunks 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 cr.define('downloads', function() { 5 cr.define('downloads', function() {
6 var InkyTextButton = Polymer({
7 is: 'inky-text-button',
8
9 behaviors: [
10 Polymer.PaperInkyFocusBehavior
11 ],
12
13 hostAttributes: {
14 role: 'button',
15 tabindex: 0,
16 },
17 });
18
6 var Item = Polymer({ 19 var Item = Polymer({
7 is: 'downloads-item', 20 is: 'downloads-item',
8 21
9 properties: { 22 properties: {
10 data: { 23 data: {
11 type: Object, 24 type: Object,
12 }, 25 },
13 26
14 hideDate: { 27 hideDate: {
15 type: Boolean, 28 type: Boolean,
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 onSaveDangerousTap_: function() { 325 onSaveDangerousTap_: function() {
313 downloads.ActionService.getInstance().saveDangerous(this.data.id); 326 downloads.ActionService.getInstance().saveDangerous(this.data.id);
314 }, 327 },
315 328
316 /** @private */ 329 /** @private */
317 onShowTap_: function() { 330 onShowTap_: function() {
318 downloads.ActionService.getInstance().show(this.data.id); 331 downloads.ActionService.getInstance().show(this.data.id);
319 }, 332 },
320 }); 333 });
321 334
322 return {Item: Item}; 335 return {
336 InkyTextButton: InkyTextButton,
337 Item: Item,
338 };
323 }); 339 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/md_downloads/item.html ('k') | chrome/browser/resources/md_downloads/vulcanized.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698