tree: c2f9229f099cfcda37b08f82253fa127848c5519 [path history] [tgz]
  1. absolute_orientation_sensor.cc
  2. absolute_orientation_sensor.h
  3. absolute_orientation_sensor.idl
  4. accelerometer.cc
  5. accelerometer.h
  6. accelerometer.idl
  7. ambient_light_sensor.cc
  8. ambient_light_sensor.h
  9. ambient_light_sensor.idl
  10. ambient_light_sensor_test.cc
  11. BUILD.gn
  12. DEPS
  13. DIR_METADATA
  14. gravity_sensor.cc
  15. gravity_sensor.h
  16. gravity_sensor.idl
  17. gyroscope.cc
  18. gyroscope.h
  19. gyroscope.idl
  20. idls.gni
  21. linear_acceleration_sensor.cc
  22. linear_acceleration_sensor.h
  23. linear_acceleration_sensor.idl
  24. magnetometer.cc
  25. magnetometer.h
  26. magnetometer.idl
  27. orientation_sensor.cc
  28. orientation_sensor.h
  29. orientation_sensor.idl
  30. OWNERS
  31. README.md
  32. relative_orientation_sensor.cc
  33. relative_orientation_sensor.h
  34. relative_orientation_sensor.idl
  35. sensor.cc
  36. sensor.h
  37. sensor.idl
  38. sensor_error_event.cc
  39. sensor_error_event.h
  40. sensor_error_event.idl
  41. sensor_error_event_init.idl
  42. sensor_inspector_agent.cc
  43. sensor_inspector_agent.h
  44. sensor_options.idl
  45. sensor_provider_proxy.cc
  46. sensor_provider_proxy.h
  47. sensor_proxy.cc
  48. sensor_proxy.h
  49. sensor_proxy_impl.cc
  50. sensor_proxy_impl.h
  51. sensor_proxy_inspector_impl.cc
  52. sensor_proxy_inspector_impl.h
  53. sensor_reading_remapper.cc
  54. sensor_reading_remapper.h
  55. sensor_test_utils.cc
  56. sensor_test_utils.h
  57. 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.