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

Unified Diff: Source/devtools/protocol.json

Issue 1195793008: [DevTools] Implement screen orientation override. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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: Source/devtools/protocol.json
diff --git a/Source/devtools/protocol.json b/Source/devtools/protocol.json
index e4a239b45c1f67cd352013d5a0e576ab979b0b2f..a17aa105c978e01f010c1ba8db4cc23bd12259ec 100644
--- a/Source/devtools/protocol.json
+++ b/Source/devtools/protocol.json
@@ -4648,6 +4648,32 @@
]
},
{
+ "domain": "ScreenOrientation",
+ "hidden": true,
+ "types": [
+ {
+ "id": "OrientationType",
+ "type": "string",
+ "enum": ["portraitPrimary", "portraitSecondary", "landscapePrimary", "landscapeSecondary"],
+ "description": "Orientation type"
+ }
+ ],
+ "commands": [
+ {
+ "name": "setScreenOrientationOverride",
+ "description": "Overrides the Screen Orientation.",
+ "parameters": [
+ { "name": "angle", "type": "integer", "description": "Orientation angle" },
+ { "name": "type", "$ref": "OrientationType", "description": "Orientation type" }
+ ]
+ },
+ {
+ "name": "clearScreenOrientationOverride",
+ "description": "Clears the overridden Screen Orientation."
+ }
+ ]
+ },
+ {
"domain": "Tracing",
"commands": [
{

Powered by Google App Engine
This is Rietveld 408576698