| 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" |
| 11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
| 12 #include "ui/base/ui_base_types.h" | 12 #include "ui/base/ui_base_types.h" |
| 13 | 13 |
| 14 namespace aura { | 14 namespace aura { |
| 15 class Window; | 15 class Window; |
| 16 } | 16 } |
| 17 | 17 |
| 18 namespace gfx { |
| 19 class Point; |
| 20 } |
| 21 |
| 18 namespace ui { | 22 namespace ui { |
| 19 class Event; | 23 class Event; |
| 20 } | 24 } |
| 21 | 25 |
| 22 namespace ash { | 26 namespace ash { |
| 23 namespace wm { | 27 namespace wm { |
| 24 | 28 |
| 25 // Utility functions for window activation. | 29 // Utility functions for window activation. |
| 26 ASH_EXPORT void ActivateWindow(aura::Window* window); | 30 ASH_EXPORT void ActivateWindow(aura::Window* window); |
| 27 ASH_EXPORT void DeactivateWindow(aura::Window* window); | 31 ASH_EXPORT void DeactivateWindow(aura::Window* window); |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 const ui::Event& event); | 64 const ui::Event& event); |
| 61 | 65 |
| 62 // Snap the window's layer to physical pixel boundary. | 66 // Snap the window's layer to physical pixel boundary. |
| 63 ASH_EXPORT void SnapWindowToPixelBoundary(aura::Window* window); | 67 ASH_EXPORT void SnapWindowToPixelBoundary(aura::Window* window); |
| 64 | 68 |
| 65 // Mark the container window so that InstallSnapLayoutManagerToContainers | 69 // Mark the container window so that InstallSnapLayoutManagerToContainers |
| 66 // installs the SnapToPixelLayoutManager. | 70 // installs the SnapToPixelLayoutManager. |
| 67 ASH_EXPORT void SetSnapsChildrenToPhysicalPixelBoundary( | 71 ASH_EXPORT void SetSnapsChildrenToPhysicalPixelBoundary( |
| 68 aura::Window* container); | 72 aura::Window* container); |
| 69 | 73 |
| 74 // Convenience for window->delegate()->GetNonClientComponent(location) that |
| 75 // returns HTNOWHERE if window->delegate() is null. |
| 76 ASH_EXPORT int GetNonClientComponent(aura::Window* window, |
| 77 const gfx::Point& location); |
| 78 |
| 70 } // namespace wm | 79 } // namespace wm |
| 71 } // namespace ash | 80 } // namespace ash |
| 72 | 81 |
| 73 #endif // ASH_WM_WINDOW_UTIL_H_ | 82 #endif // ASH_WM_WINDOW_UTIL_H_ |
| OLD | NEW |