OLD | NEW |
---|---|
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_UI_VIEWS_APPS_APP_INFO_DIALOG_APP_INFO_PANEL_H_ | 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_ | 6 #define CHROME_BROWSER_UI_VIEWS_APPS_APP_INFO_DIALOG_APP_INFO_PANEL_H_ |
7 | 7 |
8 #include "ui/views/view.h" | 8 #include "ui/views/view.h" |
9 | 9 |
10 class Profile; | 10 class Profile; |
(...skipping 10 matching lines...) Expand all Loading... | |
21 class AppInfoPanel : public views::View { | 21 class AppInfoPanel : public views::View { |
22 public: | 22 public: |
23 AppInfoPanel(Profile* profile, const extensions::Extension* app); | 23 AppInfoPanel(Profile* profile, const extensions::Extension* app); |
24 | 24 |
25 virtual ~AppInfoPanel(); | 25 virtual ~AppInfoPanel(); |
26 | 26 |
27 protected: | 27 protected: |
28 // Create a heading label with the given text. | 28 // Create a heading label with the given text. |
29 views::Label* CreateHeading(const base::string16& text) const; | 29 views::Label* CreateHeading(const base::string16& text) const; |
30 | 30 |
31 // Create a left-aligned label with the given text. | |
32 views::Label* CreateLeftAlignedLabel(const base::string16& text) const; | |
Matt Giuca
2014/07/14 01:57:23
I don't think this is a worthwhile abstraction --
sashab
2014/07/14 23:19:20
Agreed. Done.
| |
33 | |
31 // Create a view with a vertically-stacked box layout, which can have child | 34 // Create a view with a vertically-stacked box layout, which can have child |
32 // views appended to it. | 35 // views appended to it. |child_spacing| defaults to the spacing between |
Matt Giuca
2014/07/14 01:57:22
This new comment doesn't really make sense. Maybe
sashab
2014/07/14 23:19:20
Done.
| |
36 // related vertical controls. | |
37 views::View* CreateVerticalStack(int child_spacing) const; | |
33 views::View* CreateVerticalStack() const; | 38 views::View* CreateVerticalStack() const; |
34 | 39 |
40 // Create a view with a horizontally-stacked box layout, which can have child | |
41 // views appended to it. |child_spacing| defaults to the spacing between | |
42 // related horizontal controls. | |
43 views::View* CreateHorizontalStack(int child_spacing) const; | |
44 views::View* CreateHorizontalStack() const; | |
45 | |
35 Profile* profile_; | 46 Profile* profile_; |
36 const extensions::Extension* app_; | 47 const extensions::Extension* app_; |
37 | 48 |
38 private: | 49 private: |
39 DISALLOW_COPY_AND_ASSIGN(AppInfoPanel); | 50 DISALLOW_COPY_AND_ASSIGN(AppInfoPanel); |
40 }; | 51 }; |
41 | 52 |
42 #endif // CHROME_BROWSER_UI_VIEWS_APPS_APP_INFO_DIALOG_APP_INFO_PANEL_H_ | 53 #endif // CHROME_BROWSER_UI_VIEWS_APPS_APP_INFO_DIALOG_APP_INFO_PANEL_H_ |
OLD | NEW |