tree: 82bf0500b9e049a46981d69103facfa490c3740c [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. linear_acceleration_sensor.cc
  21. linear_acceleration_sensor.h
  22. linear_acceleration_sensor.idl
  23. magnetometer.cc
  24. magnetometer.h
  25. magnetometer.idl
  26. orientation_sensor.cc
  27. orientation_sensor.h
  28. orientation_sensor.idl
  29. OWNERS
  30. README.md
  31. relative_orientation_sensor.cc
  32. relative_orientation_sensor.h
  33. relative_orientation_sensor.idl
  34. sensor.cc
  35. sensor.h
  36. sensor.idl
  37. sensor_error_event.cc
  38. sensor_error_event.h
  39. sensor_error_event.idl
  40. sensor_error_event_init.idl
  41. sensor_inspector_agent.cc
  42. sensor_inspector_agent.h
  43. sensor_options.idl
  44. sensor_provider_proxy.cc
  45. sensor_provider_proxy.h
  46. sensor_proxy.cc
  47. sensor_proxy.h
  48. sensor_proxy_impl.cc
  49. sensor_proxy_impl.h
  50. sensor_proxy_inspector_impl.cc
  51. sensor_proxy_inspector_impl.h
  52. sensor_reading_remapper.cc
  53. sensor_reading_remapper.h
  54. sensor_test_utils.cc
  55. sensor_test_utils.h
  56. 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.