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

Issue 583663003: Vibration API : migrate to device/vibration using mojo. (Closed)

Created:
6 years, 3 months ago by timvolodine
Modified:
5 years, 12 months ago
CC:
Aaron Boodman, abarth-chromium, ben+mojo_chromium.org, blundell, chromium-reviews, creis+watch_chromium.org, darin (slow to review), darin-cc_chromium.org, jam, mlamouri (slow - plz ping), nasko+codewatch_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Vibration API : migrate to device/vibration using mojo. Migrate Vibration API to use mojo. This patch does the following: 1. move Vibration API to device/vibration, 2. implement a vibration mojo service which is used from platform. 3. delete old filters and ipc messages. BUG=437537 Committed: https://crrev.com/8e29c14638adbc5121a1514d041d5287e1116ca2 Cr-Commit-Position: refs/heads/master@{#307176}

Patch Set 1 #

Patch Set 2 : add android implementation #

Patch Set 3 : rebase #

Patch Set 4 : similarity=70 #

Patch Set 5 : add device/vibration/BUILD.gn #

Patch Set 6 : fix BUILD.gn in content/renderer and device/vibration #

Patch Set 7 : fix content/browser/BUILD.gn, tweak device/vibration/android/BUILD.gn #

Patch Set 8 : remove vibration_provider_default #

Patch Set 9 : add device::SetOverrideVibrationProvider #

Patch Set 10 : remove content/browser/vibration code #

Patch Set 11 : move vibration_provider.h to device/vibration #

Patch Set 12 : remove dependency on WebVibration.h, fix kVibrationDurationMax #

Patch Set 13 : activate mojo, make sure VibrationProvider.java get compiled, some clean up #

Patch Set 14 : rebase #

Patch Set 15 : remove dependency on guava in gyp #

Patch Set 16 : remove old IPC messages from view_messages.h #

Patch Set 17 : remove debug logging #

Total comments: 12

Patch Set 18 : rebase + address comments #

Patch Set 19 : fix gn builds #

Total comments: 2

Patch Set 20 : rebase, fix gyp, Mounir's comment #

Patch Set 21 : rebase and clean-up #

Total comments: 21

Patch Set 22 : address comments #

Total comments: 4

Patch Set 23 : rebase + comments #

Total comments: 4

Patch Set 24 : remove VibrationProvider and refactor for different platforms #

Patch Set 25 : more polishing #

Patch Set 26 : hide default service implementation, fix android_aosp #

Unified diffs Side-by-side diffs Delta from patch set Stats (+438 lines, -302 lines) Patch
M BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +1 line, -0 lines 0 comments Download
M content/app/DEPS View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +1 line, -0 lines 0 comments Download
M content/app/android/library_loader_hooks.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 2 chunks +4 lines, -0 lines 0 comments Download
M content/browser/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/DEPS View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +1 line, -1 line 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 18 19 20 2 chunks +0 lines, -2 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 20 21 22 23 4 chunks +4 lines, -2 lines 0 comments Download
D content/browser/vibration/vibration_message_filter.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +0 lines, -34 lines 0 comments Download
M content/browser/vibration/vibration_message_filter.cc View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -67 lines 0 comments Download
D content/browser/vibration/vibration_provider_android.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +0 lines, -30 lines 0 comments Download
D content/browser/vibration/vibration_provider_android.cc View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -56 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 20 21 22 23 1 chunk +0 lines, -9 lines 0 comments Download
M content/content.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +1 line, -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 20 21 22 23 3 chunks +2 lines, -5 lines 0 comments Download
M content/content_jni.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +0 lines, -1 line 0 comments Download
M content/content_renderer.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +2 lines, -0 lines 0 comments Download
D content/public/android/java/src/org/chromium/content/browser/VibrationProvider.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +0 lines, -54 lines 0 comments Download
M content/public/browser/content_browser_client.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 2 chunks +0 lines, -8 lines 0 comments Download
M content/public/browser/content_browser_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +0 lines, -4 lines 0 comments Download
D content/public/browser/vibration_provider.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +0 lines, -23 lines 0 comments Download
M content/renderer/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/DEPS View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/renderer_blink_platform_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 3 chunks +5 lines, -0 lines 0 comments Download
M content/renderer/renderer_blink_platform_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +13 lines, -3 lines 0 comments Download
A device/vibration/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +47 lines, -0 lines 0 comments Download
A + device/vibration/DEPS View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +1 line, -1 line 0 comments Download
A device/vibration/android/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +22 lines, -0 lines 0 comments Download
A + device/vibration/android/java/src/org/chromium/device/vibration/VibrationProvider.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +2 lines, -2 lines 0 comments Download
A device/vibration/android/vibration_jni_registrar.h View 1 1 chunk +20 lines, -0 lines 0 comments Download
A device/vibration/android/vibration_jni_registrar.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +27 lines, -0 lines 0 comments Download
A device/vibration/vibration.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +84 lines, -0 lines 0 comments Download
A device/vibration/vibration_export.h View 1 chunk +29 lines, -0 lines 0 comments Download
A device/vibration/vibration_manager.mojom View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +10 lines, -0 lines 0 comments Download
A device/vibration/vibration_manager_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +21 lines, -0 lines 0 comments Download
A device/vibration/vibration_manager_impl_android.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +33 lines, -0 lines 0 comments Download
A device/vibration/vibration_manager_impl_android.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +69 lines, -0 lines 0 comments Download
A device/vibration/vibration_manager_impl_default.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +36 lines, -0 lines 0 comments Download

