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 92da94fe533f82d51308b740d9fe1a991129fdd4..7c2cb12c7a08fe77533a5b078fba52bcddf4f5a4 100644 |
--- a/third_party/WebKit/Source/core/inspector/browser_protocol.json |
+++ b/third_party/WebKit/Source/core/inspector/browser_protocol.json |
@@ -670,6 +670,16 @@ |
{ "name": "type", "type": "string", "enum": ["portraitPrimary", "portraitSecondary", "landscapePrimary", "landscapeSecondary"], "description": "Orientation type." }, |
{ "name": "angle", "type": "integer", "description": "Orientation angle." } |
] |
+ }, |
+ { |
+ "id": "VirtualTimePolicy", |
+ "type": "string", |
+ "enum": [ |
+ "advance", |
+ "pause", |
+ "pauseIfNetworkFetchesPending" |
+ ], |
+ "description": "advance: If the scheduler runs out of immediate work, the virtual time base may fast forward to allow the next delayed task (if any) to run; pause: The virtual time base may not advance; pauseIfNetworkFetchesPending: The virtual time base may not advance if there are any pending resource fetches." |
} |
], |
"commands": [ |
@@ -761,6 +771,14 @@ |
{ "name": "result", "type": "boolean", "description": "True if emulation is supported." } |
], |
"handlers": ["browser"] |
+ }, |
+ { |
+ "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" } |
+ ], |
+ "hidden": true |
} |
] |
}, |