| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/shell.h" | 7 #include "ash/shell.h" |
| 8 #include "ash/wm/activation_controller.h" | 8 #include "ash/wm/activation_controller.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" |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 | 46 |
| 47 aura::Window* GetActiveWindow() { | 47 aura::Window* GetActiveWindow() { |
| 48 return aura::client::GetActivationClient(Shell::GetRootWindow())-> | 48 return aura::client::GetActivationClient(Shell::GetRootWindow())-> |
| 49 GetActiveWindow(); | 49 GetActiveWindow(); |
| 50 } | 50 } |
| 51 | 51 |
| 52 aura::Window* GetActivatableWindow(aura::Window* window) { | 52 aura::Window* GetActivatableWindow(aura::Window* window) { |
| 53 return internal::ActivationController::GetActivatableWindow(window, NULL); | 53 return internal::ActivationController::GetActivatableWindow(window, NULL); |
| 54 } | 54 } |
| 55 | 55 |
| 56 bool CanActivateWindowItself(aura::Window* window) { |
| 57 return internal::ActivationController::CanActivateWindowItself(window); |
| 58 } |
| 59 |
| 56 bool IsWindowNormal(aura::Window* window) { | 60 bool IsWindowNormal(aura::Window* window) { |
| 57 return window->GetProperty(aura::client::kShowStateKey) == | 61 return window->GetProperty(aura::client::kShowStateKey) == |
| 58 ui::SHOW_STATE_NORMAL || | 62 ui::SHOW_STATE_NORMAL || |
| 59 window->GetProperty(aura::client::kShowStateKey) == | 63 window->GetProperty(aura::client::kShowStateKey) == |
| 60 ui::SHOW_STATE_DEFAULT; | 64 ui::SHOW_STATE_DEFAULT; |
| 61 } | 65 } |
| 62 | 66 |
| 63 bool IsWindowMaximized(aura::Window* window) { | 67 bool IsWindowMaximized(aura::Window* window) { |
| 64 return window->GetProperty(aura::client::kShowStateKey) == | 68 return window->GetProperty(aura::client::kShowStateKey) == |
| 65 ui::SHOW_STATE_MAXIMIZED; | 69 ui::SHOW_STATE_MAXIMIZED; |
| (...skipping 20 matching lines...) Expand all Loading... |
| 86 void SetOpenWindowSplit(aura::Window* window, bool value) { | 90 void SetOpenWindowSplit(aura::Window* window, bool value) { |
| 87 window->SetProperty(kOpenWindowSplitKey, value); | 91 window->SetProperty(kOpenWindowSplitKey, value); |
| 88 } | 92 } |
| 89 | 93 |
| 90 bool GetOpenWindowSplit(aura::Window* window) { | 94 bool GetOpenWindowSplit(aura::Window* window) { |
| 91 return window->GetProperty(kOpenWindowSplitKey); | 95 return window->GetProperty(kOpenWindowSplitKey); |
| 92 } | 96 } |
| 93 | 97 |
| 94 } // namespace wm | 98 } // namespace wm |
| 95 } // namespace ash | 99 } // namespace ash |
| OLD | NEW |