diff options
author | glen@chromium.org <glen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-10 21:56:50 +0000 |
---|---|---|
committer | glen@chromium.org <glen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-10 21:56:50 +0000 |
commit | 6242f020fdcfdba371613270beeb89f5bf606d11 (patch) | |
tree | cd03d723bb688d4b59527c0ea3dc2a253681c9af /chrome | |
parent | f704ee742d36f65d92893873f9c23e743cbc0608 (diff) | |
download | chromium_src-6242f020fdcfdba371613270beeb89f5bf606d11.zip chromium_src-6242f020fdcfdba371613270beeb89f5bf606d11.tar.gz chromium_src-6242f020fdcfdba371613270beeb89f5bf606d11.tar.bz2 |
Move 'learn more' in the privacy section to its own line.
BUG=4264
Review URL: http://codereview.chromium.org/9749
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5129 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r-- | chrome/browser/views/options/advanced_contents_view.cc | 23 |
1 files changed, 5 insertions, 18 deletions
diff --git a/chrome/browser/views/options/advanced_contents_view.cc b/chrome/browser/views/options/advanced_contents_view.cc index f41c433..f2c68f1 100644 --- a/chrome/browser/views/options/advanced_contents_view.cc +++ b/chrome/browser/views/options/advanced_contents_view.cc @@ -93,10 +93,6 @@ class AdvancedSection : public OptionsPageView { void AddWrappingColumnSet(views::GridLayout* layout, int id); void AddDependentTwoColumnSet(views::GridLayout* layout, int id); void AddTwoColumnSet(views::GridLayout* layout, int id); - // Similar to AddTwoColumnSet, except the first column is resizable and - // the second one has the text on the bottom (to add a trailing link after - // text, for example). - void AddTwoColumnSetLabelAndLink(views::GridLayout* layout, int id); void AddIndentedColumnSet(views::GridLayout* layout, int id); // Convenience helpers for adding controls to specific layouts in an @@ -194,16 +190,6 @@ void AdvancedSection::AddTwoColumnSet(views::GridLayout* layout, int id) { GridLayout::USE_PREF, 0, 0); } -void AdvancedSection::AddTwoColumnSetLabelAndLink(views::GridLayout* layout, - int id) { - ColumnSet* column_set = layout->AddColumnSet(id); - column_set->AddColumn(GridLayout::FILL, GridLayout::CENTER, 1, - GridLayout::USE_PREF, 0, 0); - column_set->AddPaddingColumn(0, kRelatedControlHorizontalSpacing); - column_set->AddColumn(GridLayout::FILL, GridLayout::TRAILING, 0, - GridLayout::USE_PREF, 0, 0); -} - void AdvancedSection::AddIndentedColumnSet(views::GridLayout* layout, int id) { ColumnSet* column_set = layout->AddColumnSet(id); column_set->AddPaddingColumn(0, views::CheckBox::GetTextIndent()); @@ -543,13 +529,14 @@ void PrivacySection::InitControlLayout() { AddIndentedColumnSet(layout, indented_view_set_id); const int indented_column_set_id = 3; AddIndentedColumnSet(layout, indented_column_set_id); - const int two_column_label_and_link_id = 4; - AddTwoColumnSetLabelAndLink(layout, two_column_label_and_link_id); // The description label at the top and label. section_description_label_->SetMultiLine(true); - AddTwoColumnRow(layout, section_description_label_, learn_more_link_, false, - two_column_label_and_link_id, false); + AddWrappingLabelRow(layout, section_description_label_, + single_column_view_set_id, true); + // Learn more link. + AddLeadingControl(layout, learn_more_link_, + single_column_view_set_id, false); // Link doctor. AddWrappingCheckboxRow(layout, enable_link_doctor_checkbox_, |