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

Issue 2121313002: [sensors] Generic Sensors Framework blink side (Closed)

Created:
4 years, 5 months ago by Mikhail
Modified:
4 years, 3 months ago
CC:
chromium-reviews, blink-reviews, abarth-chromium, shalamov, riju_
Base URL:
https://chromium.googlesource.com/chromium/src.git@sensors_mojo_interfaces
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[sensors] Blink-side implementation of mojo interfaces This patch introduces blink-side implementation of generic sensor mojo interfaces. Specification: https://w3c.github.io/sensors Browser side CL: https://crrev.com/2144623003/ BUG=606766 Committed: https://crrev.com/0c00597deb691b3d180f09f25ee67a494e927311 Cr-Commit-Position: refs/heads/master@{#416920}

Patch Set 1 #

Patch Set 2 : Use 'SuspenNotification' API #

Patch Set 3 : Updated due to latest device::mojom::blink::Sensor interface #

Patch Set 4 : Rebased #

Total comments: 60

Patch Set 5 : Comments from Tim #

Patch Set 6 : Stop unneeded class exporting #

Patch Set 7 : Align SensorReading update with the spec #

Patch Set 8 : Properly handle default sensor options #

Total comments: 8

Patch Set 9 : Comments from Riju #

Total comments: 17

Patch Set 10 : Comments from Tim #

Total comments: 5

