testing/web-platform/tests/interfaces/screen-capture.idl
author Luke Bjerring <lukebjerring@users.noreply.github.com>
Fri, 10 Aug 2018 16:05:28 +0000
changeset 486242 b8f99b99c563ec06ce7534c30f88ffa1e388f50f
parent 486215 63a59e79c1dd39c832754b6fb243e703cec0c8c3
child 486816 cfbe737d278256427b4818dd231c0e538afd015e
permissions -rw-r--r--
Bug 1480560 [wpt PR 12284] - Update the screen-capture IDL file, a=testonly Automatic update from web-platform-testsAdd the screen-capture IDL file + test (#12284) -- wpt-commits: ae2f8dd7e531d6da7a651021dd00af9f3082d58d wpt-pr: 12284

// GENERATED CONTENT - DO NOT EDIT
// Content of this file was automatically extracted from the
// "Screen Capture" spec.
// See: https://w3c.github.io/mediacapture-screen-share/

partial interface Navigator {
    Promise<MediaStream> getDisplayMedia(optional MediaStreamConstraints constraints);
};

partial dictionary MediaTrackConstraintSet {
             ConstrainDOMString displaySurface;
             ConstrainBoolean logicalSurface;
             ConstrainDOMString cursor;
};

enum DisplayCaptureSurfaceType {
    "monitor",
    "window",
    "application",
    "browser"
};

enum CursorCaptureConstraint {
    "never",
    "always",
    "motion"
};