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

Issue 2704123006: [Sensors] Clamp given sampling frequency to the minimum supported one (Closed)

Created:
3 years, 10 months ago by Mikhail
Modified:
3 years, 10 months ago
CC:
chromium-reviews, qsr+mojo_chromium.org, shalamov, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, wanming.lin, blink-reviews, darin (slow to review), Mikhail
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Sensors] Clamp given sampling frequency to the minimum supported one The given frequency must be clamped to the minimum supported by the platform, as follows from https://github.com/w3c/sensors/issues/169 This CL only introduces generic code which provides the minimum supported frequency from platform layer to the Sensor JS bindings (layout tests are updated accordingly), platform-specific implementations are to be added in following patches. BUG=606766 Review-Url: https://codereview.chromium.org/2704123006 Cr-Commit-Position: refs/heads/master@{#452827} Committed: https://chromium.googlesource.com/chromium/src/+/883ba43fb0d728741ba56dbd8ec355b942abe1fe

Patch Set 1 #

Total comments: 8

Patch Set 2 : Comments from Reilly #

Patch Set 3 : Build fix #

Patch Set 4 : rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+65 lines, -20 lines) Patch
M device/generic_sensor/platform_sensor.h View 1 chunk +4 lines, -0 lines 0 comments Download
M device/generic_sensor/platform_sensor.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M device/generic_sensor/public/interfaces/sensor_provider.mojom View 1 chunk +3 lines, -0 lines 0 comments Download
M device/generic_sensor/sensor_provider_impl.cc View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/sensor/resources/generic-sensor-tests.js View 2 chunks +24 lines, -5 lines 0 comments Download
M third_party/WebKit/LayoutTests/sensor/resources/sensor-helpers.js View 4 chunks +8 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/sensor/Sensor.cpp View 1 2 3 4 chunks +6 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/modules/sensor/SensorProxy.h View 1 2 3 2 chunks +4 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/sensor/SensorProxy.cpp View 1 2 3 2 chunks +9 lines, -5 lines 0 comments Download

Messages

Total messages: 43 (33 generated)
Mikhail
PTAL
3 years, 10 months ago (2017-02-22 16:27:43 UTC) #5
Reilly Grant (use Gerrit)
lgtm with nits https://codereview.chromium.org/2704123006/diff/20001/device/generic_sensor/platform_sensor.h File device/generic_sensor/platform_sensor.h (right): https://codereview.chromium.org/2704123006/diff/20001/device/generic_sensor/platform_sensor.h#newcode52 device/generic_sensor/platform_sensor.h:52: // The default implementation returns '1.0 ...
3 years, 10 months ago (2017-02-22 18:40:15 UTC) #11
Reilly Grant (use Gerrit)
Adding mbarbella@ to review changes to sensor_provider.mojom.
3 years, 10 months ago (2017-02-22 18:46:57 UTC) #13
haraken
LGTM
3 years, 10 months ago (2017-02-22 23:32:44 UTC) #16
Martin Barbella
mojom lgtm
3 years, 10 months ago (2017-02-23 01:05:39 UTC) #17
Mikhail
thanks for taking a look! https://codereview.chromium.org/2704123006/diff/20001/device/generic_sensor/platform_sensor.h File device/generic_sensor/platform_sensor.h (right): https://codereview.chromium.org/2704123006/diff/20001/device/generic_sensor/platform_sensor.h#newcode52 device/generic_sensor/platform_sensor.h:52: // The default implementation ...
3 years, 10 months ago (2017-02-23 12:42:34 UTC) #20
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/2704123006/80001
3 years, 10 months ago (2017-02-24 13:23:04 UTC) #34
commit-bot: I haz the power
Failed to apply patch for third_party/WebKit/Source/modules/sensor/SensorProxy.cpp: While running git apply --index -p1; error: patch failed: ...
3 years, 10 months ago (2017-02-24 13:26:47 UTC) #36
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/2704123006/100001
3 years, 10 months ago (2017-02-24 13:51:40 UTC) #40
commit-bot: I haz the power
3 years, 10 months ago (2017-02-24 15:26:29 UTC) #43
Message was sent while issue was closed.
Committed patchset #4 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/883ba43fb0d728741ba56dbd8ec3...

Powered by Google App Engine
This is Rietveld 408576698