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

Unified Diff: chrome/test/data/notifications/android_test_worker.js

Issue 2418153002: Hooking up Android N inline notification replies end-to-end (Closed)
Patch Set: Reformat getNotificationReply 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/test/data/notifications/android_test_worker.js
diff --git a/chrome/test/data/notifications/android_test_worker.js b/chrome/test/data/notifications/android_test_worker.js
index 4886db2bfd0f211725a8390d141a0d2d229b1127..a3cead4e858eb5ae487bfdddba9e2b77a6658c8c 100644
--- a/chrome/test/data/notifications/android_test_worker.js
+++ b/chrome/test/data/notifications/android_test_worker.js
@@ -12,6 +12,8 @@ addEventListener('message', function(event) {
addEventListener('notificationclick', function(event) {
if (event.notification.data === 'ACTION_CREATE_TAB')
clients.openWindow('https://chrome.com/');
+ else if (event.notification.data === 'ACTION_REPLY')
+ messagePort.postMessage('reply: ' + event.reply)
event.notification.close();
});
« no previous file with comments | « chrome/test/data/notifications/android_test.html ('k') | chrome/test/data/notifications/notification_test_utils.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698