Automatic update from web-platform-tests
WebXR - mojo - rename XRReferenceSpaceCategory to XRReferenceSpaceType
This is a mechanical change to rename the mojo type and additional misc
changes requested as a followup for CL https://crrev.com/c/2203277.
Changes:
- s/XRReferenceSpaceCategory/XRReferenceSpaceType, along with renaming
few variable names from "*category" to "*type"
- changed mojo type from now-deprecated macro-style naming to
constant-style naming
- refactored few lines of code that compute reference space appropriate
for anchor creation into XRSession::GetStationaryReferenceSpace(), used
both in XRFrame and in XRHitTestResult for anchor creation
- added `using` in xr_reference_space.cc to help with readability of a
quite-long type to something shorter (`ReferenceSpaceType` instead of
`device::mojom::blink::XRReferenceSpaceType`) - same directive could be
introduced in other files but the occurrences of the offending type are
not that common elsewhere
- refactored `XRReferenceSpace::NativeFromMojo()` since 3 `case`s were
identical or very similar
There should be no functional change.
Change-Id: I8e8efdc036f11347f8d9159fbaede44634c6eb78
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2229622
Reviewed-by: Klaus Weidner <klausw@chromium.org>
Reviewed-by: Brandon Jones <bajones@chromium.org>
Reviewed-by: Alexander Cooper <alcooper@chromium.org>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Commit-Queue: Piotr Bialecki <bialpio@chromium.org>
Cr-Commit-Position: refs/heads/master@{#775189}
--
wpt-commits: 70225fa88786126e19a9010fc803d95eeea0994e
wpt-pr: 23994
An explanation of the Mozilla Source Code Directory Structure and links to
project pages with documentation can be found at:
https://firefox-source-docs.mozilla.org/contributing/directory_structure.html
For information on how to build Mozilla from the source code and create the patch see:
https://firefox-source-docs.mozilla.org/contributing/how_to_contribute_firefox.html
If you have a question about developing Mozilla, and can't find the solution
on https://developer.mozilla.org, you can try asking your question on Matrix at chat.mozilla.org in `Introduction` (https://chat.mozilla.org/#/room/#introduction:mozilla.org) channel.
Nightly development builds can be downloaded from:
https://archive.mozilla.org/pub/firefox/nightly/latest-mozilla-central/
- or -
https://www.mozilla.org/firefox/channel/desktop/#nightly
Keep in mind that nightly builds, which are used by Mozilla developers for
testing, may be buggy.