tree: e5889731b969a1cd72bce4263ba8089acfc36d0e [path history] [tgz]
  1. BUILD.gn
  2. DEPS
  3. OWNERS
  4. README.md
  5. absolute_orientation_sensor.cc
  6. absolute_orientation_sensor.h
  7. absolute_orientation_sensor.idl
  8. accelerometer.cc
  9. accelerometer.h
  10. accelerometer.idl
  11. ambient_light_sensor.cc
  12. ambient_light_sensor.h
  13. ambient_light_sensor.idl
  14. ambient_light_sensor_test.cc
  15. gyroscope.cc
  16. gyroscope.h
  17. gyroscope.idl
  18. linear_acceleration_sensor.cc
  19. linear_acceleration_sensor.h
  20. linear_acceleration_sensor.idl
  21. magnetometer.cc
  22. magnetometer.h
  23. magnetometer.idl
  24. orientation_sensor.cc
  25. orientation_sensor.h
  26. orientation_sensor.idl
  27. relative_orientation_sensor.cc
  28. relative_orientation_sensor.h
  29. relative_orientation_sensor.idl
  30. sensor.cc
  31. sensor.h
  32. sensor.idl
  33. sensor_error_event.cc
  34. sensor_error_event.h
  35. sensor_error_event.idl
  36. sensor_error_event_init.idl
  37. sensor_inspector_agent.cc
  38. sensor_inspector_agent.h
  39. sensor_options.idl
  40. sensor_provider_proxy.cc
  41. sensor_provider_proxy.h
  42. sensor_proxy.cc
  43. sensor_proxy.h
  44. sensor_proxy_impl.cc
  45. sensor_proxy_impl.h
  46. sensor_proxy_inspector_impl.cc
  47. sensor_proxy_inspector_impl.h
  48. sensor_reading_remapper.cc
  49. sensor_reading_remapper.h
  50. sensor_test_utils.cc
  51. sensor_test_utils.h
  52. spatial_sensor_options.idl
third_party/blink/renderer/modules/sensor/README.md

Generic Sensor

third_party/blink/renderer/modules/sensor implements the following concrete sensor interfaces based on the [Generic Sensor API] (https://w3c.github.io/sensors):

  1. [Ambient Light Sensor] (https://w3c.github.io/ambient-light)
  2. [Accelerometer] (https://w3c.github.io/accelerometer)
  3. [Gyroscope] (https://w3c.github.io/gyroscope)
  4. [Magnetometer] (https://w3c.github.io/magnetometer)
  5. [Absolute Orientation Sensor] (https://w3c.github.io/orientation-sensor)

The platform-specific parts of the implementation are located in services/device/generic_sensor.

Testing

Sensors web tests are located in web_tests/sensor.

Sensors browser tests are located in content/test/data/generic_sensor.

Design Documents

Please refer to the design documentation for more details.