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/shared/immersive_revealed_lock.h" | 7 #include "ash/shared/immersive_revealed_lock.h" |
8 #include "ash/shell.h" | 8 #include "ash/shell.h" |
9 #include "ash/wm/window_state.h" | 9 #include "ash/wm/window_state.h" |
10 #include "ash/wm/window_state_aura.h" | |
11 #include "base/macros.h" | 10 #include "base/macros.h" |
12 #include "base/memory/ptr_util.h" | 11 #include "base/memory/ptr_util.h" |
13 #include "chrome/browser/chrome_notification_types.h" | 12 #include "chrome/browser/chrome_notification_types.h" |
14 #include "chrome/browser/ui/ash/ash_util.h" | 13 #include "chrome/browser/ui/ash/ash_util.h" |
15 #include "chrome/browser/ui/exclusive_access/exclusive_access_manager.h" | 14 #include "chrome/browser/ui/exclusive_access/exclusive_access_manager.h" |
16 #include "chrome/browser/ui/exclusive_access/fullscreen_controller.h" | 15 #include "chrome/browser/ui/exclusive_access/fullscreen_controller.h" |
17 #include "chrome/browser/ui/views/frame/browser_view.h" | 16 #include "chrome/browser/ui/views/frame/browser_view.h" |
18 #include "chrome/browser/ui/views/frame/top_container_view.h" | 17 #include "chrome/browser/ui/views/frame/top_container_view.h" |
19 #include "chrome/browser/ui/views/tabs/tab_strip.h" | 18 #include "chrome/browser/ui/views/tabs/tab_strip.h" |
20 #include "content/public/browser/notification_service.h" | 19 #include "content/public/browser/notification_service.h" |
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
350 const void* key, | 349 const void* key, |
351 intptr_t old) { | 350 intptr_t old) { |
352 // In mash the window manager may move us out of immersive mode by changing | 351 // In mash the window manager may move us out of immersive mode by changing |
353 // the show state. When this happens notify the controller. | 352 // the show state. When this happens notify the controller. |
354 DCHECK(ash_util::IsRunningInMash()); | 353 DCHECK(ash_util::IsRunningInMash()); |
355 if (key == aura::client::kShowStateKey && | 354 if (key == aura::client::kShowStateKey && |
356 !browser_view_->GetWidget()->IsFullscreen()) { | 355 !browser_view_->GetWidget()->IsFullscreen()) { |
357 SetEnabled(false); | 356 SetEnabled(false); |
358 } | 357 } |
359 } | 358 } |
OLD | NEW |