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

Issue 16781002: Vibration API: plumbing from Blink to Java. (Closed)

Created:
7 years, 6 months ago by Michael van Ouwerkerk
Modified:
7 years, 5 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jamesr
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Patch Set 1 #

Total comments: 38

Patch Set 2 : Address review comments. #

Patch Set 3 : rebase #

Total comments: 28

Patch Set 4 : Address review comments. #

Patch Set 5 : Use 'unsigned int' everywhere. #

Total comments: 6

Patch Set 6 : Lazily instantiate VibrationService in VibrationMessageFilter. #

Total comments: 18

Patch Set 7 : Use int32_t. #

Patch Set 8 : Ensure duration is greater than 0. #

Patch Set 9 : Rebase. #

Patch Set 10 : Use int32 instead of int32_t because windows broke. #

Patch Set 11 : . #

Total comments: 2

Patch Set 12 : Use int64_t. #

Patch Set 13 : Use int64, not int64_t. #

Total comments: 13

Patch Set 14 : Alternative approach to multi platform. #

Patch Set 15 : Fold VibrationService into VibrationMessageFilter. #

Total comments: 4

Patch Set 16 : Set java pointer in OnVibrate. #

Patch Set 17 : Explicitly permit including WebVibration from content/browser/ #

Total comments: 6

Patch Set 18 : Move vibration_message_filter.(h|cc) to content/browser/android/. #

Total comments: 1

Patch Set 19 : Rebase. #

Patch Set 20 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+183 lines, -0 lines) Patch
M content/browser/DEPS View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/android/browser_jni_registrar.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +2 lines, -0 lines 0 comments Download
A content/browser/android/vibration_message_filter.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +34 lines, -0 lines 0 comments Download
A content/browser/android/vibration_message_filter.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +69 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 2 chunks +7 lines, -0 lines 0 comments Download
M content/common/view_messages.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +9 lines, -0 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +2 lines, -0 lines 0 comments Download
M content/content_jni.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -0 lines 0 comments Download
A content/public/android/java/src/org/chromium/content/browser/VibrationMessageFilter.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +39 lines, -0 lines 0 comments Download
M content/renderer/renderer_webkitplatformsupport_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +5 lines, -0 lines 0 comments Download
M content/renderer/renderer_webkitplatformsupport_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 2 chunks +14 lines, -0 lines 0 comments Download

Messages

