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, |
- }; |
-}); |