OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef UI_AURA_SHELL_PROPERTY_UTIL_H_ | |
6 #define UI_AURA_SHELL_PROPERTY_UTIL_H_ | |
7 #pragma once | |
8 | |
9 namespace aura { | |
10 class Window; | |
11 } | |
12 | |
13 namespace gfx { | |
14 class Rect; | |
15 } | |
16 | |
17 namespace aura_shell { | |
18 | |
19 // Sets the restore bounds property on |window|. It deletes | |
sky
2011/11/01 03:48:25
'It deletes' -> Deletes
oshima
2011/11/01 15:44:53
Done.
| |
20 // existing bounds value if exists. | |
21 void SetRestoreBounds(aura::Window* window, const gfx::Rect&); | |
22 | |
23 // Returns the restore bounds property on |window|. | |
sky
2011/11/01 03:48:25
Returning a pointer makes ownership a bit dicey. C
oshima
2011/11/01 15:44:53
It's pointer because the caller needs to know if t
| |
24 const gfx::Rect* GetRestoreBounds(aura::Window* window); | |
25 | |
26 // Deletes and clears the restore bounds roperty on |window|. | |
27 void ClearRestoreBounds(aura::Window* window); | |
28 | |
29 } | |
30 | |
31 #endif // UI_AURA_SHELL_PROPERTY_UTIL_H_ | |
OLD | NEW |