tree: bd19cb8066dcb2d4d1048d6fee35f53f9aa3fb42 [path history] [tgz]
  1. android/
  2. linux/
  3. public/
  4. BUILD.gn
  5. DEPS
  6. fake_platform_sensor.cc
  7. fake_platform_sensor.h
  8. fake_platform_sensor_provider.cc
  9. fake_platform_sensor_provider.h
  10. generic_sensor_consts.h
  11. generic_sensor_export.h
  12. OWNERS
  13. platform_sensor.cc
  14. platform_sensor.h
  15. platform_sensor_ambient_light_mac.cc
  16. platform_sensor_ambient_light_mac.h
  17. platform_sensor_and_provider_unittest_linux.cc
  18. platform_sensor_and_provider_unittest_win.cc
  19. platform_sensor_android.cc
  20. platform_sensor_android.h
  21. platform_sensor_linux.cc
  22. platform_sensor_linux.h
  23. platform_sensor_provider.cc
  24. platform_sensor_provider.h
  25. platform_sensor_provider_android.cc
  26. platform_sensor_provider_android.h
  27. platform_sensor_provider_base.cc
  28. platform_sensor_provider_base.h
  29. platform_sensor_provider_linux.cc
  30. platform_sensor_provider_linux.h
  31. platform_sensor_provider_mac.cc
  32. platform_sensor_provider_mac.h
  33. platform_sensor_provider_unittest.cc
  34. platform_sensor_provider_win.cc
  35. platform_sensor_provider_win.h
  36. platform_sensor_reader_linux.cc
  37. platform_sensor_reader_linux.h
  38. platform_sensor_reader_win.cc
  39. platform_sensor_reader_win.h
  40. platform_sensor_win.cc
  41. platform_sensor_win.h
  42. README.md
  43. sensor_impl.cc
  44. sensor_impl.h
  45. sensor_provider_impl.cc
  46. sensor_provider_impl.h
device/generic_sensor/README.md

Sensors

device/generic_sensor contains the platform-specific parts of the Sensor APIs implementation.

Sensors Mojo interfaces are defined in the public/interfaces subdirectory.

The JS bindings are implemented in third_party/WebKit/Source/modules/sensor.

Testing

Sensors platform unit tests are located in the current directory and its subdirectories.

The sensors unit tests file for Android is android/junit/src/org/chromium/device/sensors/PlatformSensorAndProviderTest.java.

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

Design Documents

Please refer to the design documentation for more details.