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

Side by Side Diff: chrome/browser/ui/views/apps/app_info_dialog/app_info_panel.h

Issue 335483003: Revert "Re-styled the App Info Dialog according to UI feedback" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_UI_VIEWS_APPS_APP_INFO_DIALOG_APP_INFO_PANEL_H_
6 #define CHROME_BROWSER_UI_VIEWS_APPS_APP_INFO_DIALOG_APP_INFO_PANEL_H_
7
8 #include "ui/gfx/native_widget_types.h"
9 #include "ui/views/view.h"
10
11 class Profile;
12
13 namespace extensions {
14 class Extension;
15 }
16 namespace views {
17 class Label;
18 class View;
19 }
20
21 // A piece of the App Info dialog that displays information for a particular
22 // profile and app. Panels in the App Info dialog extend this class.
23 class AppInfoPanel : public views::View {
24 public:
25 AppInfoPanel(gfx::NativeWindow parent_window,
26 Profile* profile,
27 const extensions::Extension* app,
28 const base::Closure& close_callback);
29
30 virtual ~AppInfoPanel();
31
32 protected:
33 // Create a heading label with the given text.
34 views::Label* CreateHeading(const base::string16& text) const;
35
36 // Create a view with a vertically-stacked box layout, which can have child
37 // views appended to it.
38 views::View* CreateVerticalStack() const;
39
40 gfx::NativeWindow parent_window_;
41 Profile* profile_;
42 const extensions::Extension* app_;
43 const base::Closure& close_callback_;
44
45 private:
46 DISALLOW_COPY_AND_ASSIGN(AppInfoPanel);
47 };
48
49 #endif // CHROME_BROWSER_UI_VIEWS_APPS_APP_INFO_DIALOG_APP_INFO_PANEL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698