| OLD | NEW |
| (Empty) |
| 1 // Copyright 2013 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. | |
| 4 | |
| 5 // Helper class for help page, that controls focus transition between | |
| 6 // elements on the help page and overlays. | |
| 7 cr.define('help', function() { | |
| 8 function HelpFocusManager() { | |
| 9 } | |
| 10 | |
| 11 cr.addSingletonGetter(HelpFocusManager); | |
| 12 | |
| 13 HelpFocusManager.prototype = { | |
| 14 __proto__: cr.ui.FocusManager.prototype, | |
| 15 | |
| 16 getFocusParent: function() { | |
| 17 var page = help.HelpPage.getTopmostVisiblePage(); | |
| 18 if (!page) | |
| 19 return null; | |
| 20 return page.pageDiv; | |
| 21 }, | |
| 22 }; | |
| 23 | |
| 24 return { | |
| 25 HelpFocusManager: HelpFocusManager, | |
| 26 }; | |
| 27 }); | |
| OLD | NEW |