chromium/third_party/blink/renderer/modules/compute_pressure/testing/internals_compute_pressure.idl

// Copyright 2024 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

[
    ImplementedAs=InternalsComputePressure
] partial interface Internals {
  [CallWith=ScriptState] Promise<undefined> createVirtualPressureSource(PressureSource source, CreateVirtualPressureSourceOptions options);
  [CallWith=ScriptState] Promise<undefined> removeVirtualPressureSource(PressureSource source);
  [CallWith=ScriptState] Promise<undefined> updateVirtualPressureSource(PressureSource source, PressureState state);
};