Total messages: 40 (0 generated)
Michael van Ouwerkerk
Hi Peter, could you take a look please? Thanks!
7 years, 6 months ago (2013-06-11 15:21:45 UTC) #1
Peter Beverloo
I don't like the factory-like implementation you implemented in here, it's uncommon and not necessary. ...
7 years, 6 months ago (2013-06-13 11:27:45 UTC) #2
Michael van Ouwerkerk
Thanks for the review! Please take another look. https://codereview.chromium.org/16781002/diff/1/content/browser/renderer_host/render_process_host_impl.cc File content/browser/renderer_host/render_process_host_impl.cc (right): https://codereview.chromium.org/16781002/diff/1/content/browser/renderer_host/render_process_host_impl.cc#newcode715 content/browser/renderer_host/render_process_host_impl.cc:715: channel_->AddFilter(new ...
7 years, 6 months ago (2013-06-18 14:39:23 UTC) #3
Michael van Ouwerkerk
Marcus, could you please take a look at this patch? I'm working my way up ...
7 years, 6 months ago (2013-06-20 12:34:40 UTC) #4
bulach
nice, thanks! just a few nits and one small suggestion for the factory function location: ...
7 years, 6 months ago (2013-06-20 14:21:04 UTC) #5
Michael van Ouwerkerk
Thanks for the quick review Marcus! Please take another look. https://codereview.chromium.org/16781002/diff/21001/content/browser/vibration/vibration_message_filter.cc File content/browser/vibration/vibration_message_filter.cc (right): https://codereview.chromium.org/16781002/diff/21001/content/browser/vibration/vibration_message_filter.cc#newcode14 ...
7 years, 6 months ago (2013-06-20 17:34:09 UTC) #6
bulach
clarifications inline: https://codereview.chromium.org/16781002/diff/21001/content/browser/vibration/vibration_message_filter.cc File content/browser/vibration/vibration_message_filter.cc (right): https://codereview.chromium.org/16781002/diff/21001/content/browser/vibration/vibration_message_filter.cc#newcode14 content/browser/vibration/vibration_message_filter.cc:14: const unsigned kMaximumVibrationDurationMs = 10000; On 2013/06/20 ...
7 years, 6 months ago (2013-06-20 18:11:47 UTC) #7
Michael van Ouwerkerk
Thanks Marcus :-) Please take another look. https://codereview.chromium.org/16781002/diff/21001/content/browser/vibration/vibration_message_filter.cc File content/browser/vibration/vibration_message_filter.cc (right): https://codereview.chromium.org/16781002/diff/21001/content/browser/vibration/vibration_message_filter.cc#newcode14 content/browser/vibration/vibration_message_filter.cc:14: const unsigned ...
7 years, 6 months ago (2013-06-21 09:53:38 UTC) #8
Michael van Ouwerkerk
Chris: could you please take a look for view_messages.h ? Avi: could you please take ...
7 years, 6 months ago (2013-06-21 10:01:53 UTC) #9
bulach
lgtm, nice! just some nits, and would really like to see the lazy initialization done ...
7 years, 6 months ago (2013-06-21 12:55:54 UTC) #10
Michael van Ouwerkerk
Thanks Marcus! https://codereview.chromium.org/16781002/diff/44001/content/browser/renderer_host/render_process_host_impl.cc File content/browser/renderer_host/render_process_host_impl.cc (right): https://codereview.chromium.org/16781002/diff/44001/content/browser/renderer_host/render_process_host_impl.cc#newcode704 content/browser/renderer_host/render_process_host_impl.cc:704: channel_->AddFilter(new VibrationMessageFilter(VibrationService::Create())); On 2013/06/21 12:55:54, bulach wrote: ...
7 years, 6 months ago (2013-06-21 15:07:41 UTC) #11
palmer
https://codereview.chromium.org/16781002/diff/48002/content/browser/vibration/vibration_message_filter.cc File content/browser/vibration/vibration_message_filter.cc (right): https://codereview.chromium.org/16781002/diff/48002/content/browser/vibration/vibration_message_filter.cc#newcode36 content/browser/vibration/vibration_message_filter.cc:36: void VibrationMessageFilter::OnVibrate(unsigned int milliseconds) { int64_t https://codereview.chromium.org/16781002/diff/48002/content/browser/vibration/vibration_message_filter.cc#newcode43 content/browser/vibration/vibration_message_filter.cc:43: milliseconds ...
7 years, 6 months ago (2013-06-21 18:17:40 UTC) #12
Michael van Ouwerkerk
All done Chris. Please take another look! https://codereview.chromium.org/16781002/diff/48002/content/browser/vibration/vibration_message_filter.cc File content/browser/vibration/vibration_message_filter.cc (right): https://codereview.chromium.org/16781002/diff/48002/content/browser/vibration/vibration_message_filter.cc#newcode36 content/browser/vibration/vibration_message_filter.cc:36: void VibrationMessageFilter::OnVibrate(unsigned ...
7 years, 6 months ago (2013-06-24 13:46:57 UTC) #13
palmer
https://chromiumcodereview.appspot.com/16781002/diff/61002/content/common/view_messages.h File content/common/view_messages.h (right): https://chromiumcodereview.appspot.com/16781002/diff/61002/content/common/view_messages.h#newcode1701 content/common/view_messages.h:1701: int32 /* milliseconds */) I really think you're better ...
7 years, 6 months ago (2013-06-24 19:07:08 UTC) #14
Michael van Ouwerkerk
Thanks Chris, please take another look! https://chromiumcodereview.appspot.com/16781002/diff/61002/content/common/view_messages.h File content/common/view_messages.h (right): https://chromiumcodereview.appspot.com/16781002/diff/61002/content/common/view_messages.h#newcode1701 content/common/view_messages.h:1701: int32 /* milliseconds ...
7 years, 6 months ago (2013-06-25 10:56:07 UTC) #15
palmer
> The windows bots fail to compile because int64_t is not defined. Is that > ...
7 years, 5 months ago (2013-06-27 20:39:32 UTC) #16
Michael van Ouwerkerk
Thanks Chris! John, could you take a look please for content/ ?
7 years, 5 months ago (2013-07-01 10:59:37 UTC) #17
jam
few comments re VibrationService: -no point in having a creator function if the constructor is ...
7 years, 5 months ago (2013-07-01 18:14:40 UTC) #18
jam
one more point: not sure what's the point of having VibrationService which is separate from ...
7 years, 5 months ago (2013-07-01 19:20:40 UTC) #19
Michael van Ouwerkerk
Thanks John, please take another look. Regarding having a separate service from the filter, the ...
7 years, 5 months ago (2013-07-02 17:52:38 UTC) #20
jam
On 2013/07/02 17:52:38, Michael van Ouwerkerk wrote: > Thanks John, please take another look. > ...
7 years, 5 months ago (2013-07-02 22:11:14 UTC) #21
Michael van Ouwerkerk
Thanks John. I'll ask James about sharing the constants. Please take another look. https://codereview.chromium.org/16781002/diff/86001/content/browser/vibration/vibration_message_filter.h File ...
7 years, 5 months ago (2013-07-03 13:46:32 UTC) #22
jam
btw you can also ask other blink owners or devs for where to put this. ...
7 years, 5 months ago (2013-07-03 16:51:54 UTC) #23
Michael van Ouwerkerk
Regarding sharing constants, I think it's kind of overkill to set that up. There is ...
7 years, 5 months ago (2013-07-10 15:24:26 UTC) #24
jam
On 2013/07/10 15:24:26, Michael van Ouwerkerk wrote: > Regarding sharing constants, I think it's kind ...
7 years, 5 months ago (2013-07-10 16:55:26 UTC) #25
jam
On 2013/07/10 15:24:26, Michael van Ouwerkerk wrote: > Regarding sharing constants, I think it's kind ...
7 years, 5 months ago (2013-07-10 16:56:05 UTC) #26
Michael van Ouwerkerk
Hi John, I think I have addressed your concerns. Please take another look. This is ...
7 years, 5 months ago (2013-07-11 13:07:12 UTC) #27
jam
lgtm with changes https://codereview.chromium.org/16781002/diff/128001/content/browser/vibration/vibration_message_filter.cc File content/browser/vibration/vibration_message_filter.cc (right): https://codereview.chromium.org/16781002/diff/128001/content/browser/vibration/vibration_message_filter.cc#newcode22 content/browser/vibration/vibration_message_filter.cc:22: const int64 kMinimumVibrationDurationMs = 1; should ...
7 years, 5 months ago (2013-07-12 00:12:04 UTC) #28
Michael van Ouwerkerk
Thanks John! https://codereview.chromium.org/16781002/diff/128001/content/browser/vibration/vibration_message_filter.cc File content/browser/vibration/vibration_message_filter.cc (right): https://codereview.chromium.org/16781002/diff/128001/content/browser/vibration/vibration_message_filter.cc#newcode22 content/browser/vibration/vibration_message_filter.cc:22: const int64 kMinimumVibrationDurationMs = 1; On 2013/07/12 ...
7 years, 5 months ago (2013-07-12 10:49:14 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mvanouwerkerk@chromium.org/16781002/137001
7 years, 5 months ago (2013-07-12 10:49:36 UTC) #30
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=14966
7 years, 5 months ago (2013-07-12 11:04:27 UTC) #31
Michael van Ouwerkerk
Hi Adam, could you take a look at this one please? It looks like I'll ...
7 years, 5 months ago (2013-07-12 11:07:19 UTC) #32
abarth-chromium
https://codereview.chromium.org/16781002/diff/137001/content/browser/DEPS File content/browser/DEPS (right): https://codereview.chromium.org/16781002/diff/137001/content/browser/DEPS#newcode48 content/browser/DEPS:48: "+third_party/WebKit/public/platform/WebVibration.h", LGTM. You should CC jamesr if you want ...
7 years, 5 months ago (2013-07-12 23:06:19 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mvanouwerkerk@chromium.org/16781002/137001
7 years, 5 months ago (2013-07-15 12:28:38 UTC) #34
commit-bot: I haz the power
The commit queue went berserk retrying too often for a seemingly flaky test on builder ...
7 years, 5 months ago (2013-07-15 18:19:32 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mvanouwerkerk@chromium.org/16781002/137001
7 years, 5 months ago (2013-07-15 20:22:36 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mvanouwerkerk@chromium.org/16781002/180001
7 years, 5 months ago (2013-07-17 13:33:51 UTC) #37
commit-bot: I haz the power
The commit queue went berserk retrying too often for a seemingly flaky test on builder ...
7 years, 5 months ago (2013-07-18 01:31:00 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mvanouwerkerk@chromium.org/16781002/205001
7 years, 5 months ago (2013-07-19 15:42:15 UTC) #39
commit-bot: I haz the power
7 years, 5 months ago (2013-07-19 22:20:06 UTC) #40
Message was sent while issue was closed.
Change committed as 212670

Powered by Google App Engine
This is Rietveld 408576698