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

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

Issue 327743002: Re-styled the App Info Dialog according to UI feedback (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Updated to use AboutPage instead of OptionsPage (rebase) Created 6 years, 6 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
new file mode 100644
index 0000000000000000000000000000000000000000..0821073219aa17c6e4926c2d85f676f0f37f3a7a
--- /dev/null
+++ b/chrome/browser/ui/views/apps/app_info_dialog/app_info_panel.cc
@@ -0,0 +1,35 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chrome/browser/ui/views/apps/app_info_dialog/app_info_panel.h"
+
+#include "ui/base/resource/resource_bundle.h"
+#include "ui/views/controls/label.h"
+#include "ui/views/layout/box_layout.h"
+#include "ui/views/layout/layout_constants.h"
+
+AppInfoPanel::AppInfoPanel(Profile* profile, const extensions::Extension* app)
+ : profile_(profile), app_(app) {
+}
+
+AppInfoPanel::~AppInfoPanel() {
+}
+
+views::Label* AppInfoPanel::CreateHeading(const base::string16& text) const {
+ views::Label* label = new views::Label(text);
+ label->SetHorizontalAlignment(gfx::ALIGN_LEFT);
+ label->SetFontList(ui::ResourceBundle::GetSharedInstance().GetFontList(
+ ui::ResourceBundle::MediumFont));
+ return label;
+}
+
+views::View* AppInfoPanel::CreateVerticalStack() const {
+ views::View* vertically_stacked_view = new views::View();
+ vertically_stacked_view->SetLayoutManager(
+ new views::BoxLayout(views::BoxLayout::kVertical,
+ 0,
+ 0,
+ views::kRelatedControlVerticalSpacing));
+ return vertically_stacked_view;
+}

Powered by Google App Engine
This is Rietveld 408576698