| 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 #ifndef ASH_WM_WINDOW_UTIL_H_ | 5 #ifndef ASH_WM_WINDOW_UTIL_H_ |
| 6 #define ASH_WM_WINDOW_UTIL_H_ | 6 #define ASH_WM_WINDOW_UTIL_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <set> | 9 #include <set> |
| 10 | 10 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 ASH_EXPORT bool IsActiveWindow(aura::Window* window); | 23 ASH_EXPORT bool IsActiveWindow(aura::Window* window); |
| 24 ASH_EXPORT aura::Window* GetActiveWindow(); | 24 ASH_EXPORT aura::Window* GetActiveWindow(); |
| 25 | 25 |
| 26 // Retrieves the activatable window for |window|. If |window| is activatable, | 26 // Retrieves the activatable window for |window|. If |window| is activatable, |
| 27 // this will just return it, otherwise it will climb the parent/transient parent | 27 // this will just return it, otherwise it will climb the parent/transient parent |
| 28 // chain looking for a window that is activatable, per the ActivationController. | 28 // chain looking for a window that is activatable, per the ActivationController. |
| 29 // If you're looking for a function to get the activatable "top level" window, | 29 // If you're looking for a function to get the activatable "top level" window, |
| 30 // this is probably what you're looking for. | 30 // this is probably what you're looking for. |
| 31 ASH_EXPORT aura::Window* GetActivatableWindow(aura::Window* window); | 31 ASH_EXPORT aura::Window* GetActivatableWindow(aura::Window* window); |
| 32 | 32 |
| 33 // Returns true if |window| is normal or default. |
| 34 ASH_EXPORT bool IsWindowNormal(aura::Window* window); |
| 35 |
| 33 // Returns true if |window| is in the maximized state. | 36 // Returns true if |window| is in the maximized state. |
| 34 ASH_EXPORT bool IsWindowMaximized(aura::Window* window); | 37 ASH_EXPORT bool IsWindowMaximized(aura::Window* window); |
| 35 | 38 |
| 36 // Returns true if |window| is in the fullscreen state. | 39 // Returns true if |window| is in the fullscreen state. |
| 37 ASH_EXPORT bool IsWindowFullscreen(aura::Window* window); | 40 ASH_EXPORT bool IsWindowFullscreen(aura::Window* window); |
| 38 | 41 |
| 39 // Maximizes |window|, which must not be NULL. | 42 // Maximizes |window|, which must not be NULL. |
| 40 ASH_EXPORT void MaximizeWindow(aura::Window* window); | 43 ASH_EXPORT void MaximizeWindow(aura::Window* window); |
| 41 | 44 |
| 42 // Restores |window|, which must not be NULL. | 45 // Restores |window|, which must not be NULL. |
| 43 ASH_EXPORT void RestoreWindow(aura::Window* window); | 46 ASH_EXPORT void RestoreWindow(aura::Window* window); |
| 44 | 47 |
| 45 // Returns true if the set of |windows| contains a full-screen window. | 48 // Returns true if the set of |windows| contains a full-screen window. |
| 46 typedef std::set<aura::Window*> WindowSet; | 49 typedef std::set<aura::Window*> WindowSet; |
| 47 ASH_EXPORT bool HasFullscreenWindow(const WindowSet& windows); | 50 ASH_EXPORT bool HasFullscreenWindow(const WindowSet& windows); |
| 48 | 51 |
| 49 // Sets whether the window should be open in a split mode. Only applicable when | 52 // Sets whether the window should be open in a split mode. Only applicable when |
| 50 // workspaces are used. | 53 // workspaces are used. |
| 51 ASH_EXPORT void SetOpenWindowSplit(aura::Window* window, bool value); | 54 ASH_EXPORT void SetOpenWindowSplit(aura::Window* window, bool value); |
| 52 ASH_EXPORT bool GetOpenWindowSplit(aura::Window* window); | 55 ASH_EXPORT bool GetOpenWindowSplit(aura::Window* window); |
| 53 | 56 |
| 54 } // namespace wm | 57 } // namespace wm |
| 55 } // namespace ash | 58 } // namespace ash |
| 56 | 59 |
| 57 #endif // ASH_WM_WINDOW_UTIL_H_ | 60 #endif // ASH_WM_WINDOW_UTIL_H_ |
| OLD | NEW |