OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/views/examples/double_split_view_example.h" | 5 #include "ui/views/examples/double_split_view_example.h" |
6 | 6 |
| 7 #include "base/macros.h" |
7 #include "ui/views/background.h" | 8 #include "ui/views/background.h" |
8 #include "ui/views/controls/single_split_view.h" | 9 #include "ui/views/controls/single_split_view.h" |
9 #include "ui/views/layout/grid_layout.h" | 10 #include "ui/views/layout/grid_layout.h" |
10 | 11 |
11 namespace views { | 12 namespace views { |
12 namespace examples { | 13 namespace examples { |
13 | 14 |
14 namespace { | 15 namespace { |
15 | 16 |
16 // DoubleSplitViews's content, which draws gradient color on background. | 17 // DoubleSplitViews's content, which draws gradient color on background. |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 // Add scroll view. | 74 // Add scroll view. |
74 ColumnSet* column_set = layout->AddColumnSet(0); | 75 ColumnSet* column_set = layout->AddColumnSet(0); |
75 column_set->AddColumn(GridLayout::FILL, GridLayout::FILL, 1, | 76 column_set->AddColumn(GridLayout::FILL, GridLayout::FILL, 1, |
76 GridLayout::USE_PREF, 0, 0); | 77 GridLayout::USE_PREF, 0, 0); |
77 layout->StartRow(1, 0); | 78 layout->StartRow(1, 0); |
78 layout->AddView(outer_single_split_view_); | 79 layout->AddView(outer_single_split_view_); |
79 } | 80 } |
80 | 81 |
81 } // namespace examples | 82 } // namespace examples |
82 } // namespace views | 83 } // namespace views |
OLD | NEW |