diff options
author | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-09 23:17:49 +0000 |
---|---|---|
committer | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-09 23:17:49 +0000 |
commit | 6e472da04f540d7837b7a344383869013bc57a3d (patch) | |
tree | c67dd1a65eee9d5174c4bfdd269f6bdc2acac430 /chrome/browser | |
parent | 0189514260039b943294ede22d1056928a766fd1 (diff) | |
download | chromium_src-6e472da04f540d7837b7a344383869013bc57a3d.zip chromium_src-6e472da04f540d7837b7a344383869013bc57a3d.tar.gz chromium_src-6e472da04f540d7837b7a344383869013bc57a3d.tar.bz2 |
views: Move more layout constants to the views namespace. Part 2.
The other constants will be moved in future patches.
BUG=None
TEST=trybots
Review URL: http://codereview.chromium.org/6458014
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@74372 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser')
24 files changed, 51 insertions, 42 deletions
diff --git a/chrome/browser/chromeos/login/password_changed_view.cc b/chrome/browser/chromeos/login/password_changed_view.cc index ff42314..4f0a7446 100644 --- a/chrome/browser/chromeos/login/password_changed_view.cc +++ b/chrome/browser/chromeos/login/password_changed_view.cc @@ -124,13 +124,14 @@ void PasswordChangedView::Init() { column_set->AddColumn(GridLayout::LEADING, GridLayout::FILL, 1, GridLayout::USE_PREF, 0, 0); column_set = layout->AddColumnSet(1); - column_set->AddPaddingColumn(0, kUnrelatedControlLargeHorizontalSpacing); + column_set->AddPaddingColumn( + 0, views::kUnrelatedControlLargeHorizontalSpacing); column_set->AddColumn(GridLayout::LEADING, GridLayout::FILL, 1, GridLayout::USE_PREF, 0, 0); layout->StartRow(0, 0); layout->AddView(title_label_); - layout->AddPaddingRow(0, kUnrelatedControlVerticalSpacing); + layout->AddPaddingRow(0, views::kUnrelatedControlVerticalSpacing); layout->StartRow(0, 0); layout->AddView(description_label_); @@ -147,7 +148,7 @@ void PasswordChangedView::Init() { layout->StartRow(0, 1); layout->AddView( old_password_field_, 1, 1, GridLayout::LEADING, GridLayout::CENTER); - layout->AddPaddingRow(0, kUnrelatedControlVerticalSpacing); + layout->AddPaddingRow(0, views::kUnrelatedControlVerticalSpacing); layout->StartRow(0, 0); layout->AddView(old_password_field_); diff --git a/chrome/browser/ui/views/bookmark_bubble_view.cc b/chrome/browser/ui/views/bookmark_bubble_view.cc index 6a002e0..b5601b4 100644 --- a/chrome/browser/ui/views/bookmark_bubble_view.cc +++ b/chrome/browser/ui/views/bookmark_bubble_view.cc @@ -220,7 +220,7 @@ void BookmarkBubbleView::Init() { // Top (title) row. cs->AddColumn(GridLayout::CENTER, GridLayout::CENTER, 0, GridLayout::USE_PREF, 0, 0); - cs->AddPaddingColumn(1, kUnrelatedControlHorizontalSpacing); + cs->AddPaddingColumn(1, views::kUnrelatedControlHorizontalSpacing); cs->AddColumn(GridLayout::CENTER, GridLayout::CENTER, 0, GridLayout::USE_PREF, 0, 0); diff --git a/chrome/browser/ui/views/clear_browsing_data_view.cc b/chrome/browser/ui/views/clear_browsing_data_view.cc index adc6529..7c8f3e0 100644 --- a/chrome/browser/ui/views/clear_browsing_data_view.cc +++ b/chrome/browser/ui/views/clear_browsing_data_view.cc @@ -223,7 +223,7 @@ void ClearBrowsingDataView2::InitControlLayout() { layout->AddView(time_period_combobox_, 1, 1, views::GridLayout::LEADING, views::GridLayout::CENTER); - layout->AddPaddingRow(0, kUnrelatedControlLargeVerticalSpacing); + layout->AddPaddingRow(0, views::kUnrelatedControlLargeVerticalSpacing); // Left-align the throbber layout->StartRow(0, two_column_set_id); diff --git a/chrome/browser/ui/views/clear_server_data.cc b/chrome/browser/ui/views/clear_server_data.cc index 4a42095..1658c4f 100644 --- a/chrome/browser/ui/views/clear_server_data.cc +++ b/chrome/browser/ui/views/clear_server_data.cc @@ -206,8 +206,9 @@ void ClearServerDataView::AddWrappingLabelRow(views::GridLayout* layout, void ClearServerDataView::AddSpacing(views::GridLayout* layout, bool related_follows) { - layout->AddPaddingRow(0, related_follows ? kRelatedControlVerticalSpacing - : kUnrelatedControlVerticalSpacing); + layout->AddPaddingRow( + 0, related_follows ? kRelatedControlVerticalSpacing + : views::kUnrelatedControlVerticalSpacing); } gfx::Size ClearServerDataView::GetPreferredSize() { diff --git a/chrome/browser/ui/views/collected_cookies_win.cc b/chrome/browser/ui/views/collected_cookies_win.cc index 64a26dd..36d3f3d 100644 --- a/chrome/browser/ui/views/collected_cookies_win.cc +++ b/chrome/browser/ui/views/collected_cookies_win.cc @@ -253,12 +253,12 @@ void CollectedCookiesWin::Init() { l10n_util::GetStringUTF16(IDS_COLLECTED_COOKIES_BLOCK_BUTTON))); layout->AddView( block_allowed_button_, 1, 1, GridLayout::LEADING, GridLayout::CENTER); - layout->AddPaddingRow(0, kUnrelatedControlVerticalSpacing); + layout->AddPaddingRow(0, views::kUnrelatedControlVerticalSpacing); layout->StartRow(0, single_column_layout_id); layout->AddView( new views::Separator(), 1, 1, GridLayout::FILL, GridLayout::FILL); - layout->AddPaddingRow(0, kUnrelatedControlVerticalSpacing); + layout->AddPaddingRow(0, views::kUnrelatedControlVerticalSpacing); layout->StartRow(0, single_column_layout_id); layout->AddView(blocked_label_, 1, 1, GridLayout::FILL, GridLayout::FILL); diff --git a/chrome/browser/ui/views/content_setting_bubble_contents.cc b/chrome/browser/ui/views/content_setting_bubble_contents.cc index aaf9e41..c2b93d7 100644 --- a/chrome/browser/ui/views/content_setting_bubble_contents.cc +++ b/chrome/browser/ui/views/content_setting_bubble_contents.cc @@ -326,7 +326,8 @@ void ContentSettingBubbleContents::InitControlLayout() { layout->AddColumnSet(double_column_set_id); double_column_set->AddColumn(GridLayout::LEADING, GridLayout::CENTER, 1, GridLayout::USE_PREF, 0, 0); - double_column_set->AddPaddingColumn(0, kUnrelatedControlHorizontalSpacing); + double_column_set->AddPaddingColumn( + 0, views::kUnrelatedControlHorizontalSpacing); double_column_set->AddColumn(GridLayout::TRAILING, GridLayout::CENTER, 0, GridLayout::USE_PREF, 0, 0); diff --git a/chrome/browser/ui/views/edit_search_engine_dialog.cc b/chrome/browser/ui/views/edit_search_engine_dialog.cc index 7ef7d27..a055f23 100644 --- a/chrome/browser/ui/views/edit_search_engine_dialog.cc +++ b/chrome/browser/ui/views/edit_search_engine_dialog.cc @@ -144,7 +144,7 @@ void EditSearchEngineDialog::Init() { const int related_x = kRelatedControlHorizontalSpacing; const int related_y = kRelatedControlVerticalSpacing; - const int unrelated_y = kUnrelatedControlVerticalSpacing; + const int unrelated_y = views::kUnrelatedControlVerticalSpacing; // View and GridLayout take care of deleting GridLayout for us. GridLayout* layout = GridLayout::CreatePanel(this); diff --git a/chrome/browser/ui/views/hung_renderer_view.cc b/chrome/browser/ui/views/hung_renderer_view.cc index 474ef82..ffefd9f 100644 --- a/chrome/browser/ui/views/hung_renderer_view.cc +++ b/chrome/browser/ui/views/hung_renderer_view.cc @@ -374,7 +374,8 @@ void HungRendererDialogView::Init() { ColumnSet* column_set = layout->AddColumnSet(double_column_set_id); column_set->AddColumn(GridLayout::LEADING, GridLayout::LEADING, 0, GridLayout::FIXED, frozen_icon_->width(), 0); - column_set->AddPaddingColumn(0, kUnrelatedControlLargeHorizontalSpacing); + column_set->AddPaddingColumn( + 0, views::kUnrelatedControlLargeHorizontalSpacing); column_set->AddColumn(GridLayout::FILL, GridLayout::FILL, 1, GridLayout::USE_PREF, 0, 0); @@ -382,7 +383,7 @@ void HungRendererDialogView::Init() { layout->AddView(frozen_icon_view_, 1, 3); layout->AddView(info_label_); - layout->AddPaddingRow(0, kUnrelatedControlVerticalSpacing); + layout->AddPaddingRow(0, views::kUnrelatedControlVerticalSpacing); layout->StartRow(0, double_column_set_id); layout->SkipColumns(1); @@ -406,7 +407,7 @@ void HungRendererDialogView::CreateKillButtonView() { const int single_column_set_id = 0; ColumnSet* column_set = layout->AddColumnSet(single_column_set_id); column_set->AddPaddingColumn(0, frozen_icon_->width() + - kPanelHorizMargin + kUnrelatedControlHorizontalSpacing); + kPanelHorizMargin + views::kUnrelatedControlHorizontalSpacing); column_set->AddColumn(GridLayout::LEADING, GridLayout::LEADING, 0, GridLayout::USE_PREF, 0, 0); diff --git a/chrome/browser/ui/views/importer_view.cc b/chrome/browser/ui/views/importer_view.cc index 5e623752..26ed58e 100644 --- a/chrome/browser/ui/views/importer_view.cc +++ b/chrome/browser/ui/views/importer_view.cc @@ -95,7 +95,7 @@ void ImporterView::SetupControl() { layout->AddView(import_from_label_); layout->AddView(profile_combobox_); - layout->AddPaddingRow(0, kUnrelatedControlVerticalSpacing); + layout->AddPaddingRow(0, views::kUnrelatedControlVerticalSpacing); layout->StartRow(0, column_set_id); layout->AddView(import_items_label_, 3, 1); layout->AddPaddingRow(0, kRelatedControlVerticalSpacing); diff --git a/chrome/browser/ui/views/importing_progress_view.cc b/chrome/browser/ui/views/importing_progress_view.cc index d93db0f..9906b27 100644 --- a/chrome/browser/ui/views/importing_progress_view.cc +++ b/chrome/browser/ui/views/importing_progress_view.cc @@ -244,19 +244,21 @@ void ImportingProgressView::InitControlLayout() { GridLayout::USE_PREF, 0, 0); const int double_column_view_set_id = 1; column_set = layout->AddColumnSet(double_column_view_set_id); - column_set->AddPaddingColumn(0, kUnrelatedControlLargeHorizontalSpacing); + column_set->AddPaddingColumn( + 0, views::kUnrelatedControlLargeHorizontalSpacing); column_set->AddColumn(GridLayout::CENTER, GridLayout::CENTER, 0, GridLayout::FIXED, ps.width(), 0); column_set->AddPaddingColumn(0, kRelatedControlHorizontalSpacing); column_set->AddColumn(GridLayout::LEADING, GridLayout::CENTER, 1, GridLayout::USE_PREF, 0, 0); - column_set->AddPaddingColumn(0, kUnrelatedControlLargeHorizontalSpacing); + column_set->AddPaddingColumn( + 0, views::kUnrelatedControlLargeHorizontalSpacing); layout->StartRow(0, single_column_view_set_id); if (bookmarks_import_) layout->AddView(state_bookmarks_.get()); layout->AddView(label_info_); - layout->AddPaddingRow(0, kUnrelatedControlVerticalSpacing); + layout->AddPaddingRow(0, views::kUnrelatedControlVerticalSpacing); if (items_ & importer::HISTORY) { layout->StartRow(0, double_column_view_set_id); diff --git a/chrome/browser/ui/views/keyword_editor_view.cc b/chrome/browser/ui/views/keyword_editor_view.cc index 393d163..38c7d30 100644 --- a/chrome/browser/ui/views/keyword_editor_view.cc +++ b/chrome/browser/ui/views/keyword_editor_view.cc @@ -196,7 +196,7 @@ void KeywordEditorView::Init() { void KeywordEditorView::InitLayoutManager() { const int related_x = kRelatedControlHorizontalSpacing; const int related_y = kRelatedControlVerticalSpacing; - const int unrelated_y = kUnrelatedControlVerticalSpacing; + const int unrelated_y = views::kUnrelatedControlVerticalSpacing; GridLayout* contents_layout = GridLayout::CreatePanel(this); SetLayoutManager(contents_layout); diff --git a/chrome/browser/ui/views/login_view.cc b/chrome/browser/ui/views/login_view.cc index c65a947..e979adc 100644 --- a/chrome/browser/ui/views/login_view.cc +++ b/chrome/browser/ui/views/login_view.cc @@ -68,7 +68,7 @@ LoginView::LoginView(const std::wstring& explanation, layout->StartRow(0, single_column_view_set_id); layout->AddView(message_label_); - layout->AddPaddingRow(0, kUnrelatedControlLargeVerticalSpacing); + layout->AddPaddingRow(0, views::kUnrelatedControlLargeVerticalSpacing); layout->StartRow(0, labels_column_set_id); layout->AddView(username_label_); @@ -80,7 +80,7 @@ LoginView::LoginView(const std::wstring& explanation, layout->AddView(password_label_); layout->AddView(password_field_); - layout->AddPaddingRow(0, kUnrelatedControlVerticalSpacing); + layout->AddPaddingRow(0, views::kUnrelatedControlVerticalSpacing); } LoginView::~LoginView() { diff --git a/chrome/browser/ui/views/options/advanced_contents_view.cc b/chrome/browser/ui/views/options/advanced_contents_view.cc index 2075b38..35cc79b 100644 --- a/chrome/browser/ui/views/options/advanced_contents_view.cc +++ b/chrome/browser/ui/views/options/advanced_contents_view.cc @@ -304,7 +304,7 @@ void AdvancedSection::AddDependentTwoColumnSet(views::GridLayout* layout, column_set->AddPaddingColumn(0, kRelatedControlHorizontalSpacing); column_set->AddColumn(GridLayout::FILL, GridLayout::CENTER, 1, GridLayout::USE_PREF, 0, 0); - column_set->AddPaddingColumn(0, kUnrelatedControlHorizontalSpacing); + column_set->AddPaddingColumn(0, views::kUnrelatedControlHorizontalSpacing); } void AdvancedSection::AddTwoColumnSet(views::GridLayout* layout, int id) { @@ -352,8 +352,8 @@ void AdvancedSection::AddLabeledTwoColumnRow(views::GridLayout* layout, bool related_follows) { label->SetHorizontalAlignment(views::Label::ALIGN_LEFT); AddTwoColumnRow(layout, label, control, control_stretches, id, - related_follows ? - kRelatedControlVerticalSpacing : kUnrelatedControlVerticalSpacing); + related_follows ? kRelatedControlVerticalSpacing + : views::kUnrelatedControlVerticalSpacing); } void AdvancedSection::AddTwoColumnRow(views::GridLayout* layout, @@ -384,8 +384,9 @@ void AdvancedSection::AddLeadingControl(views::GridLayout* layout, void AdvancedSection::AddSpacing(views::GridLayout* layout, bool related_follows) { - layout->AddPaddingRow(0, related_follows ? kRelatedControlVerticalSpacing - : kUnrelatedControlVerticalSpacing); + layout->AddPaddingRow( + 0, related_follows ? kRelatedControlVerticalSpacing + : views::kUnrelatedControlVerticalSpacing); } //////////////////////////////////////////////////////////////////////////////// @@ -403,7 +404,7 @@ void AdvancedSection::InitControlLayout() { GridLayout::USE_PREF, 0, 0); const int inset_column_layout_id = 1; column_set = layout->AddColumnSet(inset_column_layout_id); - column_set->AddPaddingColumn(0, kUnrelatedControlHorizontalSpacing); + column_set->AddPaddingColumn(0, views::kUnrelatedControlHorizontalSpacing); column_set->AddColumn(GridLayout::FILL, GridLayout::LEADING, 1, GridLayout::USE_PREF, 0, 0); @@ -589,7 +590,8 @@ void PrivacySection::InitControlLayout() { AddIndentedColumnSet(layout, indented_column_set_id); AddTwoColumnRow(layout, content_settings_button_, clear_data_button_, false, - leading_column_set_id, kUnrelatedControlLargeVerticalSpacing); + leading_column_set_id, + views::kUnrelatedControlLargeVerticalSpacing); // The description label at the top and label. section_description_label_->SetMultiLine(true); @@ -1181,7 +1183,7 @@ void DownloadSection::InitControlLayout() { column_set->AddPaddingColumn(0, kRelatedControlHorizontalSpacing); column_set->AddColumn(GridLayout::LEADING, GridLayout::CENTER, 0, GridLayout::USE_PREF, 0, 0); - column_set->AddPaddingColumn(0, kUnrelatedControlHorizontalSpacing); + column_set->AddPaddingColumn(0, views::kUnrelatedControlHorizontalSpacing); layout->StartRow(0, double_column_view_set_id); layout->AddView(download_default_download_location_display_, 1, 1, GridLayout::FILL, GridLayout::CENTER); diff --git a/chrome/browser/ui/views/options/content_page_view.cc b/chrome/browser/ui/views/options/content_page_view.cc index 8576b72..13eac36 100644 --- a/chrome/browser/ui/views/options/content_page_view.cc +++ b/chrome/browser/ui/views/options/content_page_view.cc @@ -310,7 +310,7 @@ void ContentPageView::InitPasswordSavingGroup() { layout->StartRow(0, single_column_view_set_id); layout->AddView(passwords_neversave_radio_, 1, 1, GridLayout::FILL, GridLayout::LEADING); - layout->AddPaddingRow(0, kUnrelatedControlVerticalSpacing); + layout->AddPaddingRow(0, views::kUnrelatedControlVerticalSpacing); layout->StartRow(0, single_column_view_set_id); layout->AddView(show_passwords_button_); diff --git a/chrome/browser/ui/views/options/cookie_filter_page_view.cc b/chrome/browser/ui/views/options/cookie_filter_page_view.cc index 96bd344..db59a5d 100644 --- a/chrome/browser/ui/views/options/cookie_filter_page_view.cc +++ b/chrome/browser/ui/views/options/cookie_filter_page_view.cc @@ -40,7 +40,7 @@ void CookieFilterPageView::InitControlLayout() { GridLayout* layout = static_cast<GridLayout*>(GetLayoutManager()); const int single_column_set_id = 0; - layout->AddPaddingRow(0, kUnrelatedControlLargeVerticalSpacing); + layout->AddPaddingRow(0, views::kUnrelatedControlLargeVerticalSpacing); block_3rdparty_check_ = new views::Checkbox(UTF16ToWide( l10n_util::GetStringUTF16(IDS_COOKIES_BLOCK_3RDPARTY_CHKBOX))); diff --git a/chrome/browser/ui/views/options/cookies_view.cc b/chrome/browser/ui/views/options/cookies_view.cc index 7cb24b6..83040e5 100644 --- a/chrome/browser/ui/views/options/cookies_view.cc +++ b/chrome/browser/ui/views/options/cookies_view.cc @@ -343,7 +343,7 @@ void CookiesView::Init() { layout->AddView(search_label_); layout->AddView(search_field_); layout->AddView(clear_search_button_); - layout->AddPaddingRow(0, kUnrelatedControlVerticalSpacing); + layout->AddPaddingRow(0, views::kUnrelatedControlVerticalSpacing); layout->StartRow(0, single_column_layout_id); layout->AddView(description_label_); diff --git a/chrome/browser/ui/views/options/fonts_page_view.cc b/chrome/browser/ui/views/options/fonts_page_view.cc index 0634d2c..fb948833 100644 --- a/chrome/browser/ui/views/options/fonts_page_view.cc +++ b/chrome/browser/ui/views/options/fonts_page_view.cc @@ -277,7 +277,7 @@ void FontsPageView::InitControlLayout() { layout->StartRow(0, single_column_view_set_id); InitFontLayout(); layout->AddView(fonts_contents_); - layout->AddPaddingRow(0, kUnrelatedControlVerticalSpacing); + layout->AddPaddingRow(0, views::kUnrelatedControlVerticalSpacing); // Encoding group. encoding_group_title_ = new views::Label( diff --git a/chrome/browser/ui/views/options/general_page_view.cc b/chrome/browser/ui/views/options/general_page_view.cc index 71f9b3b..cd98db4 100644 --- a/chrome/browser/ui/views/options/general_page_view.cc +++ b/chrome/browser/ui/views/options/general_page_view.cc @@ -720,7 +720,7 @@ void GeneralPageView::InitDefaultSearchGroup() { layout->StartRow(0, double_column_view_set_id); layout->AddView(default_search_engine_combobox_); layout->AddView(default_search_manage_engines_button_); - layout->AddPaddingRow(0, kUnrelatedControlVerticalSpacing); + layout->AddPaddingRow(0, views::kUnrelatedControlVerticalSpacing); layout->StartRow(0, checkbox_column_view_set_id); layout->AddView(instant_checkbox_); diff --git a/chrome/browser/ui/views/options/languages_page_view.cc b/chrome/browser/ui/views/options/languages_page_view.cc index c152895..280afaf 100644 --- a/chrome/browser/ui/views/options/languages_page_view.cc +++ b/chrome/browser/ui/views/options/languages_page_view.cc @@ -332,7 +332,7 @@ void LanguagesPageView::InitControlLayout() { layout->AddView(button_stack_); - layout->AddPaddingRow(0, kUnrelatedControlVerticalSpacing); + layout->AddPaddingRow(0, views::kUnrelatedControlVerticalSpacing); language_info_label_ = new views::Label( UTF16ToWide(l10n_util::GetStringUTF16(IDS_OPTIONS_CHROME_LANGUAGE_INFO))); @@ -390,7 +390,7 @@ void LanguagesPageView::InitControlLayout() { layout->AddView(change_dictionary_language_combobox_); // UI language settings. - layout->AddPaddingRow(0, kUnrelatedControlVerticalSpacing); + layout->AddPaddingRow(0, views::kUnrelatedControlVerticalSpacing); layout->StartRow(0, single_column_view_set_id); layout->AddView(language_info_label_); layout->AddPaddingRow(0, kRelatedControlVerticalSpacing); diff --git a/chrome/browser/ui/views/options/options_group_view.cc b/chrome/browser/ui/views/options/options_group_view.cc index 39b2617..2b8ed80 100644 --- a/chrome/browser/ui/views/options/options_group_view.cc +++ b/chrome/browser/ui/views/options/options_group_view.cc @@ -80,7 +80,7 @@ void OptionsGroupView::Paint(gfx::Canvas* canvas) { SkColor background_color = SkColorSetRGB(GetRValue(infocolor), GetGValue(infocolor), GetBValue(infocolor)); - int y_offset = kUnrelatedControlVerticalSpacing / 2; + int y_offset = views::kUnrelatedControlVerticalSpacing / 2; canvas->FillRectInt(background_color, 0, 0, width(), height() - y_offset); } @@ -129,7 +129,7 @@ void OptionsGroupView::Init() { layout->StartRow(1, two_column_layout_id); layout->AddView(description_label_, 1, 1, GridLayout::FILL, GridLayout::LEADING); - layout->AddPaddingRow(0, kUnrelatedControlVerticalSpacing); + layout->AddPaddingRow(0, views::kUnrelatedControlVerticalSpacing); if (show_separator_) { const int single_column_layout_id = 1; diff --git a/chrome/browser/ui/views/options/plugin_filter_page_view.cc b/chrome/browser/ui/views/options/plugin_filter_page_view.cc index eb4af2d..7d37ef3 100644 --- a/chrome/browser/ui/views/options/plugin_filter_page_view.cc +++ b/chrome/browser/ui/views/options/plugin_filter_page_view.cc @@ -29,7 +29,7 @@ void PluginFilterPageView::InitControlLayout() { GridLayout* layout = static_cast<GridLayout*>(GetLayoutManager()); const int single_column_set_id = 0; - layout->AddPaddingRow(0, kUnrelatedControlVerticalSpacing); + layout->AddPaddingRow(0, views::kUnrelatedControlVerticalSpacing); views::Link* plugins_page_link = new views::Link( UTF16ToWide(l10n_util::GetStringUTF16(IDS_PLUGIN_SELECTIVE_DISABLE))); diff --git a/chrome/browser/ui/views/task_manager_view.cc b/chrome/browser/ui/views/task_manager_view.cc index 156301e..9b2c6c7 100644 --- a/chrome/browser/ui/views/task_manager_view.cc +++ b/chrome/browser/ui/views/task_manager_view.cc @@ -530,7 +530,8 @@ void TaskManagerView::Layout() { if (purge_memory_button_) { size = purge_memory_button_->GetPreferredSize(); purge_memory_button_->SetBounds( - kill_button_->x() - size.width() - kUnrelatedControlHorizontalSpacing, + kill_button_->x() - size.width() - + views::kUnrelatedControlHorizontalSpacing, y_buttons, size.width(), size.height()); } diff --git a/chrome/browser/ui/views/uninstall_view.cc b/chrome/browser/ui/views/uninstall_view.cc index 755b178..ee82e24 100644 --- a/chrome/browser/ui/views/uninstall_view.cc +++ b/chrome/browser/ui/views/uninstall_view.cc @@ -52,7 +52,7 @@ void UninstallView::SetupControls() { confirm_label_->SetHorizontalAlignment(views::Label::ALIGN_LEFT); layout->AddView(confirm_label_); - layout->AddPaddingRow(0, kUnrelatedControlVerticalSpacing); + layout->AddPaddingRow(0, views::kUnrelatedControlVerticalSpacing); // The "delete profile" check box. ++column_set_id; diff --git a/chrome/browser/ui/views/url_picker.cc b/chrome/browser/ui/views/url_picker.cc index 196ef70..1bcfe92 100644 --- a/chrome/browser/ui/views/url_picker.cc +++ b/chrome/browser/ui/views/url_picker.cc @@ -93,7 +93,7 @@ UrlPicker::UrlPicker(UrlPickerDelegate* delegate, url_field_->SetController(this); layout->AddView(url_field_); - layout->AddPaddingRow(0, kUnrelatedControlVerticalSpacing); + layout->AddPaddingRow(0, views::kUnrelatedControlVerticalSpacing); layout->StartRow(0, single_column_view_set_id); views::Label* description_label = new views::Label(); |