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

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

Issue 9033007: Rename the aura_shell namespace to 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
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/shell.h" 7 #include "ash/shell.h"
8 #include "ash/shell_window_ids.h" 8 #include "ash/shell_window_ids.h"
9 #include "ash/wm/window_util.h" 9 #include "ash/wm/window_util.h"
10 #include "base/auto_reset.h" 10 #include "base/auto_reset.h"
11 #include "ui/aura/client/activation_delegate.h" 11 #include "ui/aura/client/activation_delegate.h"
12 #include "ui/aura/root_window.h" 12 #include "ui/aura/root_window.h"
13 #include "ui/aura/window.h" 13 #include "ui/aura/window.h"
14 #include "ui/aura/window_delegate.h" 14 #include "ui/aura/window_delegate.h"
15 15
16 namespace aura_shell { 16 namespace ash {
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.
25 // These are the only containers in which windows can receive focus. 25 // These are the only containers in which windows can receive focus.
26 bool SupportsChildActivation(aura::Window* window) { 26 bool SupportsChildActivation(aura::Window* window) {
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 container->children().rbegin(); 177 container->children().rbegin();
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 ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698