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

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

Issue 2109843003: Adds enableVirtualTime and setVirtualTimePolicy To Emulation domain. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix layering issue Created 4 years, 6 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 a27991a3a75b2ca4fa629da9c3575e835791833b..d69c61a9373b66a4d939f2707f50a285460c744d 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": "For a description of the virtual time policies see: https://docs.google.com/document/d/1y9KDT_ZEzT7pBeY6uzVt1dgKlwc1OB_vY4NZO1zBQmo"
}
],
"commands": [
@@ -761,6 +771,19 @@
{ "name": "result", "type": "boolean", "description": "True if emulation is supported." }
],
"handlers": ["browser"]
+ },
+ {
+ "name": "enableVirtualTime",
pfeldman 2016/07/01 15:14:13 this should either be setVirtualTimeEnabled(bool)
alex clarke (OOO till 29th) 2016/07/01 15:53:23 I know where you're coming from but I'm not sure i
+ "description": "Turns on virtual time for all frames, replacing real-time with a synthetic time source.",
+ "hidden": true
+ },
+ {
+ "name": "setVirtualTimePolicy",
+ "description": "Sets the current virtual time policy for all frames.",
+ "parameters": [
+ { "name": "policy", "$ref": "VirtualTimePolicy" }
+ ],
+ "hidden": true
}
]
},

Powered by Google App Engine
This is Rietveld 408576698