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

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

Issue 9035001: Move some more WM functionality down into ash. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years 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 | Annotate | Revision Log
« no previous file with comments | « ash/shell/window_type_launcher.cc ('k') | ash/wm/activation_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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/activation_controller.h" 5 #include "ash/wm/activation_controller.h"
6 6
7 #include "ash/wm/window_util.h"
7 #include "base/auto_reset.h" 8 #include "base/auto_reset.h"
8 #include "ui/aura/client/activation_delegate.h" 9 #include "ui/aura/client/activation_delegate.h"
9 #include "ui/aura/root_window.h" 10 #include "ui/aura/root_window.h"
10 #include "ui/aura/window.h" 11 #include "ui/aura/window.h"
11 #include "ui/aura/window_delegate.h" 12 #include "ui/aura/window_delegate.h"
12 #include "ui/aura_shell/shell.h" 13 #include "ui/aura_shell/shell.h"
13 #include "ui/aura_shell/shell_window_ids.h" 14 #include "ui/aura_shell/shell_window_ids.h"
14 #include "ui/aura_shell/window_util.h"
15 15
16 namespace aura_shell { 16 namespace aura_shell {
17 namespace internal { 17 namespace internal {
18 namespace { 18 namespace {
19 19
20 aura::Window* GetContainer(int id) { 20 aura::Window* GetContainer(int id) {
21 return Shell::GetInstance()->GetContainer(id); 21 return Shell::GetInstance()->GetContainer(id);
22 } 22 }
23 23
24 // Returns true if children of |window| can be activated. 24 // Returns true if children of |window| can be activated.
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 i != container->children().rend(); 178 i != container->children().rend();
179 ++i) { 179 ++i) {
180 if (*i != ignore && CanActivateWindow(*i)) 180 if (*i != ignore && CanActivateWindow(*i))
181 return *i; 181 return *i;
182 } 182 }
183 return NULL; 183 return NULL;
184 } 184 }
185 185
186 } // namespace internal 186 } // namespace internal
187 } // namespace aura_shell 187 } // namespace aura_shell
OLDNEW
« no previous file with comments | « ash/shell/window_type_launcher.cc ('k') | ash/wm/activation_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698