Description[Sensors] Handle default sensor configuration
This patch provides platform sensor's default configuration to the Blink side at 'SensorProxy' initialization stage.
Default configuration will be used for sensors construction by default, e.g. 'let sensor = new AmbientLightSensor();'.
A few related changes are added as well:
- Rename 'SensorReadBuffer' to 'SensorInitParams'
- Remove repeated code calling 'startListening()' from 'Sensor::onSensorInitialized()'
- Call 'reset()' for all 'SensorProxy' members from 'SensorProxy::handleSensorError()'
BUG=606766
Committed: https://crrev.com/b49349c6d3c4e7875fbb3ed8e3535f71006e444c
Cr-Commit-Position: refs/heads/master@{#418528}
Patch Set 1 #
Total comments: 8
Patch Set 2 : Comments from Tim #Patch Set 3 : Comments from Alex #Patch Set 4 : Rebased #
Messages
Total messages: 33 (18 generated)
|