Add a FrameHostMsg_BeginNavigation IPC
[chromium-blink-merge.git] / ui / v2 / src / layout.cc
blob9b213bdb77438d7abae9dc09151e985a6db7ae9f
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 #include "ui/v2/public/layout.h"
7 #include "ui/v2/public/view.h"
8 #include "ui/v2/src/view_private.h"
10 namespace v2 {
12 ////////////////////////////////////////////////////////////////////////////////
13 // Layout, public:
15 Layout::~Layout() {}
17 void Layout::SetChildBounds(View* child,
18 const gfx::Rect& requested_bounds) {
19 SetChildBoundsDirect(child, requested_bounds);
22 ////////////////////////////////////////////////////////////////////////////////
23 // Layout, protected:
25 void Layout::SetChildBoundsDirect(View* child, const gfx::Rect& bounds) {
26 ViewPrivate(child).set_bounds(bounds);
29 } // namespace v2