tree: bd9ce917621158c08cdda588491e55e0626cf41a [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_mac.cc
  14. data_fetcher_shared_memory_win.cc
  15. device_sensor_export.h
  16. device_sensor_host.cc
  17. device_sensor_host.h
  18. device_sensor_service.cc
  19. device_sensor_service.h
  20. device_sensors_consts.h
  21. public/
  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.