| OLD | NEW |
| 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 this.addItem('name-file-link', | 15 this.addItem('name-file-link', |
| 16 '#content.is-active:not(.show-progress) #name'); | 16 '#content.is-active:not(.show-progress) #name'); |
| 17 assert(this.addItem('name-file-link', '#file-link')); | 17 assert(this.addItem('name-file-link', '#file-link')); |
| 18 assert(this.addItem('url', '#url')); | 18 assert(this.addItem('url', '#url')); |
| 19 assert(this.addItem('show-retry', '#show')); | 19 this.addItem('show-retry', '#show'); |
| 20 assert(this.addItem('show-retry', '#retry')); | 20 this.addItem('show-retry', '#retry'); |
| 21 assert(this.addItem('pause-resume', '#pause')); | 21 this.addItem('pause-resume', '#pause'); |
| 22 assert(this.addItem('pause-resume', '#resume')); | 22 this.addItem('pause-resume', '#resume'); |
| 23 assert(this.addItem('cancel', '#cancel')); | 23 this.addItem('cancel', '#cancel'); |
| 24 this.addItem('controlled-by', '#controlled-by a'); | 24 this.addItem('controlled-by', '#controlled-by a'); |
| 25 assert(this.addItem('danger-remove-discard', '#discard')); | 25 assert(this.addItem('danger-remove-discard', '#discard')); |
| 26 assert(this.addItem('restore-save', '#save')); | 26 assert(this.addItem('restore-save', '#save')); |
| 27 assert(this.addItem('danger-remove-discard', '#danger-remove')); | 27 assert(this.addItem('danger-remove-discard', '#danger-remove')); |
| 28 assert(this.addItem('restore-save', '#restore')); | 28 assert(this.addItem('restore-save', '#restore')); |
| 29 assert(this.addItem('remove', '#remove')); | 29 assert(this.addItem('remove', '#remove')); |
| 30 } | 30 } |
| 31 | 31 |
| 32 FocusRow.prototype = {__proto__: cr.ui.FocusRow.prototype}; | 32 FocusRow.prototype = {__proto__: cr.ui.FocusRow.prototype}; |
| 33 | 33 |
| 34 return {FocusRow: FocusRow}; | 34 return {FocusRow: FocusRow}; |
| 35 }); | 35 }); |
| OLD | NEW |