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

Unified Diff: ash/root_window_controller.cc

Issue 23534049: RootWindowController::GetFullscreenWindow() should return the active one. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 7 years, 3 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 | « ash/root_window_controller.h ('k') | ash/root_window_controller_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/root_window_controller.cc
diff --git a/ash/root_window_controller.cc b/ash/root_window_controller.cc
index 9854d36a909a684c052bf5dcf9fd415781b5e1ad..5f934354eb1e6d7edf45150074e0b29795c122ce 100644
--- a/ash/root_window_controller.cc
+++ b/ash/root_window_controller.cc
@@ -501,9 +501,9 @@ void RootWindowController::UpdateShelfVisibility() {
shelf_->shelf_layout_manager()->UpdateVisibilityState();
}
-const aura::Window* RootWindowController::GetFullscreenWindow() const {
+const aura::Window* RootWindowController::GetTopmostFullscreenWindow() const {
const aura::Window* container = GetContainer(kShellWindowId_DefaultContainer);
- for (size_t i = 0; i < container->children().size(); ++i) {
+ for (int i = container->children().size() - 1; i >= 0; --i) {
sky 2013/09/05 16:21:59 How about a reverse iterator so I don't have to wo
Jun Mukai 2013/09/05 18:30:53 Done.
aura::Window* child = container->children()[i];
if (wm::IsWindowFullscreen(child))
return child;
« no previous file with comments | « ash/root_window_controller.h ('k') | ash/root_window_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698