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
3 // found in the LICENSE file.
5 cr.define('downloads', function() {
7 * @param {!Element} root
8 * @param {?Node} boundary
10 * @extends {cr.ui.FocusRow}
12 function FocusRow(root, boundary) {
13 cr.ui.FocusRow.call(this, root, boundary);
15 assert(this.addItem('name', '[is="action-link"].name'));
16 assert(this.addItem('url', '.src-url'));
17 assert(this.addItem('show-retry', '.safe .controls .show'));
18 assert(this.addItem('show-retry', '.retry'));
19 assert(this.addItem('pause-resume', '.pause'));
20 assert(this.addItem('pause-resume', '.resume'));
21 assert(this.addItem('remove', '.remove'));
22 assert(this.addItem('cancel', '.cancel'));
23 assert(this.addItem('restore-save', '.restore'));
24 assert(this.addItem('restore-save', '.save'));
25 assert(this.addItem('remove-discard', '.remove'));
26 assert(this.addItem('remove-discard', '.discard'));
29 FocusRow.prototype = {__proto__: cr.ui.FocusRow.prototype};
31 return {FocusRow: FocusRow};