| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "ash/ash_export.h" | 10 #include "ash/ash_export.h" |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 // If you're looking for a function to get the activatable "top level" window, | 36 // If you're looking for a function to get the activatable "top level" window, |
| 37 // this is probably what you're looking for. | 37 // this is probably what you're looking for. |
| 38 ASH_EXPORT aura::Window* GetActivatableWindow(aura::Window* window); | 38 ASH_EXPORT aura::Window* GetActivatableWindow(aura::Window* window); |
| 39 | 39 |
| 40 // Returns true if |window|'s location can be controlled by the user. | 40 // Returns true if |window|'s location can be controlled by the user. |
| 41 ASH_EXPORT bool IsWindowUserPositionable(aura::Window* window); | 41 ASH_EXPORT bool IsWindowUserPositionable(aura::Window* window); |
| 42 | 42 |
| 43 // Pins the window on top of other windows. | 43 // Pins the window on top of other windows. |
| 44 ASH_EXPORT void PinWindow(aura::Window* window, bool trusted); | 44 ASH_EXPORT void PinWindow(aura::Window* window, bool trusted); |
| 45 | 45 |
| 46 // Indicates that the window should autohide the shelf when it is the active |
| 47 // window. |
| 48 ASH_EXPORT void SetAutoHideShelf(aura::Window* window, bool autohide); |
| 49 |
| 46 // Moves |window| to the root window for the given |display_id|, if it is not | 50 // Moves |window| to the root window for the given |display_id|, if it is not |
| 47 // already in the same root window. Returns true if |window| was moved. | 51 // already in the same root window. Returns true if |window| was moved. |
| 48 ASH_EXPORT bool MoveWindowToDisplay(aura::Window* window, int64_t display_id); | 52 ASH_EXPORT bool MoveWindowToDisplay(aura::Window* window, int64_t display_id); |
| 49 | 53 |
| 50 // Moves |window| to the root window where the |event| occurred, if it is not | 54 // Moves |window| to the root window where the |event| occurred, if it is not |
| 51 // already in the same root window. Returns true if |window| was moved. | 55 // already in the same root window. Returns true if |window| was moved. |
| 52 ASH_EXPORT bool MoveWindowToEventRoot(aura::Window* window, | 56 ASH_EXPORT bool MoveWindowToEventRoot(aura::Window* window, |
| 53 const ui::Event& event); | 57 const ui::Event& event); |
| 54 | 58 |
| 55 // Snap the window's layer to physical pixel boundary. | 59 // Snap the window's layer to physical pixel boundary. |
| 56 ASH_EXPORT void SnapWindowToPixelBoundary(aura::Window* window); | 60 ASH_EXPORT void SnapWindowToPixelBoundary(aura::Window* window); |
| 57 | 61 |
| 58 // Mark the container window so that InstallSnapLayoutManagerToContainers | 62 // Mark the container window so that InstallSnapLayoutManagerToContainers |
| 59 // installs the SnapToPixelLayoutManager. | 63 // installs the SnapToPixelLayoutManager. |
| 60 ASH_EXPORT void SetSnapsChildrenToPhysicalPixelBoundary( | 64 ASH_EXPORT void SetSnapsChildrenToPhysicalPixelBoundary( |
| 61 aura::Window* container); | 65 aura::Window* container); |
| 62 | 66 |
| 63 } // namespace wm | 67 } // namespace wm |
| 64 } // namespace ash | 68 } // namespace ash |
| 65 | 69 |
| 66 #endif // ASH_WM_WINDOW_UTIL_H_ | 70 #endif // ASH_WM_WINDOW_UTIL_H_ |
| OLD | NEW |