blob: 5056c6857f9059eeeba18be0b0c5fe24c73c4ea7 [file] [log] [blame]
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
cr.define('extensions', function() {
var FocusManager = cr.ui.FocusManager;
function ExtensionFocusManager() {
}
cr.addSingletonGetter(ExtensionFocusManager);
ExtensionFocusManager.prototype = {
__proto__: FocusManager.prototype,
/** @inheritDoc */
getFocusParent: function() {
var overlay = extensions.ExtensionSettings.getCurrentOverlay();
return overlay || $('extension-settings');
},
};
return {
ExtensionFocusManager: ExtensionFocusManager,
};
});