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

Unified Diff: Source/devtools/protocol.json

Issue 1195793008: [DevTools] Implement screen orientation override. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Restore test 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
« no previous file with comments | « Source/devtools/front_end/emulation/ResponsiveDesignView.js ('k') | Source/modules/modules.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/protocol.json
diff --git a/Source/devtools/protocol.json b/Source/devtools/protocol.json
index 0ea7455e901efa3ced3bf93a956123aa20332272..46bedd5ee92fd76aff2ae06c879a7b0cdf25c636 100644
--- a/Source/devtools/protocol.json
+++ b/Source/devtools/protocol.json
@@ -4660,6 +4660,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": [
{
« no previous file with comments | « Source/devtools/front_end/emulation/ResponsiveDesignView.js ('k') | Source/modules/modules.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698