blob: 09131f7d766a20b7d6086997ec8defc605edc0cd [file] [log] [blame]
// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// https://w3c.github.io/mediacapture-screen-share/#dom-capturecontroller
enum CaptureStartFocusBehavior {
"focus-captured-surface",
"no-focus-change"
};
[
Exposed=Window,
SecureContext,
RuntimeEnabled=CaptureController
]
interface CaptureController {
[CallWith=ExecutionContext] constructor();
[
RaisesException,
MeasureAs=ConditionalFocus
]
void setFocusBehavior(CaptureStartFocusBehavior focusBehavior);
};