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

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

Issue 905433003: webui: remove FocusManager.disableMouseFocusOnButtons(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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
« no previous file with comments | « no previous file | chrome/browser/resources/help/help.js » ('j') | 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 /**
7 7 * @constructor
8 function ExtensionFocusManager() { 8 * @extends {cr.ui.FocusManager}
9 FocusManager.disableMouseFocusOnButtons(); 9 */
10 } 10 function ExtensionFocusManager() {}
11 11
12 cr.addSingletonGetter(ExtensionFocusManager); 12 cr.addSingletonGetter(ExtensionFocusManager);
13 13
14 ExtensionFocusManager.prototype = { 14 ExtensionFocusManager.prototype = {
15 __proto__: FocusManager.prototype, 15 __proto__: cr.ui.FocusManager.prototype,
16 16
17 /** @override */ 17 /** @override */
18 getFocusParent: function() { 18 getFocusParent: function() {
19 var overlay = extensions.ExtensionSettings.getCurrentOverlay(); 19 var overlay = extensions.ExtensionSettings.getCurrentOverlay();
20 return overlay || $('extension-settings'); 20 return overlay || $('extension-settings');
21 }, 21 },
22 }; 22 };
23 23
24 return { 24 return {
25 ExtensionFocusManager: ExtensionFocusManager, 25 ExtensionFocusManager: ExtensionFocusManager,
26 }; 26 };
27 }); 27 });
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/resources/help/help.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698