diff options
author | oshima@google.com <oshima@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-01 23:19:12 +0000 |
---|---|---|
committer | oshima@google.com <oshima@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-01 23:19:12 +0000 |
commit | 37974ad4ffcf30f18c25c28e9dccd098ab5e71d8 (patch) | |
tree | 808da500f37170706e695c9a029a1b649a1a87bc /ui/aura/layout_manager.h | |
parent | e8ba615ab61359130553c7dd6419c331be5c49ad (diff) | |
download | chromium_src-37974ad4ffcf30f18c25c28e9dccd098ab5e71d8.zip chromium_src-37974ad4ffcf30f18c25c28e9dccd098ab5e71d8.tar.gz chromium_src-37974ad4ffcf30f18c25c28e9dccd098ab5e71d8.tar.bz2 |
Move maximize/fullscreen/restore to shell
With this CL, window is now correctly maximized/fullscreen'ed on aura desktop.
* Added OnPropertyChanged to WindowObserver
* Added Get/Set IntProperty to simplify handling int value properties.
* Remove IsOrContainsFullscreen. Added Workspace::ContainsFullscreen instead. We need this to autohide launcher.
BUG=97257,97259
TEST=new test for property change notification. existing tests are updated, except maximized/fullscreen drag test. I'll add it to new set of tests that verifies window dragging within workspace.
Review URL: http://codereview.chromium.org/8400063
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@108192 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/aura/layout_manager.h')
-rw-r--r-- | ui/aura/layout_manager.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/ui/aura/layout_manager.h b/ui/aura/layout_manager.h index 5ff905b..9b33f44 100644 --- a/ui/aura/layout_manager.h +++ b/ui/aura/layout_manager.h @@ -37,14 +37,17 @@ class AURA_EXPORT LayoutManager { // Window::IsVisible() for details. virtual void OnChildWindowVisibilityChanged(Window* child, bool visibile) = 0; - // Calculates the bounds for the |child| based on |requsted_bounds|. - virtual void CalculateBoundsForChild(Window* child, - gfx::Rect* requested_bounds) = 0; + // Invoked when |Window::SetBounds| is called on |child|. + // Implementation must call |SetChildBoundsDirect| to change the + // |child|'s bounds. LayoutManager may modify |requested_bounds| + // before applying, or ignore the request. + virtual void SetChildBounds(Window* child, + const gfx::Rect& requested_bounds) = 0; protected: // Sets the child's bounds forcibly. LayoutManager is responsible // for checking the state and make sure the bounds are correctly // adjusted. - void SetChildBounds(aura::Window* child, const gfx::Rect& bounds); + void SetChildBoundsDirect(aura::Window* child, const gfx::Rect& bounds); }; } // namespace aura |