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

Issue 1042513002: Add the vibrate attribute to the Notification object (Closed)

Created:
5 years, 9 months ago by Sanghyun Park
Modified:
5 years, 8 months ago
CC:
blink-reviews, mlamouri+watch-blink_chromium.org, mvanouwerkerk+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 the vibrate attribute to the Notification object Authors can now supply a vibration pattern similar to "navigator.vibrate()", which is to be applied when a Notification gets shown. The Web Notification specification: https://notifications.spec.whatwg.org/#dom-notificationoptions-vibrate BUG=442132 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=193953

Patch Set 1 : #

Total comments: 21

Patch Set 2 : #

Total comments: 2

Patch Set 3 : WebNotificationVibrationData is renamed WebNotificationVibratePattern #

Total comments: 25

Patch Set 4 : Rebase #

Total comments: 13

Patch Set 5 : #

Total comments: 8

Patch Set 6 : #

Total comments: 6

Patch Set 7 : #

Total comments: 7

Patch Set 8 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+132 lines, -32 lines) Patch
M LayoutTests/http/tests/notifications/notification-properties.html View 1 2 3 4 5 2 chunks +29 lines, -0 lines 0 comments Download
A + LayoutTests/http/tests/notifications/serviceworkerregistration-document-vibrate-throw.html View 1 2 3 4 5 6 2 chunks +8 lines, -9 lines 0 comments Download
M LayoutTests/webexposed/global-interface-listing-dedicated-worker-expected.txt View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/webexposed/global-interface-listing-expected.txt View 1 2 3 4 5 6 7 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 7 1 chunk +1 line, -0 lines 0 comments Download
M Source/modules/notifications/DEPS View 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M Source/modules/notifications/Notification.h View 1 2 3 4 5 6 7 5 chunks +5 lines, -0 lines 0 comments Download
M Source/modules/notifications/Notification.cpp View 1 2 3 4 5 6 7 5 chunks +20 lines, -1 line 0 comments Download
M Source/modules/notifications/Notification.idl View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M Source/modules/notifications/NotificationOptions.idl View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M Source/modules/notifications/ServiceWorkerRegistrationNotifications.cpp View 1 2 3 4 5 6 3 chunks +6 lines, -1 line 0 comments Download
M Source/modules/vibration/NavigatorVibration.h View 1 2 3 4 5 2 chunks +2 lines, -0 lines 0 comments Download
M Source/modules/vibration/NavigatorVibration.cpp View 1 2 3 4 5 6 7 2 chunks +39 lines, -21 lines 0 comments Download
M public/platform/modules/notifications/WebNotificationData.h View 1 2 3 2 chunks +15 lines, -0 lines 0 comments Download

Messages

