Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(145)

Unified Diff: third_party/WebKit/Source/modules/budget/BudgetState.idl

Issue 2231873002: Added budget_service.mojom (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@budget_api
Patch Set: Add a connection error handler to BudgetService Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/budget/BudgetState.idl
diff --git a/third_party/WebKit/Source/modules/budget/BudgetChunk.idl b/third_party/WebKit/Source/modules/budget/BudgetState.idl
similarity index 67%
rename from third_party/WebKit/Source/modules/budget/BudgetChunk.idl
rename to third_party/WebKit/Source/modules/budget/BudgetState.idl
index a8ffa94284ad535e9970470793859956f1c95209..cd68388915e776aedd70f5a2aa08dde0c9535d1b 100644
--- a/third_party/WebKit/Source/modules/budget/BudgetChunk.idl
+++ b/third_party/WebKit/Source/modules/budget/BudgetState.idl
@@ -5,7 +5,9 @@
// https://beverloo.github.io/budget-api/#budget-state-interface
// TODO(harkness): Link WICG spec when it exists.
-dictionary BudgetChunk {
- double amount;
- double expiration;
+[
+ RuntimeEnabled=Budget
+] interface BudgetState {
+ readonly attribute double budgetAt;
+ readonly attribute DOMTimeStamp time;
};

Powered by Google App Engine
This is Rietveld 408576698