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

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

Issue 2403763003: [Mac] Address buggy permission bubble behaviour on dismissal via ESC. (Closed)
Patch Set: Address comments Created 4 years, 2 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_manager.h
diff --git a/chrome/browser/permissions/permission_request_manager.h b/chrome/browser/permissions/permission_request_manager.h
index def150e1a9606b7fe9b8f6fa147475115d17db07..e94c2c122adbb24b4a307541a881213f23de8a06 100644
--- a/chrome/browser/permissions/permission_request_manager.h
+++ b/chrome/browser/permissions/permission_request_manager.h
@@ -70,7 +70,14 @@ class PermissionRequestManager
// at which time the caller is free to delete the request.
void CancelRequest(PermissionRequest* request);
- // Hides the bubble.
+ // Dismisses the bubble if it is visible, as if the user had clicked the X in
+ // the prompt. Then hides the bubble and destroys the UI surface used to
+ // display permission requests.
raymes 2016/10/26 04:59:11 Could you add a note here that this is only used o
dominickn 2016/10/26 05:54:23 I don't want to do that yet, because at some point
raymes 2016/10/27 01:42:57 Can we add a TODO to that effect then, with a bug
+ void DismissBubble();
+
+ // Temporarily hides the bubble, and destroys the prompt UI surface. Any
+ // existing requests will be reshown when DisplayPendingRequests is called
+ // (e.g. when switching tabs away and back to a page with a prompt).
void HideBubble();
// Will show a permission bubble if there is a pending permission request on

Powered by Google App Engine
This is Rietveld 408576698