diff options
author | Manish Goregaokar <manishsmail@gmail.com> | 2020-01-13 15:31:31 +0530 |
---|---|---|
committer | Manish Goregaokar <manishsmail@gmail.com> | 2020-01-21 15:47:30 -0800 |
commit | e0135fe7832382b01d3269f6d231477196d09b4f (patch) | |
tree | 85ec8da24d41e5f36ab900301cf0009fd66ed5f3 /components/script/dom/fakexrdevice.rs | |
parent | 9c34a6585b50b7c20468060dafca717d1d363e6c (diff) | |
download | servo-e0135fe7832382b01d3269f6d231477196d09b4f.tar.gz servo-e0135fe7832382b01d3269f6d231477196d09b4f.zip |
Support profiles
Diffstat (limited to 'components/script/dom/fakexrdevice.rs')
-rw-r--r-- | components/script/dom/fakexrdevice.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/components/script/dom/fakexrdevice.rs b/components/script/dom/fakexrdevice.rs index f43b0b1155b..dd599d4a3a4 100644 --- a/components/script/dom/fakexrdevice.rs +++ b/components/script/dom/fakexrdevice.rs @@ -205,13 +205,16 @@ impl FakeXRDeviceMethods for FakeXRDevice { None }; - // XXXManishearth deal with profiles, supportedButtons, selection* + let profiles = init.profiles.iter().cloned().map(String::from).collect(); + + // XXXManishearth deal with supportedButtons and selection* let source = InputSource { handedness, target_ray_mode, id, supports_grip: true, + profiles, }; let init = MockInputInit { |