Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(449)

Side by Side Diff: ash/wm/fullscreen_window_finder.cc

Issue 2889413002: chromeos: nukes window_state_aura (Closed)
Patch Set: merge, remove include from windows and shuffle functions for declaration Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ash/wm/ash_focus_rules_unittest.cc ('k') | ash/wm/immersive_fullscreen_controller_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « ash/wm/ash_focus_rules_unittest.cc ('k') | ash/wm/immersive_fullscreen_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698