summaryrefslogtreecommitdiffstats
path: root/ui/v2/src/layout.cc
blob: 9b213bdb77438d7abae9dc09151e985a6db7ae9f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// Copyright (c) 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "ui/v2/public/layout.h"

#include "ui/v2/public/view.h"
#include "ui/v2/src/view_private.h"

namespace v2 {

////////////////////////////////////////////////////////////////////////////////
// Layout, public:

Layout::~Layout() {}

void Layout::SetChildBounds(View* child,
                            const gfx::Rect& requested_bounds) {
  SetChildBoundsDirect(child, requested_bounds);
}

////////////////////////////////////////////////////////////////////////////////
// Layout, protected:

void Layout::SetChildBoundsDirect(View* child, const gfx::Rect& bounds) {
  ViewPrivate(child).set_bounds(bounds);
}

}  // namespace v2