cygprofile: increase timeouts to allow showing web contents
[chromium-blink-merge.git] / chrome / browser / resources / extensions / focus_row.js
blob6e9b078f302ded21bcaa1f37875e340220b2af46
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() {
6 /**
7 * @param {!Element} root
8 * @param {Node} boundary
9 * @constructor
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,
19 /** @override */
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};
30 });