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

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

Issue 2734733002: Revert "chromeos: Move files in //ash/common to //ash, part 3" (Closed)
Patch Set: Created 3 years, 9 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/event_client_impl.cc ('k') | ash/wm/fullscreen_window_finder.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/focus_rules.h" 5 #include "ash/wm/focus_rules.h"
6 6
7 #include "ash/common/shell_delegate.h"
8 #include "ash/common/wm_shell.h"
9 #include "ash/common/wm_window.h"
7 #include "ash/public/cpp/shell_window_ids.h" 10 #include "ash/public/cpp/shell_window_ids.h"
8 #include "ash/shell_delegate.h"
9 #include "ash/wm/window_state.h" 11 #include "ash/wm/window_state.h"
10 #include "ash/wm_shell.h"
11 #include "ash/wm_window.h"
12 12
13 namespace ash { 13 namespace ash {
14 14
15 bool IsToplevelWindow(WmWindow* window) { 15 bool IsToplevelWindow(WmWindow* window) {
16 DCHECK(window); 16 DCHECK(window);
17 // The window must in a valid hierarchy. 17 // The window must in a valid hierarchy.
18 if (!window->GetRootWindow()) 18 if (!window->GetRootWindow())
19 return false; 19 return false;
20 20
21 // The window must exist within a container that supports activation. 21 // The window must exist within a container that supports activation.
(...skipping 28 matching lines...) Expand all
50 50
51 if (!window->GetTargetVisibility()) 51 if (!window->GetTargetVisibility())
52 return false; 52 return false;
53 53
54 const int parent_shell_window_id = window->GetParent()->GetShellWindowId(); 54 const int parent_shell_window_id = window->GetParent()->GetShellWindowId();
55 return parent_shell_window_id == kShellWindowId_DefaultContainer || 55 return parent_shell_window_id == kShellWindowId_DefaultContainer ||
56 parent_shell_window_id == kShellWindowId_LockScreenContainer; 56 parent_shell_window_id == kShellWindowId_LockScreenContainer;
57 } 57 }
58 58
59 } // namespace ash 59 } // namespace ash
OLDNEW
« no previous file with comments | « ash/wm/event_client_impl.cc ('k') | ash/wm/fullscreen_window_finder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698