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

Issue 2317743002: [Sensors] Implementation of the Generic Sensor API (Closed)

Created:
4 years, 3 months ago by Mikhail
Modified:
4 years, 3 months ago
Reviewers:
haraken, timvolodine
CC:
chromium-reviews, blink-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Sensors] Implementation of the Generic Sensor API This patch contains blink-side infrastructure of the Generic Sensors Framework, i.e. implementation of 'Sensor' and 'SensorReading' classes. Also it introduces 'SensorPollingStrategy' interface that should provide different polling behaviour depending on the sensor reporting mode (implementation will be added in the following CLs). Specification: https://w3c.github.io/sensors BUG=606766 Committed: https://crrev.com/9f86cf248d11f5d6b9de962c75821b952622b8c8 Cr-Commit-Position: refs/heads/master@{#417200}

Patch Set 1 #

Patch Set 2 : rebased #

Total comments: 8

Patch Set 3 : Comments from Tim and haraken #

Unified diffs Side-by-side diffs Delta from patch set Stats (+342 lines, -165 lines) Patch
M third_party/WebKit/Source/modules/sensor/BUILD.gn View 1 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/sensor/Sensor.h View 1 2 3 chunks +56 lines, -16 lines 0 comments Download
M third_party/WebKit/Source/modules/sensor/Sensor.cpp View 1 2 1 chunk +192 lines, -64 lines 0 comments Download
M third_party/WebKit/Source/modules/sensor/SensorOptions.idl View 1 chunk +0 lines, -1 line 0 comments Download
A third_party/WebKit/Source/modules/sensor/SensorPollingStrategy.h View 1 chunk +34 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/modules/sensor/SensorPollingStrategy.cpp View 1 chunk +16 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/sensor/SensorReading.h View 1 chunk +15 lines, -22 lines 0 comments Download
M third_party/WebKit/Source/modules/sensor/SensorReading.cpp View 1 2 1 chunk +17 lines, -16 lines 0 comments Download
M third_party/WebKit/Source/modules/sensor/SensorReading.idl View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/sensor/SensorReadingEvent.h View 3 chunks +4 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/modules/sensor/SensorReadingEvent.cpp View 1 chunk +5 lines, -14 lines 0 comments Download
D third_party/WebKit/Source/modules/sensor/SensorState.h View 1 chunk +0 lines, -20 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 28 (20 generated)
Mikhail
PTAL
4 years, 3 months ago (2016-09-07 13:53:06 UTC) #10
haraken
In terms of implementation, LGTM. https://codereview.chromium.org/2317743002/diff/40001/third_party/WebKit/Source/modules/sensor/Sensor.h File third_party/WebKit/Source/modules/sensor/Sensor.h (right): https://codereview.chromium.org/2317743002/diff/40001/third_party/WebKit/Source/modules/sensor/Sensor.h#newcode29 third_party/WebKit/Source/modules/sensor/Sensor.h:29: , public ActiveDOMObject Change ...
4 years, 3 months ago (2016-09-07 15:53:44 UTC) #13
timvolodine
lgtm % comment below and assuming comments from the original large patch https://codereview.chromium.org/2121313002/ still applied. ...
4 years, 3 months ago (2016-09-07 17:04:10 UTC) #14
Mikhail
Thanks for review! https://codereview.chromium.org/2317743002/diff/40001/third_party/WebKit/Source/modules/sensor/Sensor.h File third_party/WebKit/Source/modules/sensor/Sensor.h (right): https://codereview.chromium.org/2317743002/diff/40001/third_party/WebKit/Source/modules/sensor/Sensor.h#newcode29 third_party/WebKit/Source/modules/sensor/Sensor.h:29: , public ActiveDOMObject On 2016/09/07 15:53:43, ...
4 years, 3 months ago (2016-09-07 18:37:23 UTC) #18
haraken
LGTM
4 years, 3 months ago (2016-09-07 23:12:30 UTC) #21
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/2317743002/60001
4 years, 3 months ago (2016-09-08 05:22:40 UTC) #24
commit-bot: I haz the power
Committed patchset #3 (id:60001)
4 years, 3 months ago (2016-09-08 05:49:29 UTC) #26
commit-bot: I haz the power
4 years, 3 months ago (2016-09-08 05:51:23 UTC) #28
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/9f86cf248d11f5d6b9de962c75821b952622b8c8
Cr-Commit-Position: refs/heads/master@{#417200}

Powered by Google App Engine
This is Rietveld 408576698