gecko-dev/dom/vr
Nathan Froyd cfb8fb313f Bug 1662251 - stop assigning from NS_Convert* values, mostly; r=sg
This patch was generated by running:

```
perl -p -i \
     -e 's/^(\s+)([a-zA-Z0-9.]+) = NS_ConvertUTF8toUTF16\((.*)\);/\1CopyUTF8toUTF16(\3, \2);/;' \
     -e 's/^(\s+)([a-zA-Z0-9.]+) = NS_ConvertUTF16toUTF8\((.*)\);/\1CopyUTF16toUTF8(\3, \2);/;' \
     $FILE
```

against every .cpp and .h in mozilla-central, and then fixing up the
inevitable errors that happen as a result of matching C++ expressions with
regexes.  The errors fell into three categories:

1. Calling the convert functions with `std::string::c_str()`; these were
   changed to simply pass the string instead, relying on implicit conversion
   to `mozilla::Span`.
2. Calling the convert functions with raw pointers, which is not permitted
   with the copy functions; these were changed to invoke `MakeStringSpan` first.
3. Other miscellaneous errors resulting from over-eager regexes and/or the
   replacement not being type-aware.  These changes were reverted.

Differential Revision: https://phabricator.services.mozilla.com/D88903
2020-09-02 09:54:37 +00:00
..
test Bug 1644863 - fix trailing whitespace in cross-tree tests, r=emilio,marionette-reviewers,whimboo 2020-06-17 22:45:31 +00:00
VRDisplay.cpp Bug 1662251 - stop assigning from NS_Convert* values, mostly; r=sg 2020-09-02 09:54:37 +00:00
VRDisplay.h
VRDisplayEvent.cpp
VRDisplayEvent.h Bug 1653229 - Remove unnecessary includes for BindingUtils.h. r=jgilbert 2020-07-22 15:12:10 +00:00
VREventObserver.cpp Bug 1627331 - Do not dispatch WebVR events when the display is used via WebXR API r=kip,daoshengmu 2020-04-07 20:37:00 +00:00
VREventObserver.h Bug 1627331 - Do not dispatch WebVR events when the display is used via WebXR API r=kip,daoshengmu 2020-04-07 20:37:00 +00:00
VRServiceTest.cpp Bug 1555188 - Enable PuppetVRSession to work when VR process is enabled r=thomasmo 2020-06-08 23:57:27 +00:00
VRServiceTest.h
XRBoundedReferenceSpace.cpp
XRBoundedReferenceSpace.h
XRFrame.cpp Bug 1650714 - Part 2: Correct XRRigidTransform inverse math r=daoshengmu,kip,lsalzman 2020-07-10 22:01:11 +00:00
XRFrame.h Bug 1519636 - Reformat recent changes to the Google coding style r=andi 2020-05-09 14:51:53 +00:00
XRInputSource.cpp Bug 1654863 - Update PicoVR controller profile names. r=kip 2020-07-23 18:48:30 +00:00
XRInputSource.h Bug 1628919 - Emit XRInputSourceEvent selectend event If a controller is disconnected. r=kip 2020-04-24 02:02:39 +00:00
XRInputSourceArray.cpp Bug 1648010 - Replace uses of NS_LITERAL_STRING/NS_LITERAL_CSTRING macros by _ns literals. r=geckoview-reviewers,jgilbert,agi,hsivonen,froydnj 2020-07-01 08:29:29 +00:00
XRInputSourceArray.h Bug 1619165 - Reformat recent changes to the Google coding style r=andi 2020-04-25 09:40:08 +00:00
XRInputSpace.cpp Bug 1631635 - Implement IsPositionEmulated for XRInputSource. r=kip,imanol 2020-04-21 11:17:34 +00:00
XRInputSpace.h Bug 1631635 - Implement IsPositionEmulated for XRInputSource. r=kip,imanol 2020-04-21 11:17:34 +00:00
XRNativeOrigin.h
XRNativeOriginFixed.cpp
XRNativeOriginFixed.h
XRNativeOriginLocal.cpp Bug 1631635 - Implement IsPositionEmulated for XRInputSource. r=kip,imanol 2020-04-21 11:17:34 +00:00
XRNativeOriginLocal.h
XRNativeOriginLocalFloor.cpp Bug 1633725 - Improve WebXR Garbage Collection. Respect XRRigidTransform.inverse and XRView.transform [SameObject] requirements. r=kip,daoshengmu,jgilbert 2020-05-01 01:42:39 +00:00
XRNativeOriginLocalFloor.h
XRNativeOriginTracker.cpp Bug 1650714 - Part 1: Correct Matrix Decompose and SetRotationFromQuaternion. r=kip,imanol,lsalzman 2020-07-10 22:01:11 +00:00
XRNativeOriginTracker.h
XRNativeOriginViewer.cpp Bug 1641593 - Apply sensor orientation in XRNativeOriginViewer reference space r=kip,daoshengmu 2020-05-28 18:04:14 +00:00
XRNativeOriginViewer.h Bug 1641593 - Apply sensor orientation in XRNativeOriginViewer reference space r=kip,daoshengmu 2020-05-28 18:04:14 +00:00
XRPermissionRequest.cpp Bug 1648010 - Replace uses of NS_LITERAL_STRING/NS_LITERAL_CSTRING macros by _ns literals. r=geckoview-reviewers,jgilbert,agi,hsivonen,froydnj 2020-07-01 08:29:29 +00:00
XRPermissionRequest.h
XRPose.cpp Bug 1633725 - Improve WebXR Garbage Collection. Respect XRRigidTransform.inverse and XRView.transform [SameObject] requirements. r=kip,daoshengmu,jgilbert 2020-05-01 01:42:39 +00:00
XRPose.h Bug 1633725 - Improve WebXR Garbage Collection. Respect XRRigidTransform.inverse and XRView.transform [SameObject] requirements. r=kip,daoshengmu,jgilbert 2020-05-01 01:42:39 +00:00
XRReferenceSpace.cpp
XRReferenceSpace.h
XRRenderState.cpp Bug 1630170 - Delete XRWebGLLayer Framebuffer on XRSession presentation end r=kip,jgilbert,daoshengmu 2020-04-15 21:58:13 +00:00
XRRenderState.h Bug 1630170 - Delete XRWebGLLayer Framebuffer on XRSession presentation end r=kip,jgilbert,daoshengmu 2020-04-15 21:58:13 +00:00
XRRigidTransform.cpp Bug 1650714 - Part 2: Correct XRRigidTransform inverse math r=daoshengmu,kip,lsalzman 2020-07-10 22:01:11 +00:00
XRRigidTransform.h Bug 1641596 - Apply XRNativeOrigin transform to XRViewerPose base transform r=kip,daoshengmu 2020-05-28 18:00:15 +00:00
XRSession.cpp Bug 1656117 - Reduce include dependencies on nsRefreshDriver.h. r=mstange 2020-08-04 21:17:50 +00:00
XRSession.h Bug 1656117 - Reduce include dependencies on nsRefreshDriver.h. r=mstange 2020-08-04 21:17:50 +00:00
XRSpace.cpp Bug 1630007 - Apply XRSpace effective origin position and orientation using matrix multiplication. r=kip,daoshengmu 2020-04-15 22:05:26 +00:00
XRSpace.h Bug 1631635 - Implement IsPositionEmulated for XRInputSource. r=kip,imanol 2020-04-21 11:17:34 +00:00
XRSystem.cpp Bug 1648010 - Replace uses of NS_LITERAL_STRING/NS_LITERAL_CSTRING macros by _ns literals. r=geckoview-reviewers,jgilbert,agi,hsivonen,froydnj 2020-07-01 08:29:29 +00:00
XRSystem.h Bug 1628109 - Ensure that only one non-privileged (non-chrome) XRSession can be presenting at once r=daoshengmu 2020-04-09 01:22:52 +00:00
XRView.cpp Bug 1633725 - Improve WebXR Garbage Collection. Respect XRRigidTransform.inverse and XRView.transform [SameObject] requirements. r=kip,daoshengmu,jgilbert 2020-05-01 01:42:39 +00:00
XRView.h Bug 1633725 - Improve WebXR Garbage Collection. Respect XRRigidTransform.inverse and XRView.transform [SameObject] requirements. r=kip,daoshengmu,jgilbert 2020-05-01 01:42:39 +00:00
XRViewerPose.cpp Bug 1626570 - Improve handling of copying arrays in dom/vr/. r=kip 2020-05-06 11:46:55 +00:00
XRViewerPose.h Bug 1633725 - Improve WebXR Garbage Collection. Respect XRRigidTransform.inverse and XRView.transform [SameObject] requirements. r=kip,daoshengmu,jgilbert 2020-05-01 01:42:39 +00:00
XRViewport.cpp
XRViewport.h Bug 1633725 - Improve WebXR Garbage Collection. Respect XRRigidTransform.inverse and XRView.transform [SameObject] requirements. r=kip,daoshengmu,jgilbert 2020-05-01 01:42:39 +00:00
moz.build Bug 1631635 - Implement IsPositionEmulated for XRInputSource. r=kip,imanol 2020-04-21 11:17:34 +00:00