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

Side by Side Diff: chrome/browser/ui/page_info/page_info_ui.h

Issue 2849713003: Move all Page Info strings into page_info_strings.grdp (Closed)
Patch Set: Fix moar. Created 3 years, 7 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 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_PAGE_INFO_PAGE_INFO_UI_H_ 5 #ifndef CHROME_BROWSER_UI_PAGE_INFO_PAGE_INFO_UI_H_
6 #define CHROME_BROWSER_UI_PAGE_INFO_PAGE_INFO_UI_H_ 6 #define CHROME_BROWSER_UI_PAGE_INFO_PAGE_INFO_UI_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 137
138 using CookieInfoList = std::vector<CookieInfo>; 138 using CookieInfoList = std::vector<CookieInfo>;
139 using PermissionInfoList = std::vector<PermissionInfo>; 139 using PermissionInfoList = std::vector<PermissionInfo>;
140 using ChosenObjectInfoList = std::vector<std::unique_ptr<ChosenObjectInfo>>; 140 using ChosenObjectInfoList = std::vector<std::unique_ptr<ChosenObjectInfo>>;
141 141
142 virtual ~PageInfoUI(); 142 virtual ~PageInfoUI();
143 143
144 // Returns the UI string for the given permission |type|. 144 // Returns the UI string for the given permission |type|.
145 static base::string16 PermissionTypeToUIString(ContentSettingsType type); 145 static base::string16 PermissionTypeToUIString(ContentSettingsType type);
146 146
147 // Returns the UI string for the given permission |value|, used in the
148 // permission-changing menu. Generally this will be a verb in the imperative
149 // form, e.g. "ask", "allow", "block".
150 static base::string16 PermissionValueToUIString(ContentSetting value);
151
152 // Returns the UI string describing the action taken for a permission, 147 // Returns the UI string describing the action taken for a permission,
153 // including why that action was taken. E.g. "Allowed by you", 148 // including why that action was taken. E.g. "Allowed by you",
154 // "Blocked by default". If |setting| is default, specify the actual default 149 // "Blocked by default". If |setting| is default, specify the actual default
155 // setting using |default_setting|. 150 // setting using |default_setting|.
156 static base::string16 PermissionActionToUIString( 151 static base::string16 PermissionActionToUIString(
157 Profile* profile, 152 Profile* profile,
158 ContentSettingsType type, 153 ContentSettingsType type,
159 ContentSetting setting, 154 ContentSetting setting,
160 ContentSetting default_setting, 155 ContentSetting default_setting,
161 content_settings::SettingSource source); 156 content_settings::SettingSource source);
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 212
218 // Sets site identity information. 213 // Sets site identity information.
219 virtual void SetIdentityInfo(const IdentityInfo& identity_info) = 0; 214 virtual void SetIdentityInfo(const IdentityInfo& identity_info) = 0;
220 }; 215 };
221 216
222 typedef PageInfoUI::CookieInfoList CookieInfoList; 217 typedef PageInfoUI::CookieInfoList CookieInfoList;
223 typedef PageInfoUI::PermissionInfoList PermissionInfoList; 218 typedef PageInfoUI::PermissionInfoList PermissionInfoList;
224 typedef PageInfoUI::ChosenObjectInfoList ChosenObjectInfoList; 219 typedef PageInfoUI::ChosenObjectInfoList ChosenObjectInfoList;
225 220
226 #endif // CHROME_BROWSER_UI_PAGE_INFO_PAGE_INFO_UI_H_ 221 #endif // CHROME_BROWSER_UI_PAGE_INFO_PAGE_INFO_UI_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/page_info/page_info_infobar_delegate.cc ('k') | chrome/browser/ui/page_info/page_info_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698