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

Side by Side Diff: chrome/browser/resources/help/help_focus_manager.js

Issue 423533003: Use PageManager in About page (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix settings app browser test Created 6 years, 4 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
OLDNEW
(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 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/help/help_content.html ('k') | chrome/browser/resources/help/help_page.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698