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

Unified Diff: content/shell/renderer/webkit_test_runner.cc

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/webkit_test_runner.cc
diff --git a/content/shell/renderer/webkit_test_runner.cc b/content/shell/renderer/webkit_test_runner.cc
index 9646f051c13f9df76284e8296272d32c6f6699ac..8c90b052c7676a38b38d2f0ebd0afec09e338544 100644
--- a/content/shell/renderer/webkit_test_runner.cc
+++ b/content/shell/renderer/webkit_test_runner.cc
@@ -410,6 +410,26 @@ void WebKitTestRunner::setDatabaseQuota(int quota) {
Send(new ShellViewHostMsg_SetDatabaseQuota(routing_id(), quota));
}
+blink::WebNotificationPresenter::Permission
+WebKitTestRunner::checkWebNotificationPermission(const GURL& origin) {
+ int permission = blink::WebNotificationPresenter::PermissionNotAllowed;
+ Send(new ShellViewHostMsg_CheckWebNotificationPermission(
+ routing_id(),
+ origin,
+ &permission));
+ return static_cast<blink::WebNotificationPresenter::Permission>(permission);
+}
+
+void WebKitTestRunner::grantWebNotificationPermission(const GURL& origin,
+ bool permission_granted) {
+ Send(new ShellViewHostMsg_GrantWebNotificationPermission(
+ routing_id(), origin, permission_granted));
+}
+
+void WebKitTestRunner::clearWebNotificationPermissions() {
+ Send(new ShellViewHostMsg_ClearWebNotificationPermissions(routing_id()));
+}
+
void WebKitTestRunner::setDeviceScaleFactor(float factor) {
SetDeviceScaleFactor(render_view(), factor);
}

Powered by Google App Engine
This is Rietveld 408576698