1 // Copyright (c) 2013 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.
5 #ifndef UI_V2_PUBLIC_LAYOUT_H_
6 #define UI_V2_PUBLIC_LAYOUT_H_
8 #include "ui/v2/public/v2_export.h"
9 #include "ui/v2/public/view_observer.h"
13 class V2_EXPORT Layout
{
17 // Called by the View to commit the bounds. It is up to the Layout to
18 // figure out what bounds to actually set, via SetBoundsDirect below.
19 virtual void SetChildBounds(View
* child
,
20 const gfx::Rect
& requested_bounds
);
23 // Sets the specified |bounds| on |child| without consulting layout.
24 void SetChildBoundsDirect(View
* child
, const gfx::Rect
& bounds
);
29 #endif // UI_V2_PUBLIC_LAYOUT_H_