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

Unified Diff: chrome/browser/ui/views/extensions/extension_install_dialog_view.h

Issue 501273002: Update extension install prompt to reflect withheld permissions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cocoa changes Created 6 years, 3 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/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 3477b46d435d14e6d65468e56f7cd96a16c4b6d9..b1b324d6d1a6b7f44d2a7770d5af3d920a42cf3d 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 AddPermissions(views::GridLayout* layout,
+ 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,

Powered by Google App Engine
This is Rietveld 408576698