Bug 216181

Summary: [WebXR] Implement XRSession end event
Product: WebKit Reporter: Sergio Villar Senin <svillar>
Component: New BugsAssignee: Sergio Villar Senin <svillar>
Status: RESOLVED FIXED    
Severity: Normal CC: aperez, cgarcia, darin, husseinakor983, pnormand, svillar, webkit-bug-importer, youennf
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch darin: review+

Description Sergio Villar Senin 2020-09-04 09:23:02 PDT
[WebXR] Implement XRSession end event
Comment 1 Sergio Villar Senin 2020-09-04 09:35:54 PDT
Created attachment 407984 [details]
Patch
Comment 2 Darin Adler 2020-09-05 09:11:36 PDT
Comment on attachment 407984 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=407984&action=review

> Source/WebCore/Modules/webxr/XRSessionEvent.h:39
> +    static Ref<XRSessionEvent> create(const AtomString&, RefPtr<WebXRSession>&&);

In new code I suggest we start using the Init structures in our C++ code instead of having multiple constructors and create functions in all our event classes. I tried his and it seemed to come out pretty good but the patch to do it across the board is huge.
Comment 3 Sergio Villar Senin 2020-09-09 08:48:15 PDT
Comment on attachment 407984 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=407984&action=review

>> Source/WebCore/Modules/webxr/XRSessionEvent.h:39
>> +    static Ref<XRSessionEvent> create(const AtomString&, RefPtr<WebXRSession>&&);
> 
> In new code I suggest we start using the Init structures in our C++ code instead of having multiple constructors and create functions in all our event classes. I tried his and it seemed to come out pretty good but the patch to do it across the board is huge.

OK, I'll replace it before landing.
Comment 4 Sergio Villar Senin 2020-09-09 09:00:35 PDT
Committed r266782: <https://trac.webkit.org/changeset/266782>
Comment 5 Radar WebKit Bug Importer 2020-09-09 09:01:20 PDT
<rdar://problem/68575993>