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 gfx { | 16 namespace gfx { |
| 17 class Point; |
17 class Rect; | 18 class Rect; |
18 class Size; | 19 class Size; |
19 } | 20 } |
20 | 21 |
21 namespace ui { | 22 namespace ui { |
22 class Event; | 23 class Event; |
23 } | 24 } |
24 | 25 |
25 namespace ash { | 26 namespace ash { |
26 // We force at least this many DIPs for any window on the screen. | 27 // We force at least this many DIPs for any window on the screen. |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 aura::Window* old_parent, | 90 aura::Window* old_parent, |
90 aura::Window* new_parent); | 91 aura::Window* new_parent); |
91 | 92 |
92 // Changes the parent of all transient children of a |child| to |new_parent|. | 93 // Changes the parent of all transient children of a |child| to |new_parent|. |
93 // Does not change parent of the transient children that are not themselves | 94 // Does not change parent of the transient children that are not themselves |
94 // children of |old_parent|. | 95 // children of |old_parent|. |
95 void ReparentTransientChildrenOfChild(aura::Window* child, | 96 void ReparentTransientChildrenOfChild(aura::Window* child, |
96 aura::Window* old_parent, | 97 aura::Window* old_parent, |
97 aura::Window* new_parent); | 98 aura::Window* new_parent); |
98 | 99 |
| 100 // Snap the window's layer to physical pixel boundary. |
| 101 void SnapWindowToPixelBoundary(aura::Window* window); |
| 102 |
| 103 // Mark the container window so that InstallSnapLayoutManagerToContainers |
| 104 // installs the SnapToPixelLayoutManager. |
| 105 ASH_EXPORT void SetSnapsChildrenToPhysicalPixelBoundary( |
| 106 aura::Window* container); |
| 107 |
| 108 // Traverse the |container| tree and installs SnapToPixelLayoutManager. |
| 109 void InstallSnapLayoutManagerToContainers(aura::Window* container); |
| 110 |
99 } // namespace wm | 111 } // namespace wm |
100 } // namespace ash | 112 } // namespace ash |
101 | 113 |
102 #endif // ASH_WM_WINDOW_UTIL_H_ | 114 #endif // ASH_WM_WINDOW_UTIL_H_ |
OLD | NEW |