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

Unified Diff: chrome/test/data/notifications/notification_tester.html

Issue 2729613006: When navigation focuses a web contents, also activate its window. (Closed)
Patch Set: Copyright + nits Created 3 years, 9 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 | « chrome/test/BUILD.gn ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/notifications/notification_tester.html
diff --git a/chrome/test/data/notifications/notification_tester.html b/chrome/test/data/notifications/notification_tester.html
index 20de190962ee4f1e2b6d12586a606e3223c07481..2cfc5f6a39eba7cd5756d9306049646786a48f85 100644
--- a/chrome/test/data/notifications/notification_tester.html
+++ b/chrome/test/data/notifications/notification_tester.html
@@ -14,12 +14,13 @@ var g_permissionGranted = false;
// Returns an id for the notification, which can be used to cancel it with
// |cancelNotification|. If two notifications are created with the same
// tag, the second one should replace the first.
-function createNotification(iconUrl, title, text, tag) {
+function createNotification(iconUrl, title, text, tag, onclick) {
var notification = new Notification(title, {
icon: iconUrl,
body: text,
tag: tag
});
+ notification.onclick = onclick;
createNotificationHelper(notification, true);
}
« no previous file with comments | « chrome/test/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698