Move Webstore URL concepts to //extensions and out
[chromium-blink-merge.git] / chrome / browser / resources / extensions / extension_focus_manager.js
blobb2200245b6e03a56fcd94f939da2a4dfc7a3c836
1 // Copyright (c) 2012 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 var FocusManager = cr.ui.FocusManager;
8 function ExtensionFocusManager() {
9 FocusManager.disableMouseFocusOnButtons();
12 cr.addSingletonGetter(ExtensionFocusManager);
14 ExtensionFocusManager.prototype = {
15 __proto__: FocusManager.prototype,
17 /** @override */
18 getFocusParent: function() {
19 var overlay = extensions.ExtensionSettings.getCurrentOverlay();
20 return overlay || $('extension-settings');
24 return {
25 ExtensionFocusManager: ExtensionFocusManager,
27 });