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

Issue 15724023: Vibration API: use runtime flag, change from client to platform. (Closed)

Created:
7 years, 6 months ago by Michael van Ouwerkerk
Modified:
7 years, 6 months ago
CC:
blink-reviews, jamesr
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Vibration API: use runtime flag, change from client to platform. Intent to implement & ship thread: https://groups.google.com/a/chromium.org/forum/#!searchin/blink-dev/vibration$20api/blink-dev/hH9bJGWKAbk/AFPov-g5VMMJ The runtime flag is by default disabled. BUG=222504 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=152627

Patch Set 1 #

Total comments: 16

Patch Set 2 : Review issues: order vibrate method before cancelVibration, etc. #

Total comments: 8

Patch Set 3 : Delete unused code. #

Total comments: 2

Patch Set 4 : Make supplementName() private and delete isActive(). #

Total comments: 8

Patch Set 5 : Fold Vibration into NavigatorVibration. Update interface and algorithm. #

Total comments: 8

Patch Set 6 : Fix layout tests, minor cleanup. #

Total comments: 1

Patch Set 7 : Fix navigator-detached-no-crash test. #

Patch Set 8 : Rebase #

Patch Set 9 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+188 lines, -310 lines) Patch
M LayoutTests/fast/dom/navigator-detached-no-crash-expected.txt View 1 2 3 4 5 6 2 chunks +2 lines, -0 lines 0 comments Download
M LayoutTests/fast/dom/navigator-vibration.html View 1 2 3 4 5 1 chunk +11 lines, -5 lines 0 comments Download
M LayoutTests/fast/dom/navigator-vibration-expected.txt View 1 2 3 4 5 1 chunk +12 lines, -6 lines 0 comments Download
M Source/core/page/RuntimeEnabledFeatures.in View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M Source/modules/modules.gypi View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -0 lines 0 comments Download
M Source/modules/vibration/NavigatorVibration.h View 1 2 3 4 1 chunk +24 lines, -13 lines 0 comments Download
M Source/modules/vibration/NavigatorVibration.cpp View 1 2 3 4 5 1 chunk +122 lines, -25 lines 0 comments Download
M Source/modules/vibration/NavigatorVibration.idl View 1 2 3 4 1 chunk +3 lines, -3 lines 0 comments Download
M Source/modules/vibration/Vibration.h View 1 2 3 4 1 chunk +0 lines, -69 lines 0 comments Download
M Source/modules/vibration/Vibration.cpp View 1 2 3 4 1 chunk +0 lines, -147 lines 0 comments Download
D Source/modules/vibration/VibrationClient.h View 1 chunk +0 lines, -42 lines 0 comments Download
M public/platform/Platform.h View 1 2 3 4 5 6 1 chunk +10 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
Michael van Ouwerkerk
Peter, could you please take a look at this patch? Thanks!
7 years, 6 months ago (2013-06-11 10:04:00 UTC) #1
Peter Beverloo
Cool, thanks! Could you clarify the CLs description to include: * That the Vibration API ...
7 years, 6 months ago (2013-06-11 10:19:10 UTC) #2
Michael van Ouwerkerk
Thanks for the quick review! Please take another look. https://codereview.chromium.org/15724023/diff/1/Source/modules/vibration/NavigatorVibration.cpp File Source/modules/vibration/NavigatorVibration.cpp (right): https://codereview.chromium.org/15724023/diff/1/Source/modules/vibration/NavigatorVibration.cpp#newcode49 Source/modules/vibration/NavigatorVibration.cpp:49: ...
7 years, 6 months ago (2013-06-11 13:26:51 UTC) #3
Peter Beverloo
Please be sure to update the description of this issue, not just in your local ...
7 years, 6 months ago (2013-06-11 13:50:12 UTC) #4
Michael van Ouwerkerk
Thanks again for the quick review! Please take another look. https://codereview.chromium.org/15724023/diff/9001/Source/modules/vibration/NavigatorVibration.h File Source/modules/vibration/NavigatorVibration.h (right): https://codereview.chromium.org/15724023/diff/9001/Source/modules/vibration/NavigatorVibration.h#newcode28 ...
7 years, 6 months ago (2013-06-11 14:16:42 UTC) #5
Peter Beverloo
lgtm (but not an owner), this looks great, lots of red :-). One nit to ...
7 years, 6 months ago (2013-06-11 14:30:36 UTC) #6
Michael van Ouwerkerk
Adam, could you take a look please for ownership? Thanks! https://codereview.chromium.org/15724023/diff/13001/Source/modules/vibration/Vibration.h File Source/modules/vibration/Vibration.h (right): https://codereview.chromium.org/15724023/diff/13001/Source/modules/vibration/Vibration.h#newcode47 ...
7 years, 6 months ago (2013-06-11 14:58:56 UTC) #7
abarth-chromium
LGTM with a few questions below. https://codereview.chromium.org/15724023/diff/12002/Source/core/page/RuntimeEnabledFeatures.in File Source/core/page/RuntimeEnabledFeatures.in (right): https://codereview.chromium.org/15724023/diff/12002/Source/core/page/RuntimeEnabledFeatures.in#newcode69 Source/core/page/RuntimeEnabledFeatures.in:69: Vibration What is ...
7 years, 6 months ago (2013-06-11 23:55:35 UTC) #8
abarth-chromium
https://codereview.chromium.org/15724023/diff/12002/Source/modules/vibration/Vibration.h File Source/modules/vibration/Vibration.h (right): https://codereview.chromium.org/15724023/diff/12002/Source/modules/vibration/Vibration.h#newcode29 Source/modules/vibration/Vibration.h:29: class Vibration : public Supplement<Page> { What's the point ...
7 years, 6 months ago (2013-06-11 23:57:31 UTC) #9
Michael van Ouwerkerk
Thanks for the quick review! I've made significant changes, so please take another look (maybe ...
7 years, 6 months ago (2013-06-12 16:44:50 UTC) #10
abarth-chromium
This generally looks good. Do we have LayoutTests that we can enable now that we're ...
7 years, 6 months ago (2013-06-12 20:41:27 UTC) #11
Michael van Ouwerkerk
Thanks for the quick review! Please take another look, Adam or Peter. https://codereview.chromium.org/15724023/diff/23001/Source/core/page/RuntimeEnabledFeatures.in File Source/core/page/RuntimeEnabledFeatures.in ...
7 years, 6 months ago (2013-06-13 18:23:16 UTC) #12
abarth-chromium
lgtm A better test would mock out this platform API and log the API calls. ...
7 years, 6 months ago (2013-06-13 20:13:20 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mvanouwerkerk@chromium.org/15724023/29001
7 years, 6 months ago (2013-06-13 20:13:58 UTC) #14
commit-bot: I haz the power
Retried try job too often on linux_layout_rel for step(s) webkit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_layout_rel&number=12635
7 years, 6 months ago (2013-06-13 21:22:36 UTC) #15
abarth-chromium
On 2013/06/13 21:22:36, I haz the power (commit-bot) wrote: > Retried try job too often ...
7 years, 6 months ago (2013-06-13 21:32:44 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mvanouwerkerk@chromium.org/15724023/53001
7 years, 6 months ago (2013-06-18 09:52:32 UTC) #17
commit-bot: I haz the power
7 years, 6 months ago (2013-06-18 11:48:08 UTC) #18
Message was sent while issue was closed.
Change committed as 152627

Powered by Google App Engine
This is Rietveld 408576698