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

Issue 1263043002: Add NotificationOptions.actions so websites can provide buttons (blink) (Closed)

Created:
5 years, 4 months ago by johnme
Modified:
5 years, 4 months ago
Reviewers:
Peter Beverloo
CC:
blink-reviews, peter+watch_chromium.org, dglazkov+blink
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Add NotificationOptions.actions so websites can provide buttons (blink) Spec: https://github.com/whatwg/notifications/pull/48 Intent to implement: https://groups.google.com/a/chromium.org/d/msg/blink-dev/6tlbJW0NjEA/LF0kPfJx7c0J This patch only includes NotificationAction.title; NotificationAction.action is added by the subsequent patch: https://codereview.chromium.org/1263043003 BUG=513671 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=199893

Patch Set 1 #

Total comments: 24

Patch Set 2 : Address peter's review comments #

Patch Set 3 : Tweak SW test #

Total comments: 12

Patch Set 4 : Address additional review comments #

Patch Set 5 : Rebase #

Patch Set 6 : Rebase #

Patch Set 7 : Add to global-interface-listing*-expected.txt #

Unified diffs Side-by-side diffs Delta from patch set Stats (+210 lines, -12 lines) Patch
M LayoutTests/http/tests/notifications/notification-properties.html View 1 4 chunks +33 lines, -1 line 0 comments Download
M LayoutTests/http/tests/notifications/serviceworker-notificationclick-event-reflection.html View 1 2 chunks +6 lines, -1 line 0 comments Download
A LayoutTests/http/tests/notifications/serviceworkerregistration-document-actions-throw.html View 1 2 1 chunk +53 lines, -0 lines 0 comments Download
M LayoutTests/http/tests/serviceworker/webexposed/global-interface-listing-service-worker-expected.txt View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/webexposed/global-interface-listing-dedicated-worker-expected.txt View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/webexposed/global-interface-listing-expected.txt View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/webexposed/global-interface-listing-shared-worker-expected.txt View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M Source/modules/modules.gypi View 1 2 chunks +3 lines, -0 lines 0 comments Download
M Source/modules/notifications/Notification.h View 1 2 3 4 5 6 chunks +12 lines, -3 lines 0 comments Download
M Source/modules/notifications/Notification.cpp View 1 2 3 4 5 7 chunks +38 lines, -3 lines 0 comments Download
M Source/modules/notifications/Notification.idl View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
A + Source/modules/notifications/NotificationAction.idl View 1 chunk +3 lines, -3 lines 0 comments Download
M Source/modules/notifications/NotificationOptions.idl View 1 chunk +1 line, -0 lines 0 comments Download
M Source/modules/notifications/ServiceWorkerRegistrationNotifications.cpp View 1 2 3 2 chunks +8 lines, -1 line 0 comments Download
M public/BUILD.gn View 1 1 chunk +1 line, -0 lines 0 comments Download
A public/platform/modules/notifications/WebNotificationAction.h View 1 1 chunk +28 lines, -0 lines 0 comments Download
M public/platform/modules/notifications/WebNotificationData.h View 4 chunks +17 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 29 (14 generated)
johnme
5 years, 4 months ago (2015-07-30 15:49:52 UTC) #2
Peter Beverloo
Cool, thanks John! Please link to both the specification and the Intent to Implement in ...
5 years, 4 months ago (2015-07-30 16:24:08 UTC) #3
johnme
Addressed review comments - thanks! https://codereview.chromium.org/1263043002/diff/1/LayoutTests/http/tests/notifications/notification-properties.html File LayoutTests/http/tests/notifications/notification-properties.html (right): https://codereview.chromium.org/1263043002/diff/1/LayoutTests/http/tests/notifications/notification-properties.html#newcode36 LayoutTests/http/tests/notifications/notification-properties.html:36: assert_object_equals(notification.actions, options.actions.slice(0, 2)); On ...
5 years, 4 months ago (2015-07-31 15:10:10 UTC) #4
Peter Beverloo
lgtm https://codereview.chromium.org/1263043002/diff/40001/Source/modules/notifications/Notification.cpp File Source/modules/notifications/Notification.cpp (right): https://codereview.chromium.org/1263043002/diff/40001/Source/modules/notifications/Notification.cpp#newcode117 Source/modules/notifications/Notification.cpp:117: actions.appendRange(options.actions().begin(), options.actions().begin() + std::min(notificationManager()->maxActions(), options.actions().size())); nit: you can ...
5 years, 4 months ago (2015-07-31 15:38:49 UTC) #5
johnme
Addressed review comments - thanks! https://codereview.chromium.org/1263043002/diff/1/LayoutTests/http/tests/notifications/serviceworkerregistration-document-actions-throw.html File LayoutTests/http/tests/notifications/serviceworkerregistration-document-actions-throw.html (right): https://codereview.chromium.org/1263043002/diff/1/LayoutTests/http/tests/notifications/serviceworkerregistration-document-actions-throw.html#newcode12 LayoutTests/http/tests/notifications/serviceworkerregistration-document-actions-throw.html:12: var scope = 'resources/scope/' ...
5 years, 4 months ago (2015-07-31 16:08:52 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1263043002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1263043002/60001
5 years, 4 months ago (2015-07-31 16:11:01 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: android_blink_compile_dbg on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/android_blink_compile_dbg/builds/44744) android_blink_compile_rel on tryserver.blink (JOB_FAILED, ...
5 years, 4 months ago (2015-07-31 16:14:10 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1263043002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1263043002/80001
5 years, 4 months ago (2015-07-31 16:23:50 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: android_blink_compile_dbg on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/android_blink_compile_dbg/builds/44748) android_blink_compile_rel on tryserver.blink (JOB_FAILED, ...
5 years, 4 months ago (2015-07-31 16:27:09 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1263043002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1263043002/100001
5 years, 4 months ago (2015-07-31 16:37:08 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: win_blink_rel on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/win_blink_rel/builds/72235)
5 years, 4 months ago (2015-07-31 17:53:41 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1263043002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1263043002/120001
5 years, 4 months ago (2015-07-31 18:11:49 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: win_blink_rel on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/win_blink_rel/builds/72241)
5 years, 4 months ago (2015-07-31 20:24:31 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1263043002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1263043002/120001
5 years, 4 months ago (2015-08-03 09:59:22 UTC) #28
commit-bot: I haz the power
5 years, 4 months ago (2015-08-03 11:20:49 UTC) #29
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=199893

Powered by Google App Engine
This is Rietveld 408576698