Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7348)

Unified Diff: chrome/browser/ui/views/extensions/extension_install_dialog_view.cc

Issue 11377005: Replace Label::Alignment with gfx::HorizontalAlignment (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix remaining Label::Alignment references. Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/extensions/extension_install_dialog_view.cc
diff --git a/chrome/browser/ui/views/extensions/extension_install_dialog_view.cc b/chrome/browser/ui/views/extensions/extension_install_dialog_view.cc
index bd33ed27564ddc331c8aa1fdac595ad663a04aa2..4532e1ce7bbb76197e9186dd0a3de801a35093fa 100644
--- a/chrome/browser/ui/views/extensions/extension_install_dialog_view.cc
+++ b/chrome/browser/ui/views/extensions/extension_install_dialog_view.cc
@@ -287,7 +287,7 @@ ExtensionInstallDialogView::ExtensionInstallDialogView(
heading->SetFont(heading->font().DeriveFont(kHeadingFontSizeDelta,
gfx::Font::BOLD));
heading->SetMultiLine(true);
- heading->SetHorizontalAlignment(views::Label::ALIGN_LEFT);
+ heading->SetHorizontalAlignment(gfx::ALIGN_LEFT);
heading->SizeToFit(left_column_width);
layout->AddView(heading);
@@ -359,7 +359,7 @@ ExtensionInstallDialogView::ExtensionInstallDialogView(
views::Label* extension_label = new views::Label(
PrepareForDisplay(extension_name, true));
extension_label->SetMultiLine(true);
- extension_label->SetHorizontalAlignment(views::Label::ALIGN_LEFT);
+ extension_label->SetHorizontalAlignment(gfx::ALIGN_LEFT);
extension_label->SizeToFit(left_column_width);
layout->AddView(extension_label);
}
@@ -389,7 +389,7 @@ ExtensionInstallDialogView::ExtensionInstallDialogView(
permissions_header = new views::Label(prompt.GetPermissionsHeading());
}
permissions_header->SetMultiLine(true);
- permissions_header->SetHorizontalAlignment(views::Label::ALIGN_LEFT);
+ permissions_header->SetHorizontalAlignment(gfx::ALIGN_LEFT);
permissions_header->SizeToFit(left_column_width);
layout->AddView(permissions_header);
@@ -399,7 +399,7 @@ ExtensionInstallDialogView::ExtensionInstallDialogView(
views::Label* permission_label = new views::Label(PrepareForDisplay(
prompt.GetPermission(i), true));
permission_label->SetMultiLine(true);
- permission_label->SetHorizontalAlignment(views::Label::ALIGN_LEFT);
+ permission_label->SetHorizontalAlignment(gfx::ALIGN_LEFT);
permission_label->SizeToFit(left_column_width);
layout->AddView(permission_label);
}
@@ -424,7 +424,7 @@ ExtensionInstallDialogView::ExtensionInstallDialogView(
0, views::kRelatedControlVerticalSpacing);
views::Label* oauth_header = new views::Label(prompt.GetOAuthHeading());
oauth_header->SetMultiLine(true);
- oauth_header->SetHorizontalAlignment(views::Label::ALIGN_LEFT);
+ oauth_header->SetHorizontalAlignment(gfx::ALIGN_LEFT);
oauth_header->SizeToFit(left_column_width);
layout->AddView(oauth_header);
@@ -526,7 +526,7 @@ void IssueAdviceView::DetailsView::AddDetail(const string16& detail) {
views::Label* detail_label =
new views::Label(PrepareForDisplay(detail, true));
detail_label->SetMultiLine(true);
- detail_label->SetHorizontalAlignment(views::Label::ALIGN_LEFT);
+ detail_label->SetHorizontalAlignment(gfx::ALIGN_LEFT);
layout_->AddView(detail_label);
}
@@ -587,7 +587,7 @@ IssueAdviceView::IssueAdviceView(ExtensionInstallDialogView* owner,
new views::Label(PrepareForDisplay(issue_advice.description,
!details_view_));
description_label->SetMultiLine(true);
- description_label->SetHorizontalAlignment(views::Label::ALIGN_LEFT);
+ description_label->SetHorizontalAlignment(gfx::ALIGN_LEFT);
description_label->SizeToFit(horizontal_space);
layout->AddView(description_label);

Powered by Google App Engine
This is Rietveld 408576698