OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/views/options/options_group_view.h" | 8 #include "chrome/browser/views/options/options_group_view.h" |
9 | 9 |
10 #include "app/l10n_util.h" | 10 #include "app/l10n_util.h" |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 title_label_->SetMultiLine(true); | 46 title_label_->SetMultiLine(true); |
47 title_label_->SetHorizontalAlignment(views::Label::ALIGN_LEFT); | 47 title_label_->SetHorizontalAlignment(views::Label::ALIGN_LEFT); |
48 | 48 |
49 description_label_->SetMultiLine(true); | 49 description_label_->SetMultiLine(true); |
50 description_label_->SetHorizontalAlignment(views::Label::ALIGN_LEFT); | 50 description_label_->SetHorizontalAlignment(views::Label::ALIGN_LEFT); |
51 | 51 |
52 SetAccessibleName(title); | 52 SetAccessibleName(title); |
53 contents->SetAccessibleName(title); | 53 contents->SetAccessibleName(title); |
54 } | 54 } |
55 | 55 |
56 OptionsGroupView::~OptionsGroupView() { | |
57 } | |
58 | |
59 void OptionsGroupView::SetHighlighted(bool highlighted) { | 56 void OptionsGroupView::SetHighlighted(bool highlighted) { |
60 highlighted_ = highlighted; | 57 highlighted_ = highlighted; |
61 SchedulePaint(); | 58 SchedulePaint(); |
62 } | 59 } |
63 | 60 |
64 int OptionsGroupView::GetContentsWidth() const { | 61 int OptionsGroupView::GetContentsWidth() const { |
65 return contents_->width(); | 62 return contents_->width(); |
66 } | 63 } |
67 | 64 |
68 /////////////////////////////////////////////////////////////////////////////// | 65 /////////////////////////////////////////////////////////////////////////////// |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 const int single_column_layout_id = 1; | 129 const int single_column_layout_id = 1; |
133 column_set = layout->AddColumnSet(single_column_layout_id); | 130 column_set = layout->AddColumnSet(single_column_layout_id); |
134 column_set->AddColumn(GridLayout::FILL, GridLayout::CENTER, 1, | 131 column_set->AddColumn(GridLayout::FILL, GridLayout::CENTER, 1, |
135 GridLayout::USE_PREF, 0, 0); | 132 GridLayout::USE_PREF, 0, 0); |
136 | 133 |
137 separator_ = new views::Separator; | 134 separator_ = new views::Separator; |
138 layout->StartRow(0, single_column_layout_id); | 135 layout->StartRow(0, single_column_layout_id); |
139 layout->AddView(separator_); | 136 layout->AddView(separator_); |
140 } | 137 } |
141 } | 138 } |
OLD | NEW |