| // 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); |
| }; |