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

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

Issue 9386032: [uber page] Migrate the virtual keyboard sub-page to a dialog (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: var rename Created 8 years, 10 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
« no previous file with comments | « chrome/browser/resources/options2/options.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/options2/options_page.js
diff --git a/chrome/browser/resources/options2/options_page.js b/chrome/browser/resources/options2/options_page.js
index 7b16dcc89f86af5ed44e868e2708fbb828eb9e41..5c9f60d49575285102be30605d6e62a50a4608f7 100644
--- a/chrome/browser/resources/options2/options_page.js
+++ b/chrome/browser/resources/options2/options_page.js
@@ -294,12 +294,15 @@ cr.define('options', function() {
* @return {OptionPage} The visible overlay.
*/
OptionsPage.getVisibleOverlay_ = function() {
+ var topmostPage = null;
for (var name in this.registeredOverlayPages) {
var page = this.registeredOverlayPages[name];
- if (page.visible)
- return page;
+ if (page.visible &&
+ (!topmostPage || page.nestingLevel > topmostPage.nestingLevel)) {
+ topmostPage = page;
+ }
}
- return null;
+ return topmostPage;
};
/**
« no previous file with comments | « chrome/browser/resources/options2/options.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698