Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(29)

Side by Side Diff: chrome/browser/resources/extensions/extension_focus_manager.js

Issue 19471002: Extension settings: Should close the lid of a trash can. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 cr.define('extensions', function() { 5 cr.define('extensions', function() {
6 var FocusManager = cr.ui.FocusManager; 6 var FocusManager = cr.ui.FocusManager;
7 7
8 function ExtensionFocusManager() { 8 function ExtensionFocusManager() {
9 FocusManager.disableMouseFocusOnButtons();
9 } 10 }
10 11
11 cr.addSingletonGetter(ExtensionFocusManager); 12 cr.addSingletonGetter(ExtensionFocusManager);
12 13
13 ExtensionFocusManager.prototype = { 14 ExtensionFocusManager.prototype = {
14 __proto__: FocusManager.prototype, 15 __proto__: FocusManager.prototype,
15 16
16 /** @override */ 17 /** @override */
17 getFocusParent: function() { 18 getFocusParent: function() {
18 var overlay = extensions.ExtensionSettings.getCurrentOverlay(); 19 var overlay = extensions.ExtensionSettings.getCurrentOverlay();
19 return overlay || $('extension-settings'); 20 return overlay || $('extension-settings');
20 }, 21 },
21 }; 22 };
22 23
23 return { 24 return {
24 ExtensionFocusManager: ExtensionFocusManager, 25 ExtensionFocusManager: ExtensionFocusManager,
25 }; 26 };
26 }); 27 });
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698