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

Unified Diff: chrome/browser/resources/options2/options_focus_manager.js

Issue 10809005: Options: Rename chrome/browser/resources/options2 -> chrome/browser/resources/options. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix. Created 8 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/options2/options_focus_manager.js
diff --git a/chrome/browser/resources/options2/options_focus_manager.js b/chrome/browser/resources/options2/options_focus_manager.js
deleted file mode 100644
index d60814121545bc6134d0ad565fd56d32745d697a..0000000000000000000000000000000000000000
--- a/chrome/browser/resources/options2/options_focus_manager.js
+++ /dev/null
@@ -1,34 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-cr.define('options', function() {
- var FocusManager = cr.ui.FocusManager;
- var OptionsPage = options.OptionsPage;
-
- function OptionsFocusManager() {
- }
-
- cr.addSingletonGetter(OptionsFocusManager);
-
- OptionsFocusManager.prototype = {
- __proto__: FocusManager.prototype,
-
- /** @inheritDoc */
- getFocusParent: function() {
- var topPage = OptionsPage.getTopmostVisiblePage().pageDiv;
-
- // The default page and search page include a search field that is a
- // sibling of the rest of the page instead of a child. Thus, use the
- // parent node to allow the search field to receive focus.
- if (topPage.parentNode.id == 'page-container')
- return topPage.parentNode;
-
- return topPage;
- },
- };
-
- return {
- OptionsFocusManager: OptionsFocusManager,
- };
-});
« no previous file with comments | « chrome/browser/resources/options2/options_bundle.js ('k') | chrome/browser/resources/options2/options_page.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698