tree: 2ba560b3d16e44dd05312fe0eb8fc68156dc89eb [path history] [tgz]
  1. android/
  2. public/
  3. BUILD.gn
  4. data_fetcher_shared_memory.h
  5. data_fetcher_shared_memory_android.cc
  6. data_fetcher_shared_memory_base.cc
  7. data_fetcher_shared_memory_base.h
  8. data_fetcher_shared_memory_base_unittest.cc
  9. data_fetcher_shared_memory_chromeos.cc
  10. data_fetcher_shared_memory_default.cc
  11. data_fetcher_shared_memory_mac.cc
  12. data_fetcher_shared_memory_win.cc
  13. DEPS
  14. device_sensor_export.h
  15. device_sensor_host.cc
  16. device_sensor_host.h
  17. device_sensor_service.cc
  18. device_sensor_service.h
  19. device_sensors_consts.h
  20. OWNERS
  21. README.md
  22. sensor_manager_android.cc
  23. sensor_manager_android.h
  24. sensor_manager_android_unittest.cc
  25. sensor_manager_chromeos.cc
  26. sensor_manager_chromeos.h
  27. sensor_manager_chromeos_unittest.cc
device/sensors/README.md

Sensors

device/sensors contains the platform-specific parts of the DeviceOrientation Events implementation.

  • Sensor Mojo interfaces are defined in the public/interfaces subdirectory.
  • The content renderer layer is located in content/renderer/device_sensors.
  • The web exposed API is implemented in third_party/WebKit/Source/modules/device_orientation.

Testing

  • Browser tests are located in content/browser/device_sensors.
  • Layout tests are located in third_party/WebKit/LayoutTests/device_orientation.
  • Web platform tests are located in third_party/WebKit/LayoutTests/external/wpt/orientation-event and are a mirror of the web-platform-tests GitHub repository.