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_PROPERTY_UTIL_H_ | 5 #ifndef ASH_WM_PROPERTY_UTIL_H_ |
6 #define ASH_WM_PROPERTY_UTIL_H_ | 6 #define ASH_WM_PROPERTY_UTIL_H_ |
7 | 7 |
8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
9 | 9 |
10 namespace aura { | 10 namespace aura { |
11 class RootWindow; | 11 class RootWindow; |
12 class Window; | 12 class Window; |
13 } | 13 } |
14 | 14 |
15 namespace gfx { | 15 namespace gfx { |
16 class Rect; | 16 class Rect; |
17 } | 17 } |
18 | 18 |
19 namespace ash { | 19 namespace ash { |
20 namespace internal { | 20 namespace internal { |
21 class RootWindowController; | 21 class RootWindowController; |
22 } | 22 } |
23 | 23 |
24 // Sets the restore bounds property on |window| in the virtual screen | 24 // Sets the restore bounds property on |window| in the virtual screen |
25 // coordinates. Deletes existing bounds value if exists. | 25 // coordinates. Deletes existing bounds value if exists. |
26 ASH_EXPORT void SetRestoreBoundsInScreen(aura::Window* window, | 26 ASH_EXPORT void SetRestoreBoundsInScreen(aura::Window* window, |
27 const gfx::Rect& screen_bounds); | 27 const gfx::Rect& screen_bounds); |
28 // Same as |SetRestoreBoundsInScreen| except that the bounds is in the | 28 // Same as |SetRestoreBoundsInScreen| except that the bounds is in the |
29 // parent's coordinates. | 29 // parent's coordinates. |
30 ASH_EXPORT void SetRestoreBoundsInParent(aura::Window* window, | 30 ASH_EXPORT void SetRestoreBoundsInParent(aura::Window* window, |
31 const gfx::Rect& parent_bounds); | 31 const gfx::Rect& parent_bounds); |
32 | 32 |
33 // Returns the restore bounds property on |window| in the virtual screen | 33 // Returns the restore bounds property on |window| in the virtual screen |
34 // coordinates. The bounds can be NULL if the bounds property does not | 34 // coordinates. The bounds can be NULL if the bounds property does not |
35 // exist for |window|. |window| owns the bounds object. | 35 // exist for |window|. |window| owns the bounds object. |
36 ASH_EXPORT const gfx::Rect* GetRestoreBoundsInScreen(aura::Window* window); | 36 ASH_EXPORT const gfx::Rect* GetRestoreBoundsInScreen(aura::Window* window); |
37 // Same as |GetRestoreBoundsInScreen| except that it returns the | 37 // Same as |GetRestoreBoundsInScreen| except that it returns the |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 // Sets/Gets the RootWindowController for |root_window|. | 70 // Sets/Gets the RootWindowController for |root_window|. |
71 ASH_EXPORT void SetRootWindowController( | 71 ASH_EXPORT void SetRootWindowController( |
72 aura::RootWindow* root_window, | 72 aura::RootWindow* root_window, |
73 internal::RootWindowController* controller); | 73 internal::RootWindowController* controller); |
74 ASH_EXPORT internal::RootWindowController* GetRootWindowController( | 74 ASH_EXPORT internal::RootWindowController* GetRootWindowController( |
75 const aura::RootWindow* root_window); | 75 const aura::RootWindow* root_window); |
76 | 76 |
77 } | 77 } |
78 | 78 |
79 #endif // ASH_WM_PROPERTY_UTIL_H_ | 79 #endif // ASH_WM_PROPERTY_UTIL_H_ |
OLD | NEW |