Chromium Code Reviews| Index: ui/aura/layout_manager.h |
| diff --git a/ui/aura/layout_manager.h b/ui/aura/layout_manager.h |
| index 5ff905b007e05742a9f74b02cb0d95eff5cd7c22..2e69984ada23d0abd19d103e4c3074da5ff33a81 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 apply, or ignore the request when appropriate. |
|
sky
2011/10/31 23:17:34
apply -> applying
remove 'when appropriate'
oshima
2011/11/01 00:40:33
Done.
|
| + 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 |