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/immersive_revealed_lock.h" | 8 #include "ash/wm/immersive_revealed_lock.h" |
9 #include "ash/wm/window_state.h" | 9 #include "ash/wm/window_state.h" |
| 10 #include "base/macros.h" |
10 #include "chrome/browser/chrome_notification_types.h" | 11 #include "chrome/browser/chrome_notification_types.h" |
11 #include "chrome/browser/ui/exclusive_access/exclusive_access_manager.h" | 12 #include "chrome/browser/ui/exclusive_access/exclusive_access_manager.h" |
12 #include "chrome/browser/ui/exclusive_access/fullscreen_controller.h" | 13 #include "chrome/browser/ui/exclusive_access/fullscreen_controller.h" |
13 #include "chrome/browser/ui/views/frame/browser_view.h" | 14 #include "chrome/browser/ui/views/frame/browser_view.h" |
14 #include "chrome/browser/ui/views/frame/top_container_view.h" | 15 #include "chrome/browser/ui/views/frame/top_container_view.h" |
15 #include "chrome/browser/ui/views/tabs/tab_strip.h" | 16 #include "chrome/browser/ui/views/tabs/tab_strip.h" |
16 #include "content/public/browser/notification_service.h" | 17 #include "content/public/browser/notification_service.h" |
17 #include "content/public/browser/web_contents.h" | 18 #include "content/public/browser/web_contents.h" |
18 #include "ui/aura/window.h" | 19 #include "ui/aura/window.h" |
19 #include "ui/views/view.h" | 20 #include "ui/views/view.h" |
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
257 // prevent it from being revealed. | 258 // prevent it from being revealed. |
258 bool in_tab_fullscreen = content::Source<FullscreenController>(source)-> | 259 bool in_tab_fullscreen = content::Source<FullscreenController>(source)-> |
259 IsWindowFullscreenForTabOrPending(); | 260 IsWindowFullscreenForTabOrPending(); |
260 ash::wm::GetWindowState(native_window_)->set_hide_shelf_when_fullscreen( | 261 ash::wm::GetWindowState(native_window_)->set_hide_shelf_when_fullscreen( |
261 in_tab_fullscreen); | 262 in_tab_fullscreen); |
262 ash::Shell::GetInstance()->UpdateShelfVisibility(); | 263 ash::Shell::GetInstance()->UpdateShelfVisibility(); |
263 | 264 |
264 if (tab_indicator_visibility_changed) | 265 if (tab_indicator_visibility_changed) |
265 LayoutBrowserRootView(); | 266 LayoutBrowserRootView(); |
266 } | 267 } |
OLD | NEW |