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('extensions', 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);
16 FocusRow.prototype = {
17 __proto__: cr.ui.FocusRow.prototype,
20 makeActive: function(active) {
21 cr.ui.FocusRow.prototype.makeActive.call(this, active);
23 // Only highlight if the row has focus.
24 this.root.classList.toggle('extension-highlight',
25 active && this.root.contains(document.activeElement));
29 return {FocusRow: FocusRow};