tree: 2b2d885d42d3fc732e8f31a70d62d510ac02f039 [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. BUILD.gn
  11. DEPS
  12. gyroscope.cc
  13. gyroscope.h
  14. gyroscope.idl
  15. linear_acceleration_sensor.cc
  16. linear_acceleration_sensor.h
  17. linear_acceleration_sensor.idl
  18. magnetometer.cc
  19. magnetometer.h
  20. magnetometer.idl
  21. orientation_sensor.cc
  22. orientation_sensor.h
  23. orientation_sensor.idl
  24. OWNERS
  25. README.md
  26. relative_orientation_sensor.cc
  27. relative_orientation_sensor.h
  28. relative_orientation_sensor.idl
  29. sensor.cc
  30. sensor.h
  31. sensor.idl
  32. sensor_error_event.cc
  33. sensor_error_event.h
  34. sensor_error_event.idl
  35. sensor_error_event_init.idl
  36. sensor_inspector_agent.cc
  37. sensor_inspector_agent.h
  38. sensor_options.idl
  39. sensor_provider_proxy.cc
  40. sensor_provider_proxy.h
  41. sensor_proxy.cc
  42. sensor_proxy.h
  43. sensor_proxy_impl.cc
  44. sensor_proxy_impl.h
  45. sensor_proxy_inspector_impl.cc
  46. sensor_proxy_inspector_impl.h
  47. sensor_reading_remapper.cc
  48. sensor_reading_remapper.h
  49. 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 layout 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.