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

Unified Diff: third_party/WebKit/Source/core/inspector/browser_protocol.json

Issue 2185033002: Emulation.setVirtualTimePolicy to have an optional virtual time budge (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Simplify patch Created 4 years, 5 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/core/inspector/browser_protocol.json
diff --git a/third_party/WebKit/Source/core/inspector/browser_protocol.json b/third_party/WebKit/Source/core/inspector/browser_protocol.json
index 358504ae9c970712781a22411a33939d98f4093d..6ab520be95f5fea712e0d06bc22100d2f81a812d 100644
--- a/third_party/WebKit/Source/core/inspector/browser_protocol.json
+++ b/third_party/WebKit/Source/core/inspector/browser_protocol.json
@@ -814,10 +814,17 @@
"name": "setVirtualTimePolicy",
"description": "Turns on virtual time for all frames (replacing real-time with a synthetic time source) and sets the current virtual time policy.",
"parameters": [
- { "name": "policy", "$ref": "VirtualTimePolicy" }
+ { "name": "policy", "$ref": "VirtualTimePolicy" },
+ { "name": "virtualTimeBudgetSeconds", "type": "number", "optional": true, "description": "If set, after virtualTimeBudgetSeconds have elapsed virtual time pauses and a virtualTimeBudgetExpired event is sent." }
],
"hidden": true
}
+ ],
+ "events": [
+ {
+ "name": "virtualTimeBudgetExpired",
+ "description": "Notification sent after the virual time budget for the current VirtualTimePolicy has run out."
+ }
]
},
{

Powered by Google App Engine
This is Rietveld 408576698