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

Issue 2337963003: Plumb through notification action types and placeholders on Android (Closed)

Created:
4 years, 3 months ago by Anita
Modified:
4 years, 2 months ago
CC:
chromium-reviews, Peter Beverloo, mlamouri+watch-notifications_chromium.org, awdf+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Plumb through the notification action types and placeholder text - Notification actions with type="text" now trigger an 'inline reply' input textbox to be displayed on Android N+ (and trigger voice input on Android Wear K+) when experimental web platform features are enabled. - However, this change does not do anything with text entered in the textbox. BUG=599859 Committed: https://crrev.com/e022c1faebded93d1f771b74efd2f8c0914d8eed Cr-Commit-Position: refs/heads/master@{#421510}

Patch Set 1 #

Total comments: 26

Patch Set 2 : Plumb through the notification action types and placeholder text for inline replies #

Total comments: 23

Patch Set 3 : Review fixes, improved comments and tests, rebased. #

Total comments: 13

Patch Set 4 : Add explicit out-of-line copy constructor for ButtonInfo #

Patch Set 5 : Responding to review comments #

Total comments: 20

Patch Set 6 : Final review nits #

Total comments: 8

Patch Set 7 : Little experiment to try on buildbots - NOT FOR REVIEW OR COMMIT #

Patch Set 8 : Remove unused import + put =default in header file #

