| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/ui/views/frame/immersive_mode_controller_ash.h" | 5 #include "chrome/browser/ui/views/frame/immersive_mode_controller_ash.h" |
| 6 | 6 |
| 7 #include "ash/shell.h" | 7 #include "ash/shell.h" |
| 8 #include "ash/wm/common/window_state.h" |
| 8 #include "ash/wm/immersive_revealed_lock.h" | 9 #include "ash/wm/immersive_revealed_lock.h" |
| 9 #include "ash/wm/window_state.h" | |
| 10 #include "ash/wm/window_state_aura.h" | 10 #include "ash/wm/window_state_aura.h" |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "chrome/browser/chrome_notification_types.h" | 12 #include "chrome/browser/chrome_notification_types.h" |
| 13 #include "chrome/browser/ui/exclusive_access/exclusive_access_manager.h" | 13 #include "chrome/browser/ui/exclusive_access/exclusive_access_manager.h" |
| 14 #include "chrome/browser/ui/exclusive_access/fullscreen_controller.h" | 14 #include "chrome/browser/ui/exclusive_access/fullscreen_controller.h" |
| 15 #include "chrome/browser/ui/views/frame/browser_view.h" | 15 #include "chrome/browser/ui/views/frame/browser_view.h" |
| 16 #include "chrome/browser/ui/views/frame/top_container_view.h" | 16 #include "chrome/browser/ui/views/frame/top_container_view.h" |
| 17 #include "chrome/browser/ui/views/tabs/tab_strip.h" | 17 #include "chrome/browser/ui/views/tabs/tab_strip.h" |
| 18 #include "content/public/browser/notification_service.h" | 18 #include "content/public/browser/notification_service.h" |
| 19 #include "content/public/browser/web_contents.h" | 19 #include "content/public/browser/web_contents.h" |
| (...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 259 // prevent it from being revealed. | 259 // prevent it from being revealed. |
| 260 bool in_tab_fullscreen = content::Source<FullscreenController>(source)-> | 260 bool in_tab_fullscreen = content::Source<FullscreenController>(source)-> |
| 261 IsWindowFullscreenForTabOrPending(); | 261 IsWindowFullscreenForTabOrPending(); |
| 262 ash::wm::GetWindowState(native_window_)->set_hide_shelf_when_fullscreen( | 262 ash::wm::GetWindowState(native_window_)->set_hide_shelf_when_fullscreen( |
| 263 in_tab_fullscreen); | 263 in_tab_fullscreen); |
| 264 ash::Shell::GetInstance()->UpdateShelfVisibility(); | 264 ash::Shell::GetInstance()->UpdateShelfVisibility(); |
| 265 | 265 |
| 266 if (tab_indicator_visibility_changed) | 266 if (tab_indicator_visibility_changed) |
| 267 LayoutBrowserRootView(); | 267 LayoutBrowserRootView(); |
| 268 } | 268 } |
| OLD | NEW |