Touch.cpp 1020 B

123456789101112131415161718192021222324252627282930313233343536
  1. /*
  2. * Copyright (c) Facebook, Inc. and its affiliates.
  3. *
  4. * This source code is licensed under the MIT license found in the
  5. * LICENSE file in the root directory of this source tree.
  6. */
  7. #include "Touch.h"
  8. namespace facebook {
  9. namespace react {
  10. #if RN_DEBUG_STRING_CONVERTIBLE
  11. std::string getDebugName(Touch const &touch) {
  12. return "Touch";
  13. }
  14. std::vector<DebugStringConvertibleObject> getDebugProps(
  15. Touch const &touch,
  16. DebugStringConvertibleOptions options) {
  17. return {
  18. {"pagePoint", getDebugDescription(touch.pagePoint, options)},
  19. {"offsetPoint", getDebugDescription(touch.offsetPoint, options)},
  20. {"screenPoint", getDebugDescription(touch.screenPoint, options)},
  21. {"identifier", getDebugDescription(touch.identifier, options)},
  22. {"target", getDebugDescription(touch.target, options)},
  23. {"force", getDebugDescription(touch.force, options)},
  24. {"timestamp", getDebugDescription(touch.timestamp, options)},
  25. };
  26. }
  27. #endif
  28. } // namespace react
  29. } // namespace facebook