Messages

Total messages: 48 (10 generated)
timvolodine
Hi all, please take a look mvanouwerkerk@ : vibration API code qsr@ : java JNI ...
6 years, 2 months ago (2014-09-26 16:41:28 UTC) #2
qsr
For the JNI code, depending on how ppi@ CLs go, you might be able to ...
6 years, 2 months ago (2014-09-29 08:39:14 UTC) #3
blundell
https://codereview.chromium.org/583663003/diff/320001/device/vibration/vibration_manager_impl.cc File device/vibration/vibration_manager_impl.cc (right): https://codereview.chromium.org/583663003/diff/320001/device/vibration/vibration_manager_impl.cc#newcode1 device/vibration/vibration_manager_impl.cc:1: // Copyright 2014 The Chromium Authors. All rights reserved. ...
6 years, 2 months ago (2014-09-29 09:13:49 UTC) #5
timvolodine
6 years, 2 months ago (2014-09-29 11:14:11 UTC) #6
Michael van Ouwerkerk
https://codereview.chromium.org/583663003/diff/320001/content/browser/renderer_host/render_process_host_impl.cc File content/browser/renderer_host/render_process_host_impl.cc (right): https://codereview.chromium.org/583663003/diff/320001/content/browser/renderer_host/render_process_host_impl.cc#newcode2106 content/browser/renderer_host/render_process_host_impl.cc:2106: //MaybeActivateMojo(); Maybe delete this line? https://codereview.chromium.org/583663003/diff/320001/content/renderer/renderer_webkitplatformsupport_impl.cc File content/renderer/renderer_webkitplatformsupport_impl.cc (right): ...
6 years, 2 months ago (2014-09-29 12:55:20 UTC) #7
qsr
On 2014/09/29 12:55:20, Michael van Ouwerkerk wrote: > https://codereview.chromium.org/583663003/diff/320001/content/browser/renderer_host/render_process_host_impl.cc > File content/browser/renderer_host/render_process_host_impl.cc (right): > > ...
6 years, 2 months ago (2014-09-29 12:58:42 UTC) #8
blundell
On 2014/09/29 12:58:42, qsr wrote: > On 2014/09/29 12:55:20, Michael van Ouwerkerk wrote: > > ...
6 years, 2 months ago (2014-09-29 13:01:19 UTC) #9
Michael van Ouwerkerk
On 2014/09/29 13:01:19, blundell wrote: > On 2014/09/29 12:58:42, qsr wrote: > > On 2014/09/29 ...
6 years, 2 months ago (2014-09-29 13:02:58 UTC) #10
timvolodine
6 years, 2 months ago (2014-10-01 17:09:57 UTC) #11
timvolodine
https://codereview.chromium.org/583663003/diff/320001/content/browser/renderer_host/render_process_host_impl.cc File content/browser/renderer_host/render_process_host_impl.cc (right): https://codereview.chromium.org/583663003/diff/320001/content/browser/renderer_host/render_process_host_impl.cc#newcode2106 content/browser/renderer_host/render_process_host_impl.cc:2106: //MaybeActivateMojo(); On 2014/09/29 12:55:19, Michael van Ouwerkerk wrote: > ...
6 years, 2 months ago (2014-10-03 15:57:14 UTC) #12
mlamouri (slow - plz ping)
https://codereview.chromium.org/583663003/diff/360001/content/public/common/content_client.h File content/public/common/content_client.h (right): https://codereview.chromium.org/583663003/diff/360001/content/public/common/content_client.h#newcode55 content/public/common/content_client.h:55: CONTENT_EXPORT ContentClient* GetContentClient(); Out of curiosity, why do you ...
6 years, 2 months ago (2014-10-05 20:33:40 UTC) #14
blundell
I filed crbug.com/421796 to track having the embedder of //content be able to register its ...
6 years, 2 months ago (2014-10-09 09:41:00 UTC) #16
timvolodine
Mounir I've addressed your comment below. Colin thanks for filing the bug! https://codereview.chromium.org/583663003/diff/360001/content/public/common/content_client.h File content/public/common/content_client.h ...
6 years, 2 months ago (2014-10-16 15:58:20 UTC) #17
timvolodine
this is ready for review now [and hopefully lgtms ;)], please take another look. there ...
6 years ago (2014-12-01 11:37:04 UTC) #18
ppi
https://codereview.chromium.org/583663003/diff/400001/content/public/browser/content_browser_client.h File content/public/browser/content_browser_client.h (left): https://codereview.chromium.org/583663003/diff/400001/content/public/browser/content_browser_client.h#oldcode569 content/public/browser/content_browser_client.h:569: // FYI: Used by an external project; please don't ...
6 years ago (2014-12-01 12:03:55 UTC) #20
timvolodine
https://codereview.chromium.org/583663003/diff/400001/content/public/browser/content_browser_client.h File content/public/browser/content_browser_client.h (left): https://codereview.chromium.org/583663003/diff/400001/content/public/browser/content_browser_client.h#oldcode569 content/public/browser/content_browser_client.h:569: // FYI: Used by an external project; please don't ...
6 years ago (2014-12-01 12:11:42 UTC) #21
ppi
https://codereview.chromium.org/583663003/diff/400001/content/public/browser/content_browser_client.h File content/public/browser/content_browser_client.h (left): https://codereview.chromium.org/583663003/diff/400001/content/public/browser/content_browser_client.h#oldcode569 content/public/browser/content_browser_client.h:569: // FYI: Used by an external project; please don't ...
6 years ago (2014-12-01 12:25:13 UTC) #22
timvolodine
+tsepez@ : for content/common/view_messages.h
6 years ago (2014-12-01 13:00:07 UTC) #24
qsr
https://codereview.chromium.org/583663003/diff/400001/content/app/android/library_loader_hooks.cc File content/app/android/library_loader_hooks.cc (right): https://codereview.chromium.org/583663003/diff/400001/content/app/android/library_loader_hooks.cc#newcode25 content/app/android/library_loader_hooks.cc:25: spurious blank line?
6 years ago (2014-12-01 16:21:32 UTC) #25
Tom Sepez
Messages/Mojo LGTM. https://codereview.chromium.org/583663003/diff/400001/device/vibration/android/vibration_jni_registrar.cc File device/vibration/android/vibration_jni_registrar.cc (right): https://codereview.chromium.org/583663003/diff/400001/device/vibration/android/vibration_jni_registrar.cc#newcode15 device/vibration/android/vibration_jni_registrar.cc:15: base::android::RegistrationMethod kRegisteredMethods[] = { nit: is this ...
6 years ago (2014-12-01 18:27:17 UTC) #26
blundell
Have you given thought to having the Android service impl in Java and getting rid ...
6 years ago (2014-12-02 10:54:07 UTC) #27
timvolodine
https://codereview.chromium.org/583663003/diff/400001/content/app/android/library_loader_hooks.cc File content/app/android/library_loader_hooks.cc (right): https://codereview.chromium.org/583663003/diff/400001/content/app/android/library_loader_hooks.cc#newcode25 content/app/android/library_loader_hooks.cc:25: On 2014/12/01 16:21:32, qsr wrote: > spurious blank line? ...
6 years ago (2014-12-02 19:37:57 UTC) #28
timvolodine
On 2014/12/02 10:54:07, blundell wrote: > Have you given thought to having the Android service ...
6 years ago (2014-12-02 19:38:57 UTC) #29
timvolodine
ok, think I'll need a high level lgtm to land: darin@ or jam@ could you ...
6 years ago (2014-12-03 12:10:52 UTC) #31
Michael van Ouwerkerk
lgtm with minor nits https://codereview.chromium.org/583663003/diff/420001/device/vibration/vibration_provider_android.h File device/vibration/vibration_provider_android.h (right): https://codereview.chromium.org/583663003/diff/420001/device/vibration/vibration_provider_android.h#newcode20 device/vibration/vibration_provider_android.h:20: virtual ~VibrationProviderAndroid(); Use override, not ...
6 years ago (2014-12-03 14:10:12 UTC) #32
Michael van Ouwerkerk
On 2014/12/03 12:10:52, timvolodine wrote: > ok, think I'll need a high level lgtm to ...
6 years ago (2014-12-03 14:11:28 UTC) #33
timvolodine
https://codereview.chromium.org/583663003/diff/420001/device/vibration/vibration_provider_android.h File device/vibration/vibration_provider_android.h (right): https://codereview.chromium.org/583663003/diff/420001/device/vibration/vibration_provider_android.h#newcode20 device/vibration/vibration_provider_android.h:20: virtual ~VibrationProviderAndroid(); On 2014/12/03 14:10:12, Michael van Ouwerkerk wrote: ...
6 years ago (2014-12-04 18:41:05 UTC) #34
timvolodine
On 2014/12/03 14:11:28, Michael van Ouwerkerk wrote: > On 2014/12/03 12:10:52, timvolodine wrote: > > ...
6 years ago (2014-12-04 19:30:28 UTC) #35
jam
nice to see the simplification by switching to mojo! just one comment. ps yep i'm ...
6 years ago (2014-12-05 01:13:34 UTC) #36
timvolodine
jam, thanks for the comments, PTAL. https://codereview.chromium.org/583663003/diff/440001/device/vibration/vibration_manager_impl.cc File device/vibration/vibration_manager_impl.cc (right): https://codereview.chromium.org/583663003/diff/440001/device/vibration/vibration_manager_impl.cc#newcode36 device/vibration/vibration_manager_impl.cc:36: // trust any ...
6 years ago (2014-12-05 18:12:48 UTC) #37
jam
lgtm
6 years ago (2014-12-05 18:44:28 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/583663003/520001
6 years ago (2014-12-06 12:51:57 UTC) #41
commit-bot: I haz the power
Committed patchset #26 (id:520001)
6 years ago (2014-12-06 13:49:10 UTC) #42
commit-bot: I haz the power
Patchset 26 (id:??) landed as https://crrev.com/8e29c14638adbc5121a1514d041d5287e1116ca2 Cr-Commit-Position: refs/heads/master@{#307176}
6 years ago (2014-12-06 13:50:21 UTC) #43
Nico
http://build.chromium.org/p/tryserver.chromium.linux/builders/android_chromium_gn_compile_dbg?numbuilds=200 is pretty red, with compile errors like FAILED: /b/build/goma/gomacc ../../third_party/android_tools/ndk/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-g++ -MMD -MF obj/device/vibration/android/android.vibration_jni_registrar.o.d -DCHROMIUM_BUILD ...
6 years ago (2014-12-23 23:32:59 UTC) #44
dcheng
A revert of this CL (patchset #26 id:520001) has been created in https://codereview.chromium.org/826613003/ by dcheng@chromium.org. ...
6 years ago (2014-12-23 23:53:23 UTC) #45
dcheng
(The revert wasn't actually landed, it was just to see how feasible it was.)
6 years ago (2014-12-23 23:58:00 UTC) #47
Nico
5 years, 12 months ago (2014-12-24 00:35:40 UTC) #48
Message was sent while issue was closed.
https://codereview.chromium.org/826593003/ tries to fix the bot.

Powered by Google App Engine
This is Rietveld 408576698