Index: ash/root_window_controller.cc |
diff --git a/ash/root_window_controller.cc b/ash/root_window_controller.cc |
index 165a61df60657e1205b47bebbcf70b96a4e20c27..c0f9392cbd863e757966bf8f1e827cc7ae6f4f5b 100644 |
--- a/ash/root_window_controller.cc |
+++ b/ash/root_window_controller.cc |
@@ -35,6 +35,7 @@ |
#include "ash/wm/system_modal_container_layout_manager.h" |
#include "ash/wm/toplevel_window_event_handler.h" |
#include "ash/wm/window_properties.h" |
+#include "ash/wm/window_util.h" |
#include "ash/wm/workspace_controller.h" |
#include "base/command_line.h" |
#include "base/time.h" |
@@ -491,14 +492,14 @@ void RootWindowController::UpdateShelfVisibility() { |
shelf_->shelf_layout_manager()->UpdateVisibilityState(); |
} |
-bool RootWindowController::IsImmersiveMode() const { |
+aura::Window* RootWindowController::GetFullscreenWindow() const { |
aura::Window* container = workspace_controller_->GetActiveWorkspaceWindow(); |
for (size_t i = 0; i < container->children().size(); ++i) { |
aura::Window* child = container->children()[i]; |
- if (child->IsVisible() && child->GetProperty(kImmersiveModeKey)) |
- return true; |
+ if (ash::wm::IsWindowFullscreen(child)) |
+ return child; |
} |
- return false; |
+ return NULL; |
} |
void RootWindowController::InitKeyboard() { |