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

Unified Diff: chrome/browser/permissions/permission_request.h

Issue 2897223002: Fix message text for modal prompts when PermissionRequestManager enabled (Closed)
Patch Set: address comments 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/permissions/permission_request.h
diff --git a/chrome/browser/permissions/permission_request.h b/chrome/browser/permissions/permission_request.h
index 748313efd9606d90f1ef7a5867d43fe10b98965d..add863213438b9b796084c5ea31bd7f6f8ff04c1 100644
--- a/chrome/browser/permissions/permission_request.h
+++ b/chrome/browser/permissions/permission_request.h
@@ -76,6 +76,12 @@ class PermissionRequest {
// The icon to use next to the message text fragment in the permission bubble.
virtual IconId GetIconId() const = 0;
+#if defined(OS_ANDROID)
+ // Returns the full prompt text for this permission. This is currently only
+ // used on Android.
+ virtual base::string16 GetMessageText() const = 0;
+#endif
+
// Returns the shortened prompt text for this permission. Must be phrased
// as a heading, e.g. "Location", or "Camera". The permission bubble may
// coalesce different requests, and if it does, this text will be displayed
« no previous file with comments | « chrome/browser/permissions/permission_prompt_android.cc ('k') | chrome/browser/permissions/permission_request_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698