Patch Set 11 : Comments from Tim. Removed the default sensor configuration management (to be added with a separate… #

Total comments: 27

Patch Set 12 : Keeping mojo wrappers only + comments from haraken #

Total comments: 4

Patch Set 13 : Comments from haraken #

Patch Set 14 : Moved mojo interfaces dep to sensor/BUILD.gn (fixed gn check) #

Patch Set 15 : build fix for win #

Unified diffs Side-by-side diffs Delta from patch set Stats (+367 lines, -0 lines) Patch
M third_party/WebKit/Source/modules/sensor/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +8 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/sensor/DEPS View 1 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/sensor/OWNERS View 1 chunk +2 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/sensor/SensorProviderProxy.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +52 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/sensor/SensorProviderProxy.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +67 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/sensor/SensorProxy.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +102 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/sensor/SensorProxy.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +134 lines, -0 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 94 (60 generated)
Mikhail
Here is the Blink side of Generic Sensors Framework, this CL depends on https://crrev.com/2078433002/. PTAL.
4 years, 5 months ago (2016-07-06 12:40:16 UTC) #3
Mikhail
Rebased and updated the Generic Sensor Framework Blink part (this CL) accordingly to https://codereview.chromium.org/2144623003/#msg15. PTAL.
4 years, 4 months ago (2016-08-11 12:59:58 UTC) #4
Mikhail
Tim, could you pls have a look?
4 years, 4 months ago (2016-08-24 10:43:13 UTC) #11
timvolodine
Just an initial scan, didn't go through the details. Could you add a pointer to ...
4 years, 3 months ago (2016-08-25 17:52:33 UTC) #15
Mikhail
Thanks for your comments! https://codereview.chromium.org/2121313002/diff/60001/third_party/WebKit/Source/modules/sensor/Sensor.cpp File third_party/WebKit/Source/modules/sensor/Sensor.cpp (right): https://codereview.chromium.org/2121313002/diff/60001/third_party/WebKit/Source/modules/sensor/Sensor.cpp#newcode39 third_party/WebKit/Source/modules/sensor/Sensor.cpp:39: exceptionState.throwDOMException(InvalidStateError, "Invalid State: SensorState is ...
4 years, 3 months ago (2016-08-26 16:42:42 UTC) #26
Mikhail
In the latest patch SensorReading update is fixed so that now all sensors "hold the ...
4 years, 3 months ago (2016-08-29 13:31:46 UTC) #36
Mikhail
gentle ping for review
4 years, 3 months ago (2016-08-29 19:35:43 UTC) #40
Mikhail
On 2016/08/29 19:35:43, Mikhail wrote: > gentle ping for review
4 years, 3 months ago (2016-08-31 10:01:59 UTC) #45
riju_
minor nits https://codereview.chromium.org/2121313002/diff/180001/third_party/WebKit/Source/modules/sensor/Sensor.cpp File third_party/WebKit/Source/modules/sensor/Sensor.cpp (right): https://codereview.chromium.org/2121313002/diff/180001/third_party/WebKit/Source/modules/sensor/Sensor.cpp#newcode20 third_party/WebKit/Source/modules/sensor/Sensor.cpp:20: Sensor::Sensor(ExecutionContext* executionContext, const SensorOptions& sensorOptions, device::mojom::blink::SensorType type) ...
4 years, 3 months ago (2016-08-31 10:35:49 UTC) #47
Mikhail
https://codereview.chromium.org/2121313002/diff/180001/third_party/WebKit/Source/modules/sensor/Sensor.cpp File third_party/WebKit/Source/modules/sensor/Sensor.cpp (right): https://codereview.chromium.org/2121313002/diff/180001/third_party/WebKit/Source/modules/sensor/Sensor.cpp#newcode20 third_party/WebKit/Source/modules/sensor/Sensor.cpp:20: Sensor::Sensor(ExecutionContext* executionContext, const SensorOptions& sensorOptions, device::mojom::blink::SensorType type) On 2016/08/31 ...
4 years, 3 months ago (2016-08-31 12:01:07 UTC) #48
timvolodine
On 2016/08/31 10:01:59, Mikhail wrote: > On 2016/08/29 19:35:43, Mikhail wrote: > > gentle ping ...
4 years, 3 months ago (2016-08-31 19:05:48 UTC) #49
riju_
Overall LGTM, but let Tim have a look.
4 years, 3 months ago (2016-09-01 08:44:23 UTC) #50
timvolodine
Thanks, some more replies/comments below. Any plans regarding tests for this? How do you know ...
4 years, 3 months ago (2016-09-01 19:02:06 UTC) #51
Mikhail
Thanks for your comments! https://codereview.chromium.org/2121313002/diff/60001/third_party/WebKit/Source/modules/sensor/Sensor.cpp File third_party/WebKit/Source/modules/sensor/Sensor.cpp (right): https://codereview.chromium.org/2121313002/diff/60001/third_party/WebKit/Source/modules/sensor/Sensor.cpp#newcode130 third_party/WebKit/Source/modules/sensor/Sensor.cpp:130: if (EventTypeNames::change == eventType) On ...
4 years, 3 months ago (2016-09-02 08:23:43 UTC) #52
Mikhail
On 2016/09/01 19:02:06, timvolodine wrote: > Thanks, some more replies/comments below. > > Any plans ...
4 years, 3 months ago (2016-09-02 10:47:56 UTC) #53
timvolodine
On 2016/09/02 10:47:56, Mikhail wrote: > On 2016/09/01 19:02:06, timvolodine wrote: > > Thanks, some ...
4 years, 3 months ago (2016-09-02 14:19:32 UTC) #54
Mikhail
On 2016/09/02 14:19:32, timvolodine wrote: > On 2016/09/02 10:47:56, Mikhail wrote: > > On 2016/09/01 ...
4 years, 3 months ago (2016-09-02 14:30:08 UTC) #55
timvolodine
On 2016/09/02 14:30:08, Mikhail wrote: > On 2016/09/02 14:19:32, timvolodine wrote: > > On 2016/09/02 ...
4 years, 3 months ago (2016-09-02 14:52:02 UTC) #56
Mikhail
On 2016/09/02 14:52:02, timvolodine wrote: > > Oh ok got it, Sensor is a base ...
4 years, 3 months ago (2016-09-02 19:02:38 UTC) #57
timvolodine
https://codereview.chromium.org/2121313002/diff/60001/third_party/WebKit/Source/modules/sensor/SensorProviderProxy.cpp File third_party/WebKit/Source/modules/sensor/SensorProviderProxy.cpp (right): https://codereview.chromium.org/2121313002/diff/60001/third_party/WebKit/Source/modules/sensor/SensorProviderProxy.cpp#newcode89 third_party/WebKit/Source/modules/sensor/SensorProviderProxy.cpp:89: for (SensorProxy* sensor : m_sensors) On 2016/09/02 08:23:43, Mikhail ...
4 years, 3 months ago (2016-09-02 19:41:29 UTC) #58
Mikhail
https://codereview.chromium.org/2121313002/diff/60001/third_party/WebKit/Source/modules/sensor/SensorProviderProxy.cpp File third_party/WebKit/Source/modules/sensor/SensorProviderProxy.cpp (right): https://codereview.chromium.org/2121313002/diff/60001/third_party/WebKit/Source/modules/sensor/SensorProviderProxy.cpp#newcode89 third_party/WebKit/Source/modules/sensor/SensorProviderProxy.cpp:89: for (SensorProxy* sensor : m_sensors) On 2016/09/02 19:41:28, timvolodine ...
4 years, 3 months ago (2016-09-05 10:26:27 UTC) #59
timvolodine
OK thanks, two more comments below. Looks reasonable in general so lgtm. https://codereview.chromium.org/2121313002/diff/220001/third_party/WebKit/Source/modules/sensor/SensorReading.cpp File third_party/WebKit/Source/modules/sensor/SensorReading.cpp ...
4 years, 3 months ago (2016-09-05 23:22:40 UTC) #60
timvolodine
Would be good to have this patch signed off by an oilpan expert (haraken@?) +cc: ...
4 years, 3 months ago (2016-09-05 23:23:52 UTC) #62
haraken
not LGTM This CL is doing too many things in one go and has a ...
4 years, 3 months ago (2016-09-06 05:04:29 UTC) #65
Mikhail
Tim and haraken@, thanks for your comments https://codereview.chromium.org/2121313002/diff/240001/third_party/WebKit/Source/modules/sensor/Sensor.cpp File third_party/WebKit/Source/modules/sensor/Sensor.cpp (right): https://codereview.chromium.org/2121313002/diff/240001/third_party/WebKit/Source/modules/sensor/Sensor.cpp#newcode112 third_party/WebKit/Source/modules/sensor/Sensor.cpp:112: if (!getExecutionContext() ...
4 years, 3 months ago (2016-09-06 07:13:58 UTC) #68
Mikhail
On 2016/09/06 05:04:29, haraken wrote: > This CL is doing too many things in one ...
4 years, 3 months ago (2016-09-06 07:19:04 UTC) #69
haraken
On 2016/09/06 07:19:04, Mikhail wrote: > On 2016/09/06 05:04:29, haraken wrote: > > This CL ...
4 years, 3 months ago (2016-09-06 07:48:56 UTC) #70
Mikhail
I have split the code into 3 parts as following: 1) Mojo wrapper classes - ...
4 years, 3 months ago (2016-09-06 17:37:43 UTC) #72
haraken
LGTM https://codereview.chromium.org/2121313002/diff/260001/third_party/WebKit/Source/modules/sensor/SensorProviderProxy.h File third_party/WebKit/Source/modules/sensor/SensorProviderProxy.h (right): https://codereview.chromium.org/2121313002/diff/260001/third_party/WebKit/Source/modules/sensor/SensorProviderProxy.h#newcode44 third_party/WebKit/Source/modules/sensor/SensorProviderProxy.h:44: using SensorsSet = HeapHashSet<Member<SensorProxy>>; I'm guessing that this ...
4 years, 3 months ago (2016-09-07 02:21:56 UTC) #73
Mikhail
https://codereview.chromium.org/2121313002/diff/260001/third_party/WebKit/Source/modules/sensor/SensorProviderProxy.h File third_party/WebKit/Source/modules/sensor/SensorProviderProxy.h (right): https://codereview.chromium.org/2121313002/diff/260001/third_party/WebKit/Source/modules/sensor/SensorProviderProxy.h#newcode44 third_party/WebKit/Source/modules/sensor/SensorProviderProxy.h:44: using SensorsSet = HeapHashSet<Member<SensorProxy>>; On 2016/09/07 02:21:56, haraken wrote: ...
4 years, 3 months ago (2016-09-07 07:55:15 UTC) #74
haraken
LGTM
4 years, 3 months ago (2016-09-07 08:02:23 UTC) #79
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/2121313002/320001
4 years, 3 months ago (2016-09-07 12:54:52 UTC) #90
commit-bot: I haz the power
Committed patchset #15 (id:320001)
4 years, 3 months ago (2016-09-07 12:58:28 UTC) #92
commit-bot: I haz the power
4 years, 3 months ago (2016-09-07 13:01:59 UTC) #94
Message was sent while issue was closed.
Patchset 15 (id:??) landed as
https://crrev.com/0c00597deb691b3d180f09f25ee67a494e927311
Cr-Commit-Position: refs/heads/master@{#416920}

Powered by Google App Engine
This is Rietveld 408576698