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

Issue 1855443002: Implement receiving side of web notification inline replies (Closed)

Created:
4 years, 8 months ago by Nina
Modified:
4 years, 8 months ago
CC:
blink-reviews, blink-reviews-api_chromium.org, chromium-reviews, darin-cc_chromium.org, dglazkov+blink, haraken, jam, kinuko+watch, mlamouri+watch-notifications_chromium.org, Peter Beverloo
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement receiving side of web notification inline replies Implement the part of the web notification inline replies API that tells actions that they should show a text input. The new API is under an experimetal flag (NotificationInlineReplies) and does not do anything yet. This is a highly experimental API. An intent to implement has already been sent [1]. For a more detailed explanation of the implementation plan and what the feature does please refer to the doc [2] [1] https://goo.gl/7wzBMB [2] https://goo.gl/qc6g1z BUG=599859 TEST=NotificationDatabaseDataTest.SerializeAndDeserializeActionTypes, NotificationDatabaseDataTest.SerializeAndDeserializeData, NotificationDatabaseDataTest.SerializeAndDeserializeNullPlaceholder, NotificationDataConversionsTest.ToPlatformNotificationData, NotificationDataConversionsTest.ToWebNotificationData, http/tests/notifications/serviceworker-notification-properties.html, http/tests/notifications/notification-properties.html Committed: https://crrev.com/d1c3e840df52f94b23a129c5466cb7866c8261c7 Cr-Commit-Position: refs/heads/master@{#385724}

Patch Set 1 #

Total comments: 10

Patch Set 2 : Comments & Tests #

Total comments: 9

Patch Set 3 : Comments #

Patch Set 4 : Fix missing stop #

Patch Set 5 : Fix compile errors (shame! shame! shame!) #

Total comments: 4

