summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/interfaces/captured-mouse-events.tentative.idl
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/interfaces/captured-mouse-events.tentative.idl')
-rw-r--r--testing/web-platform/tests/interfaces/captured-mouse-events.tentative.idl25
1 files changed, 25 insertions, 0 deletions
diff --git a/testing/web-platform/tests/interfaces/captured-mouse-events.tentative.idl b/testing/web-platform/tests/interfaces/captured-mouse-events.tentative.idl
new file mode 100644
index 0000000000..7b081cd9fd
--- /dev/null
+++ b/testing/web-platform/tests/interfaces/captured-mouse-events.tentative.idl
@@ -0,0 +1,25 @@
+// https://screen-share.github.io/mouse-events/
+
+enum CaptureStartFocusBehavior {
+ "focus-captured-surface",
+ "no-focus-change"
+};
+
+[Exposed=Window, SecureContext]
+interface CaptureController : EventTarget {
+ constructor();
+ undefined setFocusBehavior(CaptureStartFocusBehavior focusBehavior);
+ attribute EventHandler oncapturedmousechange;
+};
+
+[Exposed=Window]
+interface CapturedMouseEvent : Event {
+ constructor(DOMString type, optional CapturedMouseEventInit eventInitDict = {});
+ readonly attribute long surfaceX;
+ readonly attribute long surfaceY;
+};
+
+dictionary CapturedMouseEventInit : EventInit {
+ long surfaceX = -1;
+ long surfaceY = -1;
+};