Index: ui/webui/resources/js/cr/ui/page_manager/page_manager.js |
diff --git a/ui/webui/resources/js/cr/ui/page_manager/page_manager.js b/ui/webui/resources/js/cr/ui/page_manager/page_manager.js |
index 8220c2cc7af419e126e9f9563c776a6aad52fe50..ae6283a8c019a587914e1b56054ab7686f44454e 100644 |
--- a/ui/webui/resources/js/cr/ui/page_manager/page_manager.js |
+++ b/ui/webui/resources/js/cr/ui/page_manager/page_manager.js |
@@ -3,8 +3,6 @@ |
// found in the LICENSE file. |
cr.define('cr.ui.pageManager', function() { |
- /** @const */ var FocusOutlineManager = cr.ui.FocusOutlineManager; |
- |
/** |
* PageManager contains a list of root Page and overlay Page objects and |
* handles "navigation" by showing and hiding these pages and overlays. On |
@@ -56,7 +54,7 @@ cr.define('cr.ui.pageManager', function() { |
initialize: function(defaultPage) { |
this.defaultPage_ = defaultPage; |
- FocusOutlineManager.forDocument(document); |
+ cr.ui.FocusOutlineManager.forDocument(document); |
document.addEventListener('scroll', this.handleScroll_.bind(this)); |
// Trigger the scroll handler manually to set the initial state. |
@@ -500,11 +498,10 @@ cr.define('cr.ui.pageManager', function() { |
// Change focus to the overlay if any other control was focused by |
// keyboard before. Otherwise, no one should have focus. |
if (document.activeElement != document.body) { |
- if (FocusOutlineManager.forDocument(document).visible) { |
+ if (cr.ui.FocusOutlineManager.forDocument(document).visible) |
overlay.focus(); |
- } else if (!overlay.pageDiv.contains(document.activeElement)) { |
+ if (!overlay.pageDiv.contains(document.activeElement)) |
document.activeElement.blur(); |
- } |
} |
if ($('search-field') && $('search-field').value == '') { |