Total messages: 62 (29 generated)
Sanghyun Park
mvanouwerkerk@chromium.org: Please review changes in PTAL.
5 years, 8 months ago (2015-04-01 13:06:45 UTC) #11
Peter Beverloo
+timvolodine for Vibration Hi Sanghyun Park, Thank you for the patch! I've attached a few ...
5 years, 8 months ago (2015-04-01 14:26:29 UTC) #13
timvolodine
in addition to Peter's comments ;) https://codereview.chromium.org/1042513002/diff/160001/Source/modules/notifications/Notification.cpp File Source/modules/notifications/Notification.cpp (right): https://codereview.chromium.org/1042513002/diff/160001/Source/modules/notifications/Notification.cpp#newcode87 Source/modules/notifications/Notification.cpp:87: NavigatorVibration::VibrationPattern pattern; How ...
5 years, 8 months ago (2015-04-01 16:27:17 UTC) #14
Sanghyun Park
Dear Peter and Tim. Thanks for your comments. Please refer below comment. https://codereview.chromium.org/1042513002/diff/160001/LayoutTests/http/tests/notifications/notification-properties.html File LayoutTests/http/tests/notifications/notification-properties.html ...
5 years, 8 months ago (2015-04-01 17:46:08 UTC) #15
Sanghyun Park
On 2015/04/01 14:26:29, Peter Beverloo wrote: > +timvolodine for Vibration > > Hi Sanghyun Park, ...
5 years, 8 months ago (2015-04-01 18:02:46 UTC) #16
Sanghyun Park
I updated new patch. Please refer below comments. Thanks https://codereview.chromium.org/1042513002/diff/220001/public/platform/WebVibration.h File public/platform/WebVibration.h (right): https://codereview.chromium.org/1042513002/diff/220001/public/platform/WebVibration.h#newcode40 public/platform/WebVibration.h:40: ...
5 years, 8 months ago (2015-04-02 18:59:34 UTC) #19
Sanghyun Park
japhet@chromium.org: Please review changes in
5 years, 8 months ago (2015-04-06 11:58:56 UTC) #21
Peter Beverloo
Hi Sanghyun Park, Sorry for the delay, we had a few national holidays here in ...
5 years, 8 months ago (2015-04-07 11:37:31 UTC) #22
Sanghyun Park
Thanks so much for your comments :) > Please find attached some comments. Additionally, please ...
5 years, 8 months ago (2015-04-08 08:00:03 UTC) #23
Sanghyun Park
https://codereview.chromium.org/1042513002/diff/240001/LayoutTests/http/tests/notifications/serviceworkerregistration-document-vibrate-throw.html File LayoutTests/http/tests/notifications/serviceworkerregistration-document-vibrate-throw.html (right): https://codereview.chromium.org/1042513002/diff/240001/LayoutTests/http/tests/notifications/serviceworkerregistration-document-vibrate-throw.html#newcode32 LayoutTests/http/tests/notifications/serviceworkerregistration-document-vibrate-throw.html:32: assert_equals(error.message, 'If options\'s silent is true, options\'s vibrate should ...
5 years, 8 months ago (2015-04-08 16:37:58 UTC) #24
Peter Beverloo
https://codereview.chromium.org/1042513002/diff/240001/LayoutTests/http/tests/notifications/serviceworkerregistration-document-vibrate-throw.html File LayoutTests/http/tests/notifications/serviceworkerregistration-document-vibrate-throw.html (right): https://codereview.chromium.org/1042513002/diff/240001/LayoutTests/http/tests/notifications/serviceworkerregistration-document-vibrate-throw.html#newcode32 LayoutTests/http/tests/notifications/serviceworkerregistration-document-vibrate-throw.html:32: assert_equals(error.message, 'If options\'s silent is true, options\'s vibrate should ...
5 years, 8 months ago (2015-04-08 16:40:01 UTC) #25
Sanghyun Park
https://codereview.chromium.org/1042513002/diff/240001/Source/modules/notifications/NotificationOptions.idl File Source/modules/notifications/NotificationOptions.idl (right): https://codereview.chromium.org/1042513002/diff/240001/Source/modules/notifications/NotificationOptions.idl#newcode20 Source/modules/notifications/NotificationOptions.idl:20: // If VibrationPattern is supported, we need to change ...
5 years, 8 months ago (2015-04-08 17:20:59 UTC) #26
Sanghyun Park
Dear Peter, I sent an intent about this [1]. [1] https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/pFC0Qj6tvA8 Could you confirm this? ...
5 years, 8 months ago (2015-04-08 18:37:41 UTC) #28
Peter Beverloo
Thank you for the Intent to Implement - it looks good to me, I replied ...
5 years, 8 months ago (2015-04-09 13:03:17 UTC) #30
Sanghyun Park
Dear Peter. Thanks for your comments. https://codereview.chromium.org/1042513002/diff/320001/LayoutTests/http/tests/notifications/notification-properties.html File LayoutTests/http/tests/notifications/notification-properties.html (right): https://codereview.chromium.org/1042513002/diff/320001/LayoutTests/http/tests/notifications/notification-properties.html#newcode35 LayoutTests/http/tests/notifications/notification-properties.html:35: assert_equals(notification.vibrate, null); On ...
5 years, 8 months ago (2015-04-09 13:48:05 UTC) #31
Peter Beverloo
https://codereview.chromium.org/1042513002/diff/320001/LayoutTests/http/tests/notifications/notification-properties.html File LayoutTests/http/tests/notifications/notification-properties.html (right): https://codereview.chromium.org/1042513002/diff/320001/LayoutTests/http/tests/notifications/notification-properties.html#newcode35 LayoutTests/http/tests/notifications/notification-properties.html:35: assert_equals(notification.vibrate, null); On 2015/04/09 13:48:05, Sanghyun Park wrote: > ...
5 years, 8 months ago (2015-04-09 13:53:07 UTC) #32
Sanghyun Park
https://codereview.chromium.org/1042513002/diff/320001/Source/modules/notifications/Notification.h File Source/modules/notifications/Notification.h (right): https://codereview.chromium.org/1042513002/diff/320001/Source/modules/notifications/Notification.h#newcode103 Source/modules/notifications/Notification.h:103: static Vector<unsigned> sanitizeVibrationPattern(const UnsignedLongOrUnsignedLongSequence&); On 2015/04/09 13:53:07, Peter Beverloo ...
5 years, 8 months ago (2015-04-09 16:26:11 UTC) #33
Sanghyun Park
Dear Peter, Please Take Another Look, when you have time. :)
5 years, 8 months ago (2015-04-13 05:49:46 UTC) #34
timvolodine
thanks Sanghyun for the vibration refactoring looks much better now, just a few questions/comments below. ...
5 years, 8 months ago (2015-04-13 11:55:19 UTC) #35
Sanghyun Park
Dear Tim. Thank you for review. :) https://codereview.chromium.org/1042513002/diff/340001/Source/modules/notifications/Notification.cpp File Source/modules/notifications/Notification.cpp (right): https://codereview.chromium.org/1042513002/diff/340001/Source/modules/notifications/Notification.cpp#newcode39 Source/modules/notifications/Notification.cpp:39: #include "bindings/modules/v8/UnionTypesModules.h" ...
5 years, 8 months ago (2015-04-13 13:35:08 UTC) #36
Peter Beverloo
notifications lgtm % the following nits. Please be sure to get Tim's approval for Vibration. ...
5 years, 8 months ago (2015-04-13 15:05:18 UTC) #39
Sanghyun Park
Thank you!!! I'll fix this . :)) https://codereview.chromium.org/1042513002/diff/380001/Source/modules/notifications/Notification.cpp File Source/modules/notifications/Notification.cpp (right): https://codereview.chromium.org/1042513002/diff/380001/Source/modules/notifications/Notification.cpp#newcode82 Source/modules/notifications/Notification.cpp:82: exceptionState.throwTypeError("Silent notification ...
5 years, 8 months ago (2015-04-13 17:27:23 UTC) #40
Sanghyun Park
Dear Tim. Please take another look about vibration part. Thanks
5 years, 8 months ago (2015-04-16 00:59:50 UTC) #41
timvolodine
somewhat restating my previous comment about the anonymous namespace, vibration lgtm with the comments below ...
5 years, 8 months ago (2015-04-16 12:38:01 UTC) #42
Peter Beverloo
https://codereview.chromium.org/1042513002/diff/400001/Source/modules/vibration/NavigatorVibration.cpp File Source/modules/vibration/NavigatorVibration.cpp (right): https://codereview.chromium.org/1042513002/diff/400001/Source/modules/vibration/NavigatorVibration.cpp#newcode33 Source/modules/vibration/NavigatorVibration.cpp:33: const unsigned kVibrationPatternLengthMax = 99; On 2015/04/16 12:38:01, timvolodine ...
5 years, 8 months ago (2015-04-16 12:46:41 UTC) #43
Sanghyun Park
Dear Tim and Peter. Thanks for your comments. :) https://codereview.chromium.org/1042513002/diff/400001/Source/modules/vibration/NavigatorVibration.cpp File Source/modules/vibration/NavigatorVibration.cpp (right): https://codereview.chromium.org/1042513002/diff/400001/Source/modules/vibration/NavigatorVibration.cpp#newcode33 Source/modules/vibration/NavigatorVibration.cpp:33: ...
5 years, 8 months ago (2015-04-16 13:17:30 UTC) #44
timvolodine
https://codereview.chromium.org/1042513002/diff/400001/Source/modules/vibration/NavigatorVibration.cpp File Source/modules/vibration/NavigatorVibration.cpp (right): https://codereview.chromium.org/1042513002/diff/400001/Source/modules/vibration/NavigatorVibration.cpp#newcode35 Source/modules/vibration/NavigatorVibration.cpp:35: static NavigatorVibration::VibrationPattern sanitizeVibrationPatternInternal(const NavigatorVibration::VibrationPattern& pattern) On 2015/04/16 12:46:41, Peter ...
5 years, 8 months ago (2015-04-16 13:17:51 UTC) #45
Peter Beverloo
On 2015/04/16 13:17:30, Sanghyun Park wrote: > Dear Tim and Peter. > > Thanks for ...
5 years, 8 months ago (2015-04-16 13:19:24 UTC) #46
Sanghyun Park
Dear Peter and Tim. Thanks for review about this. NavigatorVibration files were not on LGTM ...
5 years, 8 months ago (2015-04-16 14:53:23 UTC) #54
Michael van Ouwerkerk
lgtm
5 years, 8 months ago (2015-04-17 11:28:01 UTC) #57
Sanghyun Park
On 2015/04/17 11:28:01, Michael van Ouwerkerk wrote: > lgtm Thanks all!!
5 years, 8 months ago (2015-04-17 13:31:01 UTC) #58
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1042513002/600001
5 years, 8 months ago (2015-04-17 13:31:23 UTC) #61
commit-bot: I haz the power
5 years, 8 months ago (2015-04-17 16:37:16 UTC) #62
Message was sent while issue was closed.
Committed patchset #8 (id:600001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=193953

Powered by Google App Engine
This is Rietveld 408576698