OLD | NEW |
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 Loading... |
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 |
OLD | NEW |