| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_WEBSITE_SETTINGS_WEBSITE_SETTINGS_UI_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBSITE_SETTINGS_WEBSITE_SETTINGS_UI_H_ |
| 6 #define CHROME_BROWSER_UI_WEBSITE_SETTINGS_WEBSITE_SETTINGS_UI_H_ | 6 #define CHROME_BROWSER_UI_WEBSITE_SETTINGS_WEBSITE_SETTINGS_UI_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 | 147 |
| 148 // Returns the UI string for the given permission |value|, used in the | 148 // Returns the UI string for the given permission |value|, used in the |
| 149 // permission-changing menu. Generally this will be a verb in the imperative | 149 // permission-changing menu. Generally this will be a verb in the imperative |
| 150 // form, e.g. "ask", "allow", "block". | 150 // form, e.g. "ask", "allow", "block". |
| 151 static base::string16 PermissionValueToUIString(ContentSetting value); | 151 static base::string16 PermissionValueToUIString(ContentSetting value); |
| 152 | 152 |
| 153 // Returns the UI string describing the action taken for a permission, | 153 // Returns the UI string describing the action taken for a permission, |
| 154 // including why that action was taken. E.g. "Allowed by you", | 154 // including why that action was taken. E.g. "Allowed by you", |
| 155 // "Blocked by default". | 155 // "Blocked by default". |
| 156 static base::string16 PermissionActionToUIString( | 156 static base::string16 PermissionActionToUIString( |
| 157 Profile* profile, |
| 157 ContentSettingsType type, | 158 ContentSettingsType type, |
| 158 ContentSetting setting, | 159 ContentSetting setting, |
| 159 ContentSetting default_setting, | 160 ContentSetting default_setting, |
| 160 content_settings::SettingSource source); | 161 content_settings::SettingSource source); |
| 161 | 162 |
| 162 // Returns the icon resource ID for the given permission |type| and |setting|. | 163 // Returns the icon resource ID for the given permission |type| and |setting|. |
| 163 static int GetPermissionIconID(ContentSettingsType type, | 164 static int GetPermissionIconID(ContentSettingsType type, |
| 164 ContentSetting setting); | 165 ContentSetting setting); |
| 165 | 166 |
| 166 // Returns the icon for the given permissionInfo |info|. If |info|'s current | 167 // Returns the icon for the given permissionInfo |info|. If |info|'s current |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 204 | 205 |
| 205 // Selects the tab with the given |tab_id|. | 206 // Selects the tab with the given |tab_id|. |
| 206 virtual void SetSelectedTab(TabId tab_id) = 0; | 207 virtual void SetSelectedTab(TabId tab_id) = 0; |
| 207 }; | 208 }; |
| 208 | 209 |
| 209 typedef WebsiteSettingsUI::CookieInfoList CookieInfoList; | 210 typedef WebsiteSettingsUI::CookieInfoList CookieInfoList; |
| 210 typedef WebsiteSettingsUI::PermissionInfoList PermissionInfoList; | 211 typedef WebsiteSettingsUI::PermissionInfoList PermissionInfoList; |
| 211 typedef WebsiteSettingsUI::ChosenObjectInfoList ChosenObjectInfoList; | 212 typedef WebsiteSettingsUI::ChosenObjectInfoList ChosenObjectInfoList; |
| 212 | 213 |
| 213 #endif // CHROME_BROWSER_UI_WEBSITE_SETTINGS_WEBSITE_SETTINGS_UI_H_ | 214 #endif // CHROME_BROWSER_UI_WEBSITE_SETTINGS_WEBSITE_SETTINGS_UI_H_ |
| OLD | NEW |