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

Unified Diff: content/shell/renderer/test_runner/WebTestDelegate.h

Issue 395883002: Support layout testing Web Notifications from Document and Worker contexts. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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: content/shell/renderer/test_runner/WebTestDelegate.h
diff --git a/content/shell/renderer/test_runner/WebTestDelegate.h b/content/shell/renderer/test_runner/WebTestDelegate.h
index 09f37f7f3e9779debfd87897dd28217a335ecee4..1b0af10b85d58b001fea4ca77faf30467097b8d1 100644
--- a/content/shell/renderer/test_runner/WebTestDelegate.h
+++ b/content/shell/renderer/test_runner/WebTestDelegate.h
@@ -11,6 +11,7 @@
#include "third_party/WebKit/public/platform/WebString.h"
#include "third_party/WebKit/public/platform/WebURL.h"
#include "third_party/WebKit/public/platform/WebVector.h"
+#include "third_party/WebKit/public/web/WebNotificationPresenter.h"
#define WEBTESTRUNNER_NEW_HISTORY_CAPTURE
@@ -118,6 +119,13 @@ public:
virtual void clearAllDatabases() = 0;
virtual void setDatabaseQuota(int) = 0;
+ // Controls Web Notification permissions.
+ virtual blink::WebNotificationPresenter::Permission
Peter Beverloo 2014/07/15 16:28:26 Note that blink::WebNotificationPresenter::Permiss
+ checkWebNotificationPermission(const GURL& origin) = 0;
+ virtual void grantWebNotificationPermission(const GURL& origin,
+ bool permission_granted) = 0;
+ virtual void clearWebNotificationPermissions() = 0;
+
// Controls the device scale factor of the main WebView for hidpi tests.
virtual void setDeviceScaleFactor(float) = 0;

Powered by Google App Engine
This is Rietveld 408576698