Chromium Code Reviews| 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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 123 const gfx::Rect& work_area, | 123 const gfx::Rect& work_area, |
| 124 int min_width, | 124 int min_width, |
| 125 int min_height, | 125 int min_height, |
| 126 gfx::Rect* bounds); | 126 gfx::Rect* bounds); |
| 127 | 127 |
| 128 // Moves |window| to the root window where the |event| occured if it is not | 128 // Moves |window| to the root window where the |event| occured if it is not |
| 129 // already in the same root window. Returns true if |window| was moved. | 129 // already in the same root window. Returns true if |window| was moved. |
| 130 ASH_EXPORT bool MoveWindowToEventRoot(aura::Window* window, | 130 ASH_EXPORT bool MoveWindowToEventRoot(aura::Window* window, |
| 131 const ui::Event& event); | 131 const ui::Event& event); |
| 132 | 132 |
| 133 // Returns true if a window should stick to an edge. | |
| 134 ASH_EXPORT bool ShouldStickToEdge(int distance_from_edge); | |
|
flackr
2013/04/16 00:32:14
Currently, this is only used by workspace_window_r
stevenjb
2013/04/16 20:08:20
That was my thought based on your suggestion, but
| |
| 135 | |
| 133 } // namespace wm | 136 } // namespace wm |
| 134 } // namespace ash | 137 } // namespace ash |
| 135 | 138 |
| 136 #endif // ASH_WM_WINDOW_UTIL_H_ | 139 #endif // ASH_WM_WINDOW_UTIL_H_ |
| OLD | NEW |