• mikhail.pozdnyakov's avatar
    [Sensors] Handle default sensor configuration · b49349c6
    mikhail.pozdnyakov authored
    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
    
    Review-Url: https://codereview.chromium.org/2330943002
    Cr-Commit-Position: refs/heads/master@{#418528}
    b49349c6
sensor_provider_impl.cc 2.23 KB