| 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 | 7 |
| 8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "ui/base/ui_base_types.h" | 10 #include "ui/base/ui_base_types.h" |
| 11 | 11 |
| 12 namespace aura { | 12 namespace aura { |
| 13 class Window; | 13 class Window; |
| 14 } | 14 } |
| 15 | 15 |
| 16 namespace ui { | 16 namespace ui { |
| 17 class Event; | 17 class Event; |
| 18 } | 18 } |
| 19 | 19 |
| 20 namespace ash { | 20 namespace ash { |
| 21 | 21 |
| 22 namespace wm { | 22 namespace wm { |
| 23 | 23 |
| 24 // Utility functions for window activation. | 24 // Utility functions for window activation. |
| 25 ASH_EXPORT void ActivateWindow(aura::Window* window); | 25 ASH_EXPORT void ActivateWindow(aura::Window* window); |
| 26 ASH_EXPORT void DeactivateWindow(aura::Window* window); | 26 ASH_EXPORT void DeactivateWindow(aura::Window* window); |
| 27 ASH_EXPORT bool IsActiveWindow(aura::Window* window); | 27 ASH_EXPORT bool IsActiveWindow(aura::Window* window); |
| 28 ASH_EXPORT aura::Window* GetActiveWindow(); | 28 ASH_EXPORT aura::Window* GetActiveWindow(); |
| 29 ASH_EXPORT bool CanActivateWindow(aura::Window* window); | 29 ASH_EXPORT bool CanActivateWindow(aura::Window* window); |
| 30 ASH_EXPORT void SetWindowFullscreen(aura::Window* window, bool fullscreen); |
| 30 | 31 |
| 31 // Retrieves the activatable window for |window|. If |window| is activatable, | 32 // Retrieves the activatable window for |window|. If |window| is activatable, |
| 32 // this will just return it, otherwise it will climb the parent/transient parent | 33 // this will just return it, otherwise it will climb the parent/transient parent |
| 33 // chain looking for a window that is activatable, per the ActivationController. | 34 // chain looking for a window that is activatable, per the ActivationController. |
| 34 // If you're looking for a function to get the activatable "top level" window, | 35 // If you're looking for a function to get the activatable "top level" window, |
| 35 // this is probably what you're looking for. | 36 // this is probably what you're looking for. |
| 36 ASH_EXPORT aura::Window* GetActivatableWindow(aura::Window* window); | 37 ASH_EXPORT aura::Window* GetActivatableWindow(aura::Window* window); |
| 37 | 38 |
| 38 // Returns true if |window|'s location can be controlled by the user. | 39 // Returns true if |window|'s location can be controlled by the user. |
| 39 ASH_EXPORT bool IsWindowUserPositionable(aura::Window* window); | 40 ASH_EXPORT bool IsWindowUserPositionable(aura::Window* window); |
| (...skipping 11 matching lines...) Expand all Loading... |
| 51 | 52 |
| 52 // Mark the container window so that InstallSnapLayoutManagerToContainers | 53 // Mark the container window so that InstallSnapLayoutManagerToContainers |
| 53 // installs the SnapToPixelLayoutManager. | 54 // installs the SnapToPixelLayoutManager. |
| 54 ASH_EXPORT void SetSnapsChildrenToPhysicalPixelBoundary( | 55 ASH_EXPORT void SetSnapsChildrenToPhysicalPixelBoundary( |
| 55 aura::Window* container); | 56 aura::Window* container); |
| 56 | 57 |
| 57 } // namespace wm | 58 } // namespace wm |
| 58 } // namespace ash | 59 } // namespace ash |
| 59 | 60 |
| 60 #endif // ASH_WM_WINDOW_UTIL_H_ | 61 #endif // ASH_WM_WINDOW_UTIL_H_ |
| OLD | NEW |