// 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/compute-pressure/#dom-pressurestate
enum PressureState {
"nominal",
"fair",
"serious",
"critical"
};
// https://w3c.github.io/compute-pressure/#the-pressurerecord-interface
[
Exposed=(DedicatedWorker,SharedWorker,Window),
RuntimeEnabled=ComputePressure,
SecureContext
] interface PressureRecord {
readonly attribute PressureSource source;
readonly attribute PressureState state;
readonly attribute DOMHighResTimeStamp time;
[CallWith=ScriptState] object toJSON();
};