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

Unified Diff: chrome/browser/ui/website_settings/mock_permission_bubble_request.h

Issue 292453009: Handles iframe permissions requests separately, in a subsequent bubble. (Closed) Base URL: https://chromium.googlesource.com/chromium/src
Patch Set: unit test edit Created 6 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
« no previous file with comments | « no previous file | chrome/browser/ui/website_settings/mock_permission_bubble_request.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/website_settings/mock_permission_bubble_request.h
diff --git a/chrome/browser/ui/website_settings/mock_permission_bubble_request.h b/chrome/browser/ui/website_settings/mock_permission_bubble_request.h
index a150a93a7f7ab2d352e5d71cec21c4e070381fb2..f6f004f0f0e84e0b619ac4f6f1ad8de315b367ae 100644
--- a/chrome/browser/ui/website_settings/mock_permission_bubble_request.h
+++ b/chrome/browser/ui/website_settings/mock_permission_bubble_request.h
@@ -14,6 +14,8 @@ class MockPermissionBubbleRequest : public PermissionBubbleRequest {
MockPermissionBubbleRequest();
explicit MockPermissionBubbleRequest(const std::string& text);
explicit MockPermissionBubbleRequest(const std::string& text,
+ const GURL& url);
+ explicit MockPermissionBubbleRequest(const std::string& text,
const std::string& accept_label,
const std::string& deny_label);
virtual ~MockPermissionBubbleRequest();
@@ -33,14 +35,18 @@ class MockPermissionBubbleRequest : public PermissionBubbleRequest {
bool cancelled();
bool finished();
+ void SetHasUserGesture();
+
private:
bool granted_;
bool cancelled_;
bool finished_;
+ bool user_gesture_;
base::string16 text_;
base::string16 accept_label_;
base::string16 deny_label_;
+ GURL hostname_;
};
#endif // CHROME_BROWSER_UI_WEBSITE_SETTINGS_MOCK_PERMISSION_BUBBLE_REQUEST_H_
« no previous file with comments | « no previous file | chrome/browser/ui/website_settings/mock_permission_bubble_request.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698