| OLD | NEW |
| 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 #include <vsstyle.h> | 5 #include <vsstyle.h> |
| 6 #include <vssym32.h> | 6 #include <vssym32.h> |
| 7 | 7 |
| 8 #include "chrome/browser/ui/views/options/options_group_view.h" | 8 #include "chrome/browser/ui/views/options/options_group_view.h" |
| 9 | 9 |
| 10 #include "base/string_number_conversions.h" | 10 #include "base/string_number_conversions.h" |
| 11 #include "base/utf_string_conversions.h" | 11 #include "base/utf_string_conversions.h" |
| 12 #include "gfx/canvas.h" | |
| 13 #include "gfx/font.h" | |
| 14 #include "gfx/native_theme_win.h" | |
| 15 #include "grit/locale_settings.h" | 12 #include "grit/locale_settings.h" |
| 16 #include "grit/generated_resources.h" | 13 #include "grit/generated_resources.h" |
| 17 #include "ui/base/l10n/l10n_util.h" | 14 #include "ui/base/l10n/l10n_util.h" |
| 18 #include "ui/base/resource/resource_bundle.h" | 15 #include "ui/base/resource/resource_bundle.h" |
| 16 #include "ui/gfx/canvas.h" |
| 17 #include "ui/gfx/font.h" |
| 18 #include "ui/gfx/native_theme_win.h" |
| 19 #include "views/controls/label.h" | 19 #include "views/controls/label.h" |
| 20 #include "views/controls/separator.h" | 20 #include "views/controls/separator.h" |
| 21 #include "views/layout/grid_layout.h" | 21 #include "views/layout/grid_layout.h" |
| 22 #include "views/layout/layout_constants.h" | 22 #include "views/layout/layout_constants.h" |
| 23 | 23 |
| 24 static const int kLeftColumnWidthChars = 20; | 24 static const int kLeftColumnWidthChars = 20; |
| 25 static const int kOptionsGroupViewColumnSpacing = 30; | 25 static const int kOptionsGroupViewColumnSpacing = 30; |
| 26 | 26 |
| 27 /////////////////////////////////////////////////////////////////////////////// | 27 /////////////////////////////////////////////////////////////////////////////// |
| 28 // OptionsGroupView, public: | 28 // OptionsGroupView, public: |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 const int single_column_layout_id = 1; | 135 const int single_column_layout_id = 1; |
| 136 column_set = layout->AddColumnSet(single_column_layout_id); | 136 column_set = layout->AddColumnSet(single_column_layout_id); |
| 137 column_set->AddColumn(GridLayout::FILL, GridLayout::CENTER, 1, | 137 column_set->AddColumn(GridLayout::FILL, GridLayout::CENTER, 1, |
| 138 GridLayout::USE_PREF, 0, 0); | 138 GridLayout::USE_PREF, 0, 0); |
| 139 | 139 |
| 140 separator_ = new views::Separator; | 140 separator_ = new views::Separator; |
| 141 layout->StartRow(0, single_column_layout_id); | 141 layout->StartRow(0, single_column_layout_id); |
| 142 layout->AddView(separator_); | 142 layout->AddView(separator_); |
| 143 } | 143 } |
| 144 } | 144 } |
| OLD | NEW |