captured-mouse-events.tentative.idl (660B)
1 // https://screen-share.github.io/mouse-events/ 2 3 enum CaptureStartFocusBehavior { 4 "focus-captured-surface", 5 "no-focus-change" 6 }; 7 8 [Exposed=Window, SecureContext] 9 interface CaptureController : EventTarget { 10 constructor(); 11 undefined setFocusBehavior(CaptureStartFocusBehavior focusBehavior); 12 attribute EventHandler oncapturedmousechange; 13 }; 14 15 [Exposed=Window] 16 interface CapturedMouseEvent : Event { 17 constructor(DOMString type, optional CapturedMouseEventInit eventInitDict = {}); 18 readonly attribute long surfaceX; 19 readonly attribute long surfaceY; 20 }; 21 22 dictionary CapturedMouseEventInit : EventInit { 23 long surfaceX = -1; 24 long surfaceY = -1; 25 };