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

Issue 2472403002: [Sensors] Align sensor reading attribute implementation with the specification (Closed)

Created:
4 years, 1 month ago by Mikhail
Modified:
4 years, 1 month ago
CC:
chromium-reviews, blink-reviews, haraken, blink-reviews-bindings_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Sensors] Align sensor reading attribute implementation with the specification This patch updates sensor reading implementation accordingly to specification [1] which says: "the reading attribute of two instances of the same Sensor interface associated with the same sensor hold the same SensorReading during a single event loop turn". Besides, this patch also drops 'SensorReadingEvent' and 'SensorReadingEventInit' types which no longer exist in the specification. [1] https://w3c.github.io/sensors/#sensor-reading BUG=606766 Committed: https://crrev.com/62a49b3515112ea2ca6bbab6196f68717c52f94b Cr-Commit-Position: refs/heads/master@{#430578}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Comments from Alex #

Patch Set 3 : Tests rebaseline #

Patch Set 4 : Remove a leftover from test #

Total comments: 6

Patch Set 5 : Comments from Tim #

Unified diffs Side-by-side diffs Delta from patch set Stats (+190 lines, -224 lines) Patch
M content/test/data/generic_sensor/ambient_light_sensor_test.html View 1 2 3 4 2 chunks +8 lines, -8 lines 0 comments Download
M third_party/WebKit/LayoutTests/sensor/ambient-light-sensor.html View 1 2 3 4 chunks +55 lines, -6 lines 0 comments Download
M third_party/WebKit/LayoutTests/webexposed/global-interface-listing-expected.txt View 1 2 3 1 chunk +0 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/bindings/modules/BUILD.gn View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/modules_idl_files.gni View 1 2 3 3 chunks +0 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/modules/sensor/AmbientLightSensor.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/sensor/AmbientLightSensor.cpp View 1 chunk +4 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/sensor/AmbientLightSensorReading.h View 1 chunk +4 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/modules/sensor/AmbientLightSensorReading.cpp View 1 chunk +20 lines, -13 lines 0 comments Download
M third_party/WebKit/Source/modules/sensor/BUILD.gn View 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/sensor/Sensor.h View 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/sensor/Sensor.cpp View 8 chunks +17 lines, -18 lines 0 comments Download
M third_party/WebKit/Source/modules/sensor/SensorProviderProxy.h View 2 chunks +5 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/sensor/SensorProviderProxy.cpp View 3 chunks +14 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/modules/sensor/SensorProxy.h View 1 2 3 4 chunks +15 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/modules/sensor/SensorProxy.cpp View 1 2 3 6 chunks +17 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/modules/sensor/SensorReading.h View 1 chunk +24 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/modules/sensor/SensorReading.cpp View 2 chunks +3 lines, -17 lines 0 comments Download
D third_party/WebKit/Source/modules/sensor/SensorReadingEvent.h View 1 chunk +0 lines, -54 lines 0 comments Download
D third_party/WebKit/Source/modules/sensor/SensorReadingEvent.cpp View 1 chunk +0 lines, -32 lines 0 comments Download
D third_party/WebKit/Source/modules/sensor/SensorReadingEvent.idl View 1 chunk +0 lines, -13 lines 0 comments Download
D third_party/WebKit/Source/modules/sensor/SensorReadingEventInit.idl View 1 chunk +0 lines, -13 lines 0 comments Download

Messages

Total messages: 30 (20 generated)
shalamov
https://codereview.chromium.org/2472403002/diff/1/third_party/WebKit/LayoutTests/sensor/ambient-light-sensor.html File third_party/WebKit/LayoutTests/sensor/ambient-light-sensor.html (right): https://codereview.chromium.org/2472403002/diff/1/third_party/WebKit/LayoutTests/sensor/ambient-light-sensor.html#newcode186 third_party/WebKit/LayoutTests/sensor/ambient-light-sensor.html:186: ambientLightSensor.onchange = e => { If event doesn't have ...
4 years, 1 month ago (2016-11-04 13:06:53 UTC) #5
Mikhail
https://codereview.chromium.org/2472403002/diff/1/third_party/WebKit/LayoutTests/sensor/ambient-light-sensor.html File third_party/WebKit/LayoutTests/sensor/ambient-light-sensor.html (right): https://codereview.chromium.org/2472403002/diff/1/third_party/WebKit/LayoutTests/sensor/ambient-light-sensor.html#newcode186 third_party/WebKit/LayoutTests/sensor/ambient-light-sensor.html:186: ambientLightSensor.onchange = e => { On 2016/11/04 13:06:53, shalamov ...
4 years, 1 month ago (2016-11-04 13:20:48 UTC) #7
Mikhail
Please take a look
4 years, 1 month ago (2016-11-07 06:43:13 UTC) #19
timvolodine
a few comments below, otherwise looks good to me https://codereview.chromium.org/2472403002/diff/60001/content/test/data/generic_sensor/ambient_light_sensor_test.html File content/test/data/generic_sensor/ambient_light_sensor_test.html (right): https://codereview.chromium.org/2472403002/diff/60001/content/test/data/generic_sensor/ambient_light_sensor_test.html#newcode7 content/test/data/generic_sensor/ambient_light_sensor_test.html:7: ...
4 years, 1 month ago (2016-11-07 15:49:19 UTC) #20
haraken
Implementation LGTM https://codereview.chromium.org/2472403002/diff/60001/third_party/WebKit/Source/modules/sensor/SensorReading.h File third_party/WebKit/Source/modules/sensor/SensorReading.h (right): https://codereview.chromium.org/2472403002/diff/60001/third_party/WebKit/Source/modules/sensor/SensorReading.h#newcode22 third_party/WebKit/Source/modules/sensor/SensorReading.h:22: DEFINE_INLINE_VIRTUAL_TRACE() {} On 2016/11/07 15:49:19, timvolodine wrote: ...
4 years, 1 month ago (2016-11-08 02:31:33 UTC) #21
shalamov
lgtm
4 years, 1 month ago (2016-11-08 09:04:08 UTC) #22
Mikhail
https://codereview.chromium.org/2472403002/diff/60001/content/test/data/generic_sensor/ambient_light_sensor_test.html File content/test/data/generic_sensor/ambient_light_sensor_test.html (right): https://codereview.chromium.org/2472403002/diff/60001/content/test/data/generic_sensor/ambient_light_sensor_test.html#newcode7 content/test/data/generic_sensor/ambient_light_sensor_test.html:7: function onAmbientLightReadingChange(event) { On 2016/11/07 15:49:19, timvolodine wrote: > ...
4 years, 1 month ago (2016-11-08 09:09:15 UTC) #23
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/2472403002/80001
4 years, 1 month ago (2016-11-08 09:09:45 UTC) #26
commit-bot: I haz the power
Failed to apply patch for third_party/WebKit/Source/modules/sensor/SensorReadingEvent.cpp: While running git rm third_party/WebKit/Source/modules/sensor/SensorReadingEvent.cpp; fatal: pathspec 'third_party/WebKit/Source/modules/sensor/SensorReadingEvent.cpp' did ...
4 years, 1 month ago (2016-11-08 11:33:24 UTC) #28
commit-bot: I haz the power
4 years, 1 month ago (2016-11-08 11:34:53 UTC) #30
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/62a49b3515112ea2ca6bbab6196f68717c52f94b
Cr-Commit-Position: refs/heads/master@{#430578}

Powered by Google App Engine
This is Rietveld 408576698