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

Side by Side Diff: views/layout/box_layout.h

Issue 6374011: views: Move layout_manager.[cc,h] into layout directory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: layout-manager Created 9 years, 11 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #ifndef VIEWS_LAYOUT_BOX_LAYOUT_H_ 5 #ifndef VIEWS_LAYOUT_BOX_LAYOUT_H_
6 #define VIEWS_LAYOUT_BOX_LAYOUT_H_ 6 #define VIEWS_LAYOUT_BOX_LAYOUT_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "views/layout_manager.h" 10 #include "views/layout/layout_manager.h"
11 11
12 namespace views { 12 namespace views {
13 13
14 // A Layout manager that arranges child views vertically or horizontally in a 14 // A Layout manager that arranges child views vertically or horizontally in a
15 // side-by-side fashion with spacing around and between the child views. The 15 // side-by-side fashion with spacing around and between the child views. The
16 // child views are always sized according to their preferred size. If the 16 // child views are always sized according to their preferred size. If the
17 // host's bounds provide insufficient space, child views will be clamped. 17 // host's bounds provide insufficient space, child views will be clamped.
18 // Excess space will not be distributed. 18 // Excess space will not be distributed.
19 class BoxLayout : public LayoutManager { 19 class BoxLayout : public LayoutManager {
20 public: 20 public:
(...skipping 25 matching lines...) Expand all
46 46
47 // Spacing to put in between child views. 47 // Spacing to put in between child views.
48 const int between_child_spacing_; 48 const int between_child_spacing_;
49 49
50 DISALLOW_IMPLICIT_CONSTRUCTORS(BoxLayout); 50 DISALLOW_IMPLICIT_CONSTRUCTORS(BoxLayout);
51 }; 51 };
52 52
53 } // namespace views 53 } // namespace views
54 54
55 #endif // VIEWS_LAYOUT_BOX_LAYOUT_H_ 55 #endif // VIEWS_LAYOUT_BOX_LAYOUT_H_
OLDNEW
« no previous file with comments | « views/grid_layout.h ('k') | views/layout/fill_layout.h » ('j') | views/layout/layout_manager.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698