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

Side by Side Diff: ash/wm/window_util.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/window_util.h" 5 #include "ash/wm/window_util.h"
6 6
7 #include "ash/wm/activation_controller.h" 7 #include "ash/wm/activation_controller.h"
8 #include "ash/wm/property_util.h" 8 #include "ash/wm/property_util.h"
9 #include "ui/aura/client/activation_client.h" 9 #include "ui/aura/client/activation_client.h"
10 #include "ui/aura/client/aura_constants.h" 10 #include "ui/aura/client/aura_constants.h"
11 #include "ui/aura/root_window.h" 11 #include "ui/aura/root_window.h"
12 #include "ui/aura/window.h" 12 #include "ui/aura/window.h"
13 #include "ui/base/ui_base_types.h" 13 #include "ui/base/ui_base_types.h"
14 #include "ui/gfx/screen.h" 14 #include "ui/gfx/screen.h"
15 15
16 namespace aura_shell { 16 namespace ash {
17 17
18 bool IsWindowMaximized(aura::Window* window) { 18 bool IsWindowMaximized(aura::Window* window) {
19 return window->GetIntProperty(aura::client::kShowStateKey) == 19 return window->GetIntProperty(aura::client::kShowStateKey) ==
20 ui::SHOW_STATE_MAXIMIZED; 20 ui::SHOW_STATE_MAXIMIZED;
21 } 21 }
22 22
23 void ActivateWindow(aura::Window* window) { 23 void ActivateWindow(aura::Window* window) {
24 aura::client::GetActivationClient()->ActivateWindow(window); 24 aura::client::GetActivationClient()->ActivateWindow(window);
25 } 25 }
26 26
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 bool HasFullscreenWindow(const WindowSet& windows) { 69 bool HasFullscreenWindow(const WindowSet& windows) {
70 for (WindowSet::const_iterator i = windows.begin(); i != windows.end(); ++i) { 70 for (WindowSet::const_iterator i = windows.begin(); i != windows.end(); ++i) {
71 if ((*i)->GetIntProperty(aura::client::kShowStateKey) 71 if ((*i)->GetIntProperty(aura::client::kShowStateKey)
72 == ui::SHOW_STATE_FULLSCREEN) { 72 == ui::SHOW_STATE_FULLSCREEN) {
73 return true; 73 return true;
74 } 74 }
75 } 75 }
76 return false; 76 return false;
77 } 77 }
78 78
79 } // namespace aura_shell 79 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698