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

Unified Diff: ui/aura/layout_manager.h

Issue 8400063: Move maximize/fullscreen/restore to shell (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove OVERRIDE from .cc Created 9 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/aura/aura_constants.cc ('k') | ui/aura/layout_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/layout_manager.h
diff --git a/ui/aura/layout_manager.h b/ui/aura/layout_manager.h
index 5ff905b007e05742a9f74b02cb0d95eff5cd7c22..9b33f4486462bee5023c23c0588a6c15dd9dd92d 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
« no previous file with comments | « ui/aura/aura_constants.cc ('k') | ui/aura/layout_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698