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 11 matching lines...) Expand all Loading... |
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 view with a vertically-stacked box layout, which can have child | 31 // Create a view with a vertically-stacked box layout, which can have child |
32 // views appended to it. | 32 // views appended to it. |child_spacing| defaults to |
| 33 // |views::kRelatedControlVerticalSpacing|. |
| 34 views::View* CreateVerticalStack(int child_spacing) const; |
33 views::View* CreateVerticalStack() const; | 35 views::View* CreateVerticalStack() const; |
34 | 36 |
| 37 // Create a view with a horizontally-stacked box layout, which can have child |
| 38 // views appended to it. |child_spacing| defaults to the spacing between |
| 39 // related horizontal controls. |
| 40 views::View* CreateHorizontalStack(int child_spacing) const; |
| 41 views::View* CreateHorizontalStack() const; |
| 42 |
35 Profile* profile_; | 43 Profile* profile_; |
36 const extensions::Extension* app_; | 44 const extensions::Extension* app_; |
37 | 45 |
38 private: | 46 private: |
39 DISALLOW_COPY_AND_ASSIGN(AppInfoPanel); | 47 DISALLOW_COPY_AND_ASSIGN(AppInfoPanel); |
40 }; | 48 }; |
41 | 49 |
42 #endif // CHROME_BROWSER_UI_VIEWS_APPS_APP_INFO_DIALOG_APP_INFO_PANEL_H_ | 50 #endif // CHROME_BROWSER_UI_VIEWS_APPS_APP_INFO_DIALOG_APP_INFO_PANEL_H_ |
OLD | NEW |