Chromium Code Reviews| Index: chrome/browser/ui/views/extensions/extension_install_dialog_view.h |
| diff --git a/chrome/browser/ui/views/extensions/extension_install_dialog_view.h b/chrome/browser/ui/views/extensions/extension_install_dialog_view.h |
| index 604e9ae1e6a874f6398f10cf122b2137550e71d7..a93508999089746dc2e374c8b77a3802cf6f6e28 100644 |
| --- a/chrome/browser/ui/views/extensions/extension_install_dialog_view.h |
| +++ b/chrome/browser/ui/views/extensions/extension_install_dialog_view.h |
| @@ -24,6 +24,10 @@ namespace extensions { |
| class ExperienceSamplingEvent; |
| } |
| +namespace ui { |
| +class ResourceBundle; |
| +} |
| + |
| namespace views { |
| class GridLayout; |
| class ImageButton; |
| @@ -86,6 +90,16 @@ class ExtensionInstallDialogView : public views::DialogDelegateView, |
| // Experimental: Toggles inline permission explanations with an animation. |
| void ToggleInlineExplanations(); |
| + // Initializes the dialog view, adding in permissions if they exist. |
| + void InitView(); |
| + |
| + // Adds permissions of |perm_type| to the dialog view if they exist. |
| + bool MaybeAddPermissions(views::GridLayout* layout, |
|
Devlin
2014/09/04 22:06:09
I would just call this AddPermissions(). The comm
gpdavis
2014/09/05 20:23:02
Done.
|
| + ui::ResourceBundle& rb, |
| + int column_set_id, |
| + int left_column_width, |
| + ExtensionInstallPrompt::PermissionsType perm_type); |
| + |
| // Creates a layout consisting of dialog header, extension name and icon. |
| views::GridLayout* CreateLayout( |
| views::View* parent, |