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

Side by Side Diff: ui/v2/src/layout.cc

Issue 25757007: V2: Implement reparenting, bounds and visibility change notifications, and write more tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ui/v2/public/layout.h" 5 #include "ui/v2/public/layout.h"
6 6
7 #include "ui/v2/public/view.h" 7 #include "ui/v2/public/view.h"
8 #include "ui/v2/src/view_private.h"
8 9
9 namespace v2 { 10 namespace v2 {
10 11
11 //////////////////////////////////////////////////////////////////////////////// 12 ////////////////////////////////////////////////////////////////////////////////
12 // Layout, public: 13 // Layout, public:
13 14
14 Layout::~Layout() {} 15 Layout::~Layout() {}
15 16
16 void Layout::SetChildBounds(View* child, 17 void Layout::SetChildBounds(View* child,
17 const gfx::Rect& requested_bounds) { 18 const gfx::Rect& requested_bounds) {
18 SetChildBoundsDirect(child, requested_bounds); 19 SetChildBoundsDirect(child, requested_bounds);
19 } 20 }
20 21
21 //////////////////////////////////////////////////////////////////////////////// 22 ////////////////////////////////////////////////////////////////////////////////
22 // Layout, protected: 23 // Layout, protected:
23 24
24 void Layout::SetChildBoundsDirect(View* child, const gfx::Rect& bounds) { 25 void Layout::SetChildBoundsDirect(View* child, const gfx::Rect& bounds) {
25 child->SetBoundsInternal(bounds); 26 ViewPrivate(child).set_bounds(bounds);
26 } 27 }
27 28
28 } // namespace v2 29 } // namespace v2
OLDNEW
« no previous file with comments | « ui/v2/public/view_observer.h ('k') | ui/v2/src/view.cc » ('j') | ui/v2/src/view_private.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698