| Index: chrome/browser/ui/website_settings/website_settings_ui.h
|
| diff --git a/chrome/browser/ui/website_settings/website_settings_ui.h b/chrome/browser/ui/website_settings/website_settings_ui.h
|
| index a656ae571f47f267956fad5aafb91825919fcdc4..980c1571d7b26199fe68664841f6392d8e71c70d 100644
|
| --- a/chrome/browser/ui/website_settings/website_settings_ui.h
|
| +++ b/chrome/browser/ui/website_settings/website_settings_ui.h
|
| @@ -43,6 +43,14 @@ class WebsiteSettingsUI {
|
| NUM_TAB_IDS,
|
| };
|
|
|
| + // A value that represents a what subset of permissions are shown. This is
|
| + // used to determine the behaviour of the permission button.
|
| + enum VisiblePermissions {
|
| + VISIBLE_PERMISSIONS_NONE,
|
| + VISIBLE_PERMISSIONS_SOME_BUT_NOT_ALL,
|
| + VISIBLE_PERMISSIONS_ALL,
|
| + };
|
| +
|
| // The security summary is styled depending on the security state. At the
|
| // moment, the only styling we apply is color, but it could also include e.g.
|
| // bolding.
|
| @@ -155,6 +163,10 @@ class WebsiteSettingsUI {
|
| ContentSetting default_setting,
|
| content_settings::SettingSource source);
|
|
|
| + // Returns the UI string for the given permission |type|.
|
| + static base::string16 GetPermissionButtonString(
|
| + VisiblePermissions visible_permissions);
|
| +
|
| // Returns the icon resource ID for the given permission |type| and |setting|.
|
| static int GetPermissionIconID(ContentSettingsType type,
|
| ContentSetting setting);
|
| @@ -194,6 +206,10 @@ class WebsiteSettingsUI {
|
| const PermissionInfoList& permission_info_list,
|
| ChosenObjectInfoList chosen_object_info_list) = 0;
|
|
|
| + // Sets permission button
|
| + virtual void UpdatePermissionButton(
|
| + VisiblePermissions visible_permissions) = 0;
|
| +
|
| // Sets site identity information.
|
| virtual void SetIdentityInfo(const IdentityInfo& identity_info) = 0;
|
| };
|
|
|