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

Side by Side Diff: chrome/browser/resources/downloads/focus_row.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 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 /** 6 /**
7 * @param {!Element} root 7 * @param {!Element} root
8 * @param {?Node} boundary 8 * @param {?Node} boundary
9 * @constructor 9 * @constructor
10 * @extends {cr.ui.FocusRow} 10 * @extends {cr.ui.FocusRow}
11 */ 11 */
12 function FocusRow(root, boundary) { 12 function FocusRow(root, boundary) {
13 cr.ui.FocusRow.call(this, root, boundary); 13 cr.ui.FocusRow.call(this, root, boundary);
14 14
15 assert(this.addItem('name', '[is="action-link"].name')); 15 assert(this.addItem('name', '[is="action-link"].name'));
16 assert(this.addItem('url', '.src-url')); 16 assert(this.addItem('url', '.src-url'));
17 assert(this.addItem('show-retry', '.safe .controls .show')); 17 assert(this.addItem('show-in-folder-retry',
18 assert(this.addItem('show-retry', '.retry')); 18 '.safe .controls .show-in-folder'));
19 assert(this.addItem('show-in-folder-retry', '.retry'));
19 assert(this.addItem('pause-resume', '.pause')); 20 assert(this.addItem('pause-resume', '.pause'));
20 assert(this.addItem('pause-resume', '.resume')); 21 assert(this.addItem('pause-resume', '.resume'));
21 assert(this.addItem('remove', '.remove')); 22 assert(this.addItem('remove', '.remove'));
22 assert(this.addItem('cancel', '.cancel')); 23 assert(this.addItem('cancel', '.cancel'));
23 assert(this.addItem('restore-save', '.restore')); 24 assert(this.addItem('restore-save', '.restore'));
24 assert(this.addItem('restore-save', '.save')); 25 assert(this.addItem('restore-save', '.save'));
25 assert(this.addItem('remove-discard', '.remove')); 26 assert(this.addItem('remove-discard', '.remove'));
26 assert(this.addItem('remove-discard', '.discard')); 27 assert(this.addItem('remove-discard', '.discard'));
27 } 28 }
28 29
29 FocusRow.prototype = {__proto__: cr.ui.FocusRow.prototype}; 30 FocusRow.prototype = {__proto__: cr.ui.FocusRow.prototype};
30 31
31 return {FocusRow: FocusRow}; 32 return {FocusRow: FocusRow};
32 }); 33 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698