Patch Set 9 : Put =default back in .cc file #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+261 lines, -50 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationBuilderBase.java View 1 2 3 4 5 6 chunks +75 lines, -12 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationConstants.java View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationPlatformBridge.java View 1 2 3 4 5 3 chunks +16 lines, -5 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/notifications/CustomNotificationBuilderTest.java View 1 2 3 4 5 7 chunks +54 lines, -27 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/notifications/NotificationPlatformBridgeTest.java View 1 2 3 4 3 chunks +29 lines, -0 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/notifications/StandardNotificationBuilderTest.java View 1 2 3 4 4 chunks +22 lines, -2 lines 0 comments Download
M chrome/app/generated_resources.grd View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/notifications/notification_platform_bridge_android.cc View 1 2 3 4 5 3 chunks +25 lines, -2 lines 0 comments Download
M chrome/browser/notifications/platform_notification_service_impl.cc View 1 2 3 4 5 3 chunks +18 lines, -1 line 2 comments Download
M ui/message_center/notification.h View 1 2 3 4 5 6 7 8 1 chunk +8 lines, -1 line 0 comments Download
M ui/message_center/notification.cc View 1 2 3 7 8 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 57 (34 generated)
awdf
here you go - hacky but works! https://codereview.chromium.org/2337963003/diff/1/chrome/android/javatests/src/org/chromium/chrome/browser/notifications/NotificationPlatformBridgeTest.java File chrome/android/javatests/src/org/chromium/chrome/browser/notifications/NotificationPlatformBridgeTest.java (left): https://codereview.chromium.org/2337963003/diff/1/chrome/android/javatests/src/org/chromium/chrome/browser/notifications/NotificationPlatformBridgeTest.java#oldcode214 chrome/android/javatests/src/org/chromium/chrome/browser/notifications/NotificationPlatformBridgeTest.java:214: * Verifies ...
4 years, 3 months ago (2016-09-13 14:14:55 UTC) #3
Peter Beverloo
https://codereview.chromium.org/2337963003/diff/1/chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationBuilderBase.java File chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationBuilderBase.java (right): https://codereview.chromium.org/2337963003/diff/1/chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationBuilderBase.java#newcode37 chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationBuilderBase.java:37: public RemoteInput remoteInput; Both the NotificationBuilderBase and the Action ...
4 years, 3 months ago (2016-09-14 16:27:12 UTC) #4
awdf
Responding to review comments. Next I'm going to look into retrieving the text entered in ...
4 years, 3 months ago (2016-09-22 14:17:12 UTC) #6
awdf
Responding to review comments. Next I'm going to look into retrieving the text entered in ...
4 years, 3 months ago (2016-09-22 14:17:12 UTC) #7
Peter Beverloo
https://codereview.chromium.org/2337963003/diff/1/ui/message_center/notification.h File ui/message_center/notification.h (right): https://codereview.chromium.org/2337963003/diff/1/ui/message_center/notification.h#newcode39 ui/message_center/notification.h:39: base::NullableString16 placeholder; On 2016/09/22 14:17:12, awdf wrote: > On ...
4 years, 3 months ago (2016-09-22 18:07:56 UTC) #8
awdf
https://codereview.chromium.org/2337963003/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationBuilderBase.java File chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationBuilderBase.java (right): https://codereview.chromium.org/2337963003/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationBuilderBase.java#newcode228 chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationBuilderBase.java:228: * @param placeholder - placeholder text for the text ...
4 years, 3 months ago (2016-09-23 15:24:56 UTC) #14
Peter Beverloo
https://codereview.chromium.org/2337963003/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationBuilderBase.java File chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationBuilderBase.java (right): https://codereview.chromium.org/2337963003/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationBuilderBase.java#newcode405 chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationBuilderBase.java:405: new RemoteInput.Builder("key_text_reply") On 2016/09/23 15:24:56, awdf wrote: > On ...
4 years, 3 months ago (2016-09-23 16:01:22 UTC) #19
awdf
https://codereview.chromium.org/2337963003/diff/1/chrome/browser/notifications/notification_platform_bridge_android.cc File chrome/browser/notifications/notification_platform_bridge_android.cc (right): https://codereview.chromium.org/2337963003/diff/1/chrome/browser/notifications/notification_platform_bridge_android.cc#newcode235 chrome/browser/notifications/notification_platform_bridge_android.cc:235: action_types_vector.push_back(base::ASCIIToUTF16("text")); On 2016/09/22 14:17:11, awdf wrote: > On 2016/09/14 ...
4 years, 2 months ago (2016-09-26 15:33:29 UTC) #24
Peter Beverloo
lgtm! https://codereview.chromium.org/2337963003/diff/1/chrome/browser/notifications/notification_platform_bridge_android.cc File chrome/browser/notifications/notification_platform_bridge_android.cc (right): https://codereview.chromium.org/2337963003/diff/1/chrome/browser/notifications/notification_platform_bridge_android.cc#newcode235 chrome/browser/notifications/notification_platform_bridge_android.cc:235: action_types_vector.push_back(base::ASCIIToUTF16("text")); On 2016/09/26 15:33:28, awdf wrote: > On ...
4 years, 2 months ago (2016-09-26 16:04:35 UTC) #25
awdf
https://codereview.chromium.org/2337963003/diff/80001/chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationPlatformBridge.java File chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationPlatformBridge.java (right): https://codereview.chromium.org/2337963003/diff/80001/chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationPlatformBridge.java#newcode529 chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationPlatformBridge.java:529: if (actionTypes[actionIndex].equals("text")) { On 2016/09/26 16:04:34, Peter Beverloo wrote: ...
4 years, 2 months ago (2016-09-27 14:45:27 UTC) #31
Peter Beverloo
still lgtm Nothing actionable in the comments. Please check whether we can remove the added ...
4 years, 2 months ago (2016-09-27 15:28:32 UTC) #32
awdf
https://codereview.chromium.org/2337963003/diff/120001/ui/message_center/notification.h File ui/message_center/notification.h (right): https://codereview.chromium.org/2337963003/diff/120001/ui/message_center/notification.h#newcode42 ui/message_center/notification.h:42: ButtonInfo(const ButtonInfo& other); On 2016/09/27 15:28:32, Peter Beverloo wrote: ...
4 years, 2 months ago (2016-09-27 15:36:27 UTC) #33
awdf
On 2016/09/27 15:36:27, awdf wrote: > https://codereview.chromium.org/2337963003/diff/120001/ui/message_center/notification.h > File ui/message_center/notification.h (right): > > https://codereview.chromium.org/2337963003/diff/120001/ui/message_center/notification.h#newcode42 > ...
4 years, 2 months ago (2016-09-27 15:57:02 UTC) #34
awdf
dewittj@chromium.org: Please review changes in ui/message_center/ Thanks.
4 years, 2 months ago (2016-09-27 16:01:55 UTC) #36
dewittj
lgtm https://codereview.chromium.org/2337963003/diff/180001/ui/message_center/notification.h File ui/message_center/notification.h (right): https://codereview.chromium.org/2337963003/diff/180001/ui/message_center/notification.h#newcode13 ui/message_center/notification.h:13: #include "base/strings/nullable_string16.h" unused? https://codereview.chromium.org/2337963003/diff/180001/ui/message_center/notification.h#newcode44 ui/message_center/notification.h:44: ButtonInfo& operator=(const ButtonInfo& ...
4 years, 2 months ago (2016-09-28 02:41:58 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2337963003/220001
4 years, 2 months ago (2016-09-28 11:41:45 UTC) #44
awdf
https://codereview.chromium.org/2337963003/diff/180001/ui/message_center/notification.h File ui/message_center/notification.h (right): https://codereview.chromium.org/2337963003/diff/180001/ui/message_center/notification.h#newcode13 ui/message_center/notification.h:13: #include "base/strings/nullable_string16.h" On 2016/09/28 02:41:58, dewittj wrote: > unused? ...
4 years, 2 months ago (2016-09-28 11:42:09 UTC) #45
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_compile_dbg_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_compile_dbg_ng/builds/164170)
4 years, 2 months ago (2016-09-28 11:51:33 UTC) #47
Peter Beverloo
https://codereview.chromium.org/2337963003/diff/180001/ui/message_center/notification.h File ui/message_center/notification.h (right): https://codereview.chromium.org/2337963003/diff/180001/ui/message_center/notification.h#newcode13 ui/message_center/notification.h:13: #include "base/strings/nullable_string16.h" On 2016/09/28 11:42:09, awdf wrote: > On ...
4 years, 2 months ago (2016-09-28 12:00:40 UTC) #48
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2337963003/240001
4 years, 2 months ago (2016-09-28 12:21:00 UTC) #51
commit-bot: I haz the power
Committed patchset #9 (id:240001)
4 years, 2 months ago (2016-09-28 14:00:54 UTC) #53
commit-bot: I haz the power
Patchset 9 (id:??) landed as https://crrev.com/e022c1faebded93d1f771b74efd2f8c0914d8eed Cr-Commit-Position: refs/heads/master@{#421510}
4 years, 2 months ago (2016-09-28 14:05:07 UTC) #55
Lei Zhang
4 years, 2 months ago (2016-09-28 19:00:02 UTC) #57
Message was sent while issue was closed.
https://codereview.chromium.org/2337963003/diff/240001/chrome/browser/notific...
File chrome/browser/notifications/platform_notification_service_impl.cc (right):

https://codereview.chromium.org/2337963003/diff/240001/chrome/browser/notific...
chrome/browser/notifications/platform_notification_service_impl.cc:449:
content::PlatformNotificationAction const& action =
Isn't this more commonly written as "const Foo&" ?

https://codereview.chromium.org/2337963003/diff/240001/chrome/browser/notific...
chrome/browser/notifications/platform_notification_service_impl.cc:460: switch
(action.type) {
Something is uninitialized there. Filed https://crbug.com/651165 and looking...

Powered by Google App Engine
This is Rietveld 408576698