https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 11d564dd8ba7b46b0f40b8641c40cd50d2876cd4 authored by Stephen McGruer on 14 April 2018, 15:31:17 UTC
Reland "Web Animations: Fix bugs in procedure to process a keyframes argument"
Tip revision: 11d564d
budget-api.idl
// GENERATED CONTENT - DO NOT EDIT
// Content of this file was automatically extracted from the budget-api spec.
// See https://wicg.github.io/budget-api/

[Exposed=Window]
partial interface Navigator {
    [SameObject] readonly attribute BudgetService budget;
};

[Exposed=Worker]
partial interface WorkerNavigator {
    [SameObject] readonly attribute BudgetService budget;
};

[Exposed=(Window,Worker)]
interface BudgetService {
    Promise<double> getCost(OperationType operation);
    Promise<sequence<BudgetState>> getBudget();

    Promise<boolean> reserve(OperationType operation);
};

[Exposed=(Window,Worker)]
interface BudgetState {
  readonly attribute double budgetAt;
  readonly attribute DOMTimeStamp time;
};

enum OperationType {
  "silent-push"
};
back to top