Index: chrome/browser/ui/views/apps/app_info_dialog/app_info_panel.cc |
diff --git a/chrome/browser/ui/views/apps/app_info_dialog/app_info_panel.cc b/chrome/browser/ui/views/apps/app_info_dialog/app_info_panel.cc |
index 0821073219aa17c6e4926c2d85f676f0f37f3a7a..d81ef75973fd4cdcc4d22eb539b8bebf74af44bd 100644 |
--- a/chrome/browser/ui/views/apps/app_info_dialog/app_info_panel.cc |
+++ b/chrome/browser/ui/views/apps/app_info_dialog/app_info_panel.cc |
@@ -24,12 +24,31 @@ views::Label* AppInfoPanel::CreateHeading(const base::string16& text) const { |
return label; |
} |
+views::Label* AppInfoPanel::CreateLeftAlignedLabel( |
+ const base::string16& text) const { |
+ views::Label* label = new views::Label(text); |
+ label->SetHorizontalAlignment(gfx::ALIGN_LEFT); |
+ return label; |
+} |
+ |
+views::View* AppInfoPanel::CreateVerticalStack(int child_spacing) const { |
+ views::View* vertically_stacked_view = new views::View(); |
+ vertically_stacked_view->SetLayoutManager( |
+ new views::BoxLayout(views::BoxLayout::kVertical, 0, 0, child_spacing)); |
+ return vertically_stacked_view; |
+} |
+ |
views::View* AppInfoPanel::CreateVerticalStack() const { |
+ return CreateVerticalStack(views::kRelatedControlVerticalSpacing); |
+} |
+ |
+views::View* AppInfoPanel::CreateHorizontalStack(int child_spacing) const { |
views::View* vertically_stacked_view = new views::View(); |
vertically_stacked_view->SetLayoutManager( |
- new views::BoxLayout(views::BoxLayout::kVertical, |
- 0, |
- 0, |
- views::kRelatedControlVerticalSpacing)); |
+ new views::BoxLayout(views::BoxLayout::kHorizontal, 0, 0, child_spacing)); |
return vertically_stacked_view; |
} |
+ |
+views::View* AppInfoPanel::CreateHorizontalStack() const { |
+ return CreateVerticalStack(views::kRelatedControlHorizontalSpacing); |
+} |