OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "ash/wm/fullscreen_window_finder.h" | 5 #include "ash/wm/fullscreen_window_finder.h" |
6 | 6 |
7 #include "ash/public/cpp/shell_window_ids.h" | 7 #include "ash/public/cpp/shell_window_ids.h" |
8 #include "ash/wm/switchable_windows.h" | 8 #include "ash/wm/switchable_windows.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 "ash/wm/window_util.h" | 10 #include "ash/wm/window_util.h" |
12 #include "ui/aura/window.h" | 11 #include "ui/aura/window.h" |
13 #include "ui/compositor/layer.h" | 12 #include "ui/compositor/layer.h" |
14 #include "ui/wm/core/window_util.h" | 13 #include "ui/wm/core/window_util.h" |
15 | 14 |
16 namespace ash { | 15 namespace ash { |
17 namespace wm { | 16 namespace wm { |
18 | 17 |
19 aura::Window* GetWindowForFullscreenMode(aura::Window* context) { | 18 aura::Window* GetWindowForFullscreenMode(aura::Window* context) { |
20 aura::Window* topmost_window = nullptr; | 19 aura::Window* topmost_window = nullptr; |
(...skipping 25 matching lines...) Expand all Loading... |
46 while (topmost_window) { | 45 while (topmost_window) { |
47 if (GetWindowState(topmost_window)->IsFullscreen()) | 46 if (GetWindowState(topmost_window)->IsFullscreen()) |
48 return topmost_window; | 47 return topmost_window; |
49 topmost_window = ::wm::GetTransientParent(topmost_window); | 48 topmost_window = ::wm::GetTransientParent(topmost_window); |
50 } | 49 } |
51 return nullptr; | 50 return nullptr; |
52 } | 51 } |
53 | 52 |
54 } // namespace wm | 53 } // namespace wm |
55 } // namespace ash | 54 } // namespace ash |
OLD | NEW |