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

Unified Diff: chrome/browser/ui/views/apps/app_info_dialog/app_info_panel.cc

Issue 383953002: Moved the version number in App Info Dialog (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added constant Created 6 years, 5 months 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/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..16ebf8db0b48f847774a9387034247cfb6b7c2ce 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,24 @@ views::Label* AppInfoPanel::CreateHeading(const base::string16& text) const {
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);
+}

Powered by Google App Engine
This is Rietveld 408576698