| 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" |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 | 40 |
| 41 // Pins the window on top of other windows. | 41 // Pins the window on top of other windows. |
| 42 ASH_EXPORT void PinWindow(aura::Window* window, bool trusted); | 42 ASH_EXPORT void PinWindow(aura::Window* window, bool trusted); |
| 43 | 43 |
| 44 // Moves |window| to the root window where the |event| occured if it is not | 44 // Moves |window| to the root window where the |event| occured if it is not |
| 45 // already in the same root window. Returns true if |window| was moved. | 45 // already in the same root window. Returns true if |window| was moved. |
| 46 ASH_EXPORT bool MoveWindowToEventRoot(aura::Window* window, | 46 ASH_EXPORT bool MoveWindowToEventRoot(aura::Window* window, |
| 47 const ui::Event& event); | 47 const ui::Event& event); |
| 48 | 48 |
| 49 // Snap the window's layer to physical pixel boundary. | 49 // Snap the window's layer to physical pixel boundary. |
| 50 void SnapWindowToPixelBoundary(aura::Window* window); | 50 ASH_EXPORT void SnapWindowToPixelBoundary(aura::Window* window); |
| 51 | 51 |
| 52 // Mark the container window so that InstallSnapLayoutManagerToContainers | 52 // Mark the container window so that InstallSnapLayoutManagerToContainers |
| 53 // installs the SnapToPixelLayoutManager. | 53 // installs the SnapToPixelLayoutManager. |
| 54 ASH_EXPORT void SetSnapsChildrenToPhysicalPixelBoundary( | 54 ASH_EXPORT void SetSnapsChildrenToPhysicalPixelBoundary( |
| 55 aura::Window* container); | 55 aura::Window* container); |
| 56 | 56 |
| 57 } // namespace wm | 57 } // namespace wm |
| 58 } // namespace ash | 58 } // namespace ash |
| 59 | 59 |
| 60 #endif // ASH_WM_WINDOW_UTIL_H_ | 60 #endif // ASH_WM_WINDOW_UTIL_H_ |
| OLD | NEW |