Patch Set 6 : Added test and removed unnecessary code. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+255 lines, -3 lines) Patch
M content/browser/notifications/notification_database_data.proto View 1 2 3 1 chunk +9 lines, -1 line 0 comments Download
M content/browser/notifications/notification_database_data_conversions.cc View 1 2 3 4 5 2 chunks +35 lines, -0 lines 0 comments Download
M content/browser/notifications/notification_database_data_unittest.cc View 1 5 chunks +60 lines, -0 lines 0 comments Download
M content/child/notifications/notification_data_conversions.cc View 1 2 3 4 2 chunks +25 lines, -0 lines 0 comments Download
M content/child/notifications/notification_data_conversions_unittest.cc View 1 2 3 4 5 chunks +23 lines, -0 lines 0 comments Download
M content/common/platform_notification_messages.h View 1 chunk +5 lines, -0 lines 0 comments Download
M content/public/common/platform_notification_data.h View 1 3 chunks +15 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/notifications/notification-properties.html View 1 2 1 chunk +14 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/notifications/serviceworker-notification-properties.html View 1 1 chunk +3 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/notifications/Notification.cpp View 1 2 3 4 5 1 chunk +11 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/notifications/NotificationAction.idl View 1 1 chunk +7 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/notifications/NotificationData.cpp View 1 2 3 4 1 chunk +14 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/notifications/NotificationDataTest.cpp View 1 2 3 4 5 4 chunks +25 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/public/platform/modules/notifications/WebNotificationAction.h View 1 2 3 4 1 chunk +8 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 33 (13 generated)
Nina
Michael, please give this patch a look. Thanks!
4 years, 8 months ago (2016-04-01 14:05:29 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1855443002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1855443002/1
4 years, 8 months ago (2016-04-05 09:35:50 UTC) #4
Michael van Ouwerkerk
https://codereview.chromium.org/1855443002/diff/1/content/child/notifications/notification_data_conversions.cc File content/child/notifications/notification_data_conversions.cc (right): https://codereview.chromium.org/1855443002/diff/1/content/child/notifications/notification_data_conversions.cc#newcode22 content/child/notifications/notification_data_conversions.cc:22: static const char kButtonString[] = "button"; nit: rename to ...
4 years, 8 months ago (2016-04-05 10:06:55 UTC) #5
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_blink_oilpan_rel on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_blink_oilpan_rel/builds/26436)
4 years, 8 months ago (2016-04-05 11:04:49 UTC) #7
Nina
Also (hopefully) fixed the failing tests :) https://codereview.chromium.org/1855443002/diff/1/content/child/notifications/notification_data_conversions.cc File content/child/notifications/notification_data_conversions.cc (right): https://codereview.chromium.org/1855443002/diff/1/content/child/notifications/notification_data_conversions.cc#newcode22 content/child/notifications/notification_data_conversions.cc:22: static const ...
4 years, 8 months ago (2016-04-05 13:28:22 UTC) #8
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1855443002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1855443002/20001
4 years, 8 months ago (2016-04-05 13:53:01 UTC) #12
Michael van Ouwerkerk
lgtm!
4 years, 8 months ago (2016-04-05 13:59:50 UTC) #13
Nina
avi: content/common & content/public peter: third_party/WebKit/Source/modules & third_party/WebKit/public jbroman: RuntimeEnabledFeatures.in Thanks!
4 years, 8 months ago (2016-04-05 14:17:54 UTC) #16
Nina
+mkwst for content/common/platform_notification_messages.h security review :)
4 years, 8 months ago (2016-04-05 14:19:43 UTC) #18
Avi (use Gerrit)
lgtm https://codereview.chromium.org/1855443002/diff/20001/content/child/notifications/notification_data_conversions.cc File content/child/notifications/notification_data_conversions.cc (right): https://codereview.chromium.org/1855443002/diff/20001/content/child/notifications/notification_data_conversions.cc#newcode59 content/child/notifications/notification_data_conversions.cc:59: if (web_data.actions[i].type == kTypeButton) { Who specified WebNotificationAction ...
4 years, 8 months ago (2016-04-05 14:32:33 UTC) #19
Michael van Ouwerkerk
` https://codereview.chromium.org/1855443002/diff/20001/content/child/notifications/notification_data_conversions.cc File content/child/notifications/notification_data_conversions.cc (right): https://codereview.chromium.org/1855443002/diff/20001/content/child/notifications/notification_data_conversions.cc#newcode59 content/child/notifications/notification_data_conversions.cc:59: if (web_data.actions[i].type == kTypeButton) { On 2016/04/05 14:32:33, ...
4 years, 8 months ago (2016-04-05 14:37:49 UTC) #20
Mike West
https://codereview.chromium.org/1855443002/diff/20001/third_party/WebKit/LayoutTests/http/tests/notifications/serviceworker-notification-properties.html File third_party/WebKit/LayoutTests/http/tests/notifications/serviceworker-notification-properties.html (right): https://codereview.chromium.org/1855443002/diff/20001/third_party/WebKit/LayoutTests/http/tests/notifications/serviceworker-notification-properties.html#newcode57 third_party/WebKit/LayoutTests/http/tests/notifications/serviceworker-notification-properties.html:57: type: i % 2 == 0 ? 'button' : ...
4 years, 8 months ago (2016-04-05 14:41:00 UTC) #21
jbroman
platform lgtm https://codereview.chromium.org/1855443002/diff/20001/third_party/WebKit/Source/modules/notifications/NotificationAction.idl File third_party/WebKit/Source/modules/notifications/NotificationAction.idl (right): https://codereview.chromium.org/1855443002/diff/20001/third_party/WebKit/Source/modules/notifications/NotificationAction.idl#newcode7 third_party/WebKit/Source/modules/notifications/NotificationAction.idl:7: [RuntimeEnabled=NotificationInlineReplies] enum NotificationActionType { FYI, making an ...
4 years, 8 months ago (2016-04-05 15:12:48 UTC) #22
Nina
Mike, please see the updated code, I replaced the WebString with a proper enum on ...
4 years, 8 months ago (2016-04-05 16:10:01 UTC) #23
Mike West
IPC LGTM, thanks.
4 years, 8 months ago (2016-04-05 16:12:16 UTC) #24
Peter Beverloo
lgtm https://codereview.chromium.org/1855443002/diff/80001/content/browser/notifications/notification_database_data_conversions.cc File content/browser/notifications/notification_database_data_conversions.cc (right): https://codereview.chromium.org/1855443002/diff/80001/content/browser/notifications/notification_database_data_conversions.cc#newcode95 content/browser/notifications/notification_database_data_conversions.cc:95: action.placeholder = base::NullableString16(); nit: this should be done ...
4 years, 8 months ago (2016-04-06 17:22:00 UTC) #25
Nina
https://codereview.chromium.org/1855443002/diff/80001/content/browser/notifications/notification_database_data_conversions.cc File content/browser/notifications/notification_database_data_conversions.cc (right): https://codereview.chromium.org/1855443002/diff/80001/content/browser/notifications/notification_database_data_conversions.cc#newcode95 content/browser/notifications/notification_database_data_conversions.cc:95: action.placeholder = base::NullableString16(); On 2016/04/06 17:22:00, Peter Beverloo wrote: ...
4 years, 8 months ago (2016-04-07 10:59:09 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1855443002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1855443002/100001
4 years, 8 months ago (2016-04-07 10:59:33 UTC) #29
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 8 months ago (2016-04-07 12:32:31 UTC) #31
commit-bot: I haz the power
4 years, 8 months ago (2016-04-07 12:34:29 UTC) #33
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/d1c3e840df52f94b23a129c5466cb7866c8261c7
Cr-Commit-Position: refs/heads/master@{#385724}

Powered by Google App Engine
This is Rietveld 408576698