Changeset 262720 in webkit
- Timestamp:
- Jun 8, 2020 9:17:29 AM (4 years ago)
- Location:
- trunk
- Files:
-
- 3 added
- 11 edited
- 2 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r262716 r262720 1 2020-06-05 Sergio Villar Senin <svillar@igalia.com> 2 3 [WebXR] Add missing interfaces from the AR module 4 https://bugs.webkit.org/show_bug.cgi?id=212826 5 6 Reviewed by Youenn Fablet. 7 8 * platform/wpe/TestExpectations: Unskipped 3 tests which are passing now. 9 1 10 2020-06-03 Sergio Villar Senin <svillar@igalia.com> 2 11 -
trunk/LayoutTests/imported/w3c/ChangeLog
r262716 r262720 1 2020-06-05 Sergio Villar Senin <svillar@igalia.com> 2 3 [WebXR] Add missing interfaces from the AR module 4 https://bugs.webkit.org/show_bug.cgi?id=212826 5 6 Reviewed by Youenn Fablet. 7 8 Added expectations. 9 10 * web-platform-tests/webxr/ar-module/idlharness.https.window-expected.txt: Added. 11 * web-platform-tests/webxr/ar-module/xrDevice_isSessionSupported_immersive-ar.https-expected.txt: Added. 12 * web-platform-tests/webxr/ar-module/xrDevice_requestSession_immersive-ar.https-expected.txt: Added. 13 1 14 2020-06-01 Sergio Villar Senin <svillar@igalia.com> 2 15 -
trunk/LayoutTests/platform/wpe/TestExpectations
r262713 r262720 960 960 webkit.org/b/209859 [ Release ] imported/w3c/web-platform-tests/webxr/xrSession_requestAnimationFrame_callback_calls.https.html [ Pass ] 961 961 webkit.org/b/209859 imported/w3c/web-platform-tests/webxr/xrSession_requestReferenceSpace.https.html [ Pass ] 962 webkit.org/b/209859 imported/w3c/web-platform-tests/webxr/ar-module/idlharness.https.window.html [ Pass ] 963 webkit.org/b/209859 imported/w3c/web-platform-tests/webxr/ar-module/xrDevice_isSessionSupported_immersive-ar.https.html [ Pass ] 964 webkit.org/b/209859 imported/w3c/web-platform-tests/webxr/ar-module/xrDevice_requestSession_immersive-ar.https.html [ Pass ] 962 965 963 966 # Passing since r259532. -
trunk/Source/WebCore/CMakeLists.txt
r262695 r262720 1225 1225 Modules/webxr/XRInputSourceEvent.idl 1226 1226 Modules/webxr/XRInputSourcesChangeEvent.idl 1227 Modules/webxr/XRInteractionMode.idl 1227 1228 Modules/webxr/XRReferenceSpaceEvent.idl 1228 1229 Modules/webxr/XRReferenceSpaceType.idl -
trunk/Source/WebCore/ChangeLog
r262718 r262720 1 2020-06-05 Sergio Villar Senin <svillar@igalia.com> 2 3 [WebXR] Add missing interfaces from the AR module 4 https://bugs.webkit.org/show_bug.cgi?id=212826 5 6 Reviewed by Youenn Fablet. 7 8 Added the XRInteractionMode partial interface from the WebXR AR module spec. This spec 9 https://immersive-web.github.io/webxr-ar-module/ expands the WebXR Device API with 10 functionality available in AR hardware. 11 12 Some WebXR wpt tests are now passing. 13 14 * CMakeLists.txt: Added new files. 15 * DerivedSources.make: Ditto. 16 * Modules/webxr/WebXRSession.cpp: 17 (WebCore::WebXRSession::interactionMode const): Added. 18 * Modules/webxr/WebXRSession.h: Added interactionMode attribute and getter; 19 * Modules/webxr/WebXRSession.idl: Added interactionMode attribute; 20 * Modules/webxr/XRInteractionMode.h: Added. 21 * Modules/webxr/XRInteractionMode.idl: Added. 22 * Sources.txt: Added new files. 23 * WebCore.xcodeproj/project.pbxproj: Ditto. 24 1 25 2020-05-29 Sergio Villar Senin <svillar@igalia.com> 2 26 -
trunk/Source/WebCore/DerivedSources.make
r262682 r262720 517 517 $(WebCore)/Modules/webxr/XRInputSourceEvent.idl \ 518 518 $(WebCore)/Modules/webxr/XRInputSourcesChangeEvent.idl \ 519 $(WebCore)/Modules/webxr/XRInteractionMode.idl \ 519 520 $(WebCore)/Modules/webxr/XRReferenceSpaceEvent.idl \ 520 521 $(WebCore)/Modules/webxr/XRReferenceSpaceType.idl \ -
trunk/Source/WebCore/Modules/webxr/WebXRSession.cpp
r262718 r262720 67 67 } 68 68 69 XRInteractionMode WebXRSession::interactionMode() const 70 { 71 return m_interactionMode; 72 } 73 69 74 XRVisibilityState WebXRSession::visibilityState() const 70 75 { -
trunk/Source/WebCore/Modules/webxr/WebXRSession.h
r262718 r262720 37 37 #include "XREnvironmentBlendMode.h" 38 38 #include "XRFrameRequestCallback.h" 39 #include "XRInteractionMode.h" 39 40 #include "XRReferenceSpaceType.h" 40 41 #include "XRSessionMode.h" … … 65 66 66 67 XREnvironmentBlendMode environmentBlendMode() const; 68 XRInteractionMode interactionMode() const; 67 69 XRVisibilityState visibilityState() const; 68 70 const WebXRRenderState& renderState() const; … … 100 102 101 103 XREnvironmentBlendMode m_environmentBlendMode; 104 XRInteractionMode m_interactionMode; 102 105 XRVisibilityState m_visibilityState; 103 106 RefPtr<WebXRInputSourceArray> m_inputSources; -
trunk/Source/WebCore/Modules/webxr/WebXRSession.idl
r262718 r262720 33 33 ] interface WebXRSession : EventTarget { 34 34 // Attributes 35 readonly attribute XRInteractionMode interactionMode; 35 36 readonly attribute XREnvironmentBlendMode environmentBlendMode; 36 37 readonly attribute XRVisibilityState visibilityState; -
trunk/Source/WebCore/Modules/webxr/XRInteractionMode.h
r262719 r262720 24 24 */ 25 25 26 [ 27 EnabledAtRuntime=WebXR, 28 Conditional=WEBXR, 29 ActiveDOMObject, 30 SecureContext, 31 Exposed=Window, 32 InterfaceName=XRSession 33 ] interface WebXRSession : EventTarget { 34 // Attributes 35 readonly attribute XREnvironmentBlendMode environmentBlendMode; 36 readonly attribute XRVisibilityState visibilityState; 37 [SameObject] readonly attribute WebXRRenderState renderState; 38 [SameObject] readonly attribute WebXRInputSourceArray inputSources; 26 #pragma once 39 27 40 // Methods 41 void updateRenderState(optional XRRenderStateInit stateInit); 42 [NewObject] Promise<WebXRReferenceSpace> requestReferenceSpace(XRReferenceSpaceType type); 28 #if ENABLE(WEBXR) 43 29 44 unsigned long requestAnimationFrame(XRFrameRequestCallback callback); 45 void cancelAnimationFrame(unsigned long handle); 30 namespace WebCore { 46 31 47 Promise<void> end(); 32 enum class XRInteractionMode { 33 ScreenSpace, 34 WorldSpace 35 }; 48 36 49 // Events 50 attribute EventHandler onend; 51 attribute EventHandler onselect; 52 attribute EventHandler oninputsourceschange; 53 attribute EventHandler onselectstart; 54 attribute EventHandler onselectend; 55 attribute EventHandler onsqueeze; 56 attribute EventHandler onsqueezestart; 57 attribute EventHandler onsqueezeend; 58 attribute EventHandler onvisibilitychange; 59 }; 37 } // namespace WebCore 38 39 #endif // ENABLE(WEBXR) -
trunk/Source/WebCore/Modules/webxr/XRInteractionMode.idl
r262719 r262720 26 26 [ 27 27 EnabledAtRuntime=WebXR, 28 Conditional=WEBXR, 29 ActiveDOMObject, 30 SecureContext, 31 Exposed=Window, 32 InterfaceName=XRSession 33 ] interface WebXRSession : EventTarget { 34 // Attributes 35 readonly attribute XREnvironmentBlendMode environmentBlendMode; 36 readonly attribute XRVisibilityState visibilityState; 37 [SameObject] readonly attribute WebXRRenderState renderState; 38 [SameObject] readonly attribute WebXRInputSourceArray inputSources; 39 40 // Methods 41 void updateRenderState(optional XRRenderStateInit stateInit); 42 [NewObject] Promise<WebXRReferenceSpace> requestReferenceSpace(XRReferenceSpaceType type); 43 44 unsigned long requestAnimationFrame(XRFrameRequestCallback callback); 45 void cancelAnimationFrame(unsigned long handle); 46 47 Promise<void> end(); 48 49 // Events 50 attribute EventHandler onend; 51 attribute EventHandler onselect; 52 attribute EventHandler oninputsourceschange; 53 attribute EventHandler onselectstart; 54 attribute EventHandler onselectend; 55 attribute EventHandler onsqueeze; 56 attribute EventHandler onsqueezestart; 57 attribute EventHandler onsqueezeend; 58 attribute EventHandler onvisibilitychange; 28 Conditional=WEBXR 29 ] enum XRInteractionMode { 30 "screen-space", 31 "world-space" 59 32 }; -
trunk/Source/WebCore/Sources.txt
r262695 r262720 3610 3610 JSWebXRInputSource.cpp 3611 3611 JSWebXRInputSourceArray.cpp 3612 JSXRInteractionMode.cpp 3612 3613 JSXRInputSourceEvent.cpp 3613 3614 JSXRInputSourcesChangeEvent.cpp -
trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj
r262710 r262720 4784 4784 E1284AE110447D4500EAEB52 /* PageTransitionEvent.h in Headers */ = {isa = PBXBuildFile; fileRef = E1284AE010447D4500EAEB52 /* PageTransitionEvent.h */; }; 4785 4785 E1284BB110449FFA00EAEB52 /* JSPageTransitionEvent.h in Headers */ = {isa = PBXBuildFile; fileRef = E1284BAF10449FFA00EAEB52 /* JSPageTransitionEvent.h */; }; 4786 E12A9F4A248A99E2003F06C8 /* XRInteractionMode.h in Headers */ = {isa = PBXBuildFile; fileRef = E12A9F48248A99E0003F06C8 /* XRInteractionMode.h */; }; 4786 4787 E12DE7181E4B74A600F9ACCF /* GridTrackSizingAlgorithm.h in Headers */ = {isa = PBXBuildFile; fileRef = E12DE7161E4B748700F9ACCF /* GridTrackSizingAlgorithm.h */; }; 4787 4788 E12EDB7B0B308A78002704B6 /* EventTarget.h in Headers */ = {isa = PBXBuildFile; fileRef = E12EDB7A0B308A78002704B6 /* EventTarget.h */; settings = {ATTRIBUTES = (Private, ); }; }; … … 15190 15191 E1284BAF10449FFA00EAEB52 /* JSPageTransitionEvent.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSPageTransitionEvent.h; sourceTree = "<group>"; }; 15191 15192 E1284BB010449FFA00EAEB52 /* JSPageTransitionEvent.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSPageTransitionEvent.cpp; sourceTree = "<group>"; }; 15193 E12A9F46248A99DF003F06C8 /* XRInteractionMode.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = XRInteractionMode.idl; sourceTree = "<group>"; }; 15194 E12A9F48248A99E0003F06C8 /* XRInteractionMode.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = XRInteractionMode.h; sourceTree = "<group>"; }; 15192 15195 E12DE7151E4B748700F9ACCF /* GridTrackSizingAlgorithm.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = GridTrackSizingAlgorithm.cpp; sourceTree = "<group>"; }; 15193 15196 E12DE7161E4B748700F9ACCF /* GridTrackSizingAlgorithm.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GridTrackSizingAlgorithm.h; sourceTree = "<group>"; }; … … 27538 27541 E1EE8AF92412B17000E794D6 /* XRInputSourcesChangeEvent.h */, 27539 27542 E1EE8AE42412B17000E794D6 /* XRInputSourcesChangeEvent.idl */, 27543 E12A9F48248A99E0003F06C8 /* XRInteractionMode.h */, 27544 E12A9F46248A99DF003F06C8 /* XRInteractionMode.idl */, 27540 27545 E1EE8B162412B17000E794D6 /* XRPose.idl */, 27541 27546 E1EE8AF62412B17000E794D6 /* XRReferenceSpace.idl */, … … 33898 33903 E1EE8B9F2413195000E794D6 /* XRInputSourceEvent.h in Headers */, 33899 33904 E1EE8B992413195000E794D6 /* XRInputSourcesChangeEvent.h in Headers */, 33905 E12A9F4A248A99E2003F06C8 /* XRInteractionMode.h in Headers */, 33900 33906 E1EE8B842413191F00E794D6 /* XRReferenceSpaceEvent.h in Headers */, 33901 33907 E1EE8B772413191F00E794D6 /* XRReferenceSpaceType.h in Headers */,
Note: See TracChangeset
for help on using the changeset viewer.