Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(315)

Side by Side Diff: ash/wm/property_util.h

Issue 21979005: Make sure that 30%of restored window is always visible. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698