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

Side by Side Diff: chrome/browser/ui/website_settings/website_settings_ui.h

Issue 819183002: Plugin Power Saver: Fix DETECT in WebsiteSettingsUI omnibox dropdown. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@0210-plugin-power-saver-fix-website-settings-plugin-ask-backportable
Patch Set: fix mac stuff Created 6 years 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 unified diff | Download patch
OLDNEW
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 <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 113
114 // Returns the UI string for the given permission |value|, used in the 114 // Returns the UI string for the given permission |value|, used in the
115 // permission-changing menu. Generally this will be a verb in the imperative 115 // permission-changing menu. Generally this will be a verb in the imperative
116 // form, e.g. "ask", "allow", "block". 116 // form, e.g. "ask", "allow", "block".
117 static base::string16 PermissionValueToUIString(ContentSetting value); 117 static base::string16 PermissionValueToUIString(ContentSetting value);
118 118
119 // Returns the UI string describing the action taken for a permission, 119 // Returns the UI string describing the action taken for a permission,
120 // including why that action was taken. E.g. "Allowed by you", 120 // including why that action was taken. E.g. "Allowed by you",
121 // "Blocked by default". 121 // "Blocked by default".
122 static base::string16 PermissionActionToUIString( 122 static base::string16 PermissionActionToUIString(
123 ContentSettingsType type,
123 ContentSetting setting, 124 ContentSetting setting,
124 ContentSetting default_setting, 125 ContentSetting default_setting,
125 content_settings::SettingSource source); 126 content_settings::SettingSource source);
126 127
127 // Returns the icon resource ID for the given permission |type| and |setting|. 128 // Returns the icon resource ID for the given permission |type| and |setting|.
128 static int GetPermissionIconID(ContentSettingsType type, 129 static int GetPermissionIconID(ContentSettingsType type,
129 ContentSetting setting); 130 ContentSetting setting);
130 131
131 // Returns the icon for the given permissionInfo |info|. If |info|'s current 132 // Returns the icon for the given permissionInfo |info|. If |info|'s current
132 // setting is CONTENT_SETTING_DEFAULT, it will return the icon for |info|'s 133 // setting is CONTENT_SETTING_DEFAULT, it will return the icon for |info|'s
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 virtual void SetFirstVisit(const base::string16& first_visit) = 0; 169 virtual void SetFirstVisit(const base::string16& first_visit) = 0;
169 170
170 // Selects the tab with the given |tab_id|. 171 // Selects the tab with the given |tab_id|.
171 virtual void SetSelectedTab(TabId tab_id) = 0; 172 virtual void SetSelectedTab(TabId tab_id) = 0;
172 }; 173 };
173 174
174 typedef WebsiteSettingsUI::CookieInfoList CookieInfoList; 175 typedef WebsiteSettingsUI::CookieInfoList CookieInfoList;
175 typedef WebsiteSettingsUI::PermissionInfoList PermissionInfoList; 176 typedef WebsiteSettingsUI::PermissionInfoList PermissionInfoList;
176 177
177 #endif // CHROME_BROWSER_UI_WEBSITE_SETTINGS_WEBSITE_SETTINGS_UI_H_ 178 #endif // CHROME_BROWSER_UI_WEBSITE_SETTINGS_WEBSITE_SETTINGS_UI_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/website_settings/permission_menu_model.cc ('k') | chrome/browser/ui/website_settings/website_settings_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698