| Index: ash/root_window_controller.cc
|
| diff --git a/ash/root_window_controller.cc b/ash/root_window_controller.cc
|
| index 1993e4184e3c7d404a58a6228c84512e224ea183..5ea37bbdbff3fcf462c0aca5b73a3cc5252f6068 100644
|
| --- a/ash/root_window_controller.cc
|
| +++ b/ash/root_window_controller.cc
|
| @@ -512,6 +512,16 @@ ShelfAlignment RootWindowController::GetShelfAlignment() {
|
| return shelf_->GetAlignment();
|
| }
|
|
|
| +bool RootWindowController::IsImmersiveMode() 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;
|
| + }
|
| + return false;
|
| +}
|
| +
|
| ////////////////////////////////////////////////////////////////////////////////
|
| // RootWindowController, private:
|
|
|
|
|