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