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

Unified Diff: Source/devtools/protocol.json

Issue 351303003: [DevTools] Switch from DIP to CSS pixels in device mode. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 f69f70587dabb48645605aa7dffb18d720f55f95..fb9e605287ff807d39d47e3a84ba1e71977aa1f5 100644
--- a/Source/devtools/protocol.json
+++ b/Source/devtools/protocol.json
@@ -190,6 +190,19 @@
"hidden": true
},
{
+ "id": "Viewport",
+ "type": "object",
+ "description": "Visible page viewport",
+ "properties": [
+ { "name": "scrollX", "type": "number", "hidden": true, "description": "X scroll offset in CSS pixels." },
lushnikov 2014/06/26 20:21:46 I believe there's no need to specify "hidden" for
dgozman 2014/06/27 11:07:00 Done.
+ { "name": "scrollY", "type": "number", "hidden": true, "description": "Y scroll offset in CSS pixels." },
+ { "name": "contentsWidth", "type": "number", "hidden": true, "description": "Contents width in CSS pixels." },
+ { "name": "contentsHeight", "type": "number", "hidden": true, "description": "Contents height in CSS pixels." },
+ { "name": "pageScaleFactor", "type": "number", "hidden": true, "description": "Page scale factor." }
+ ],
+ "hidden": true
+ },
+ {
"id": "ScreencastFrameMetadata",
"type": "object",
"description": "Screencast frame metadata",
@@ -648,6 +661,14 @@
],
"hidden": true,
"handlers": ["browser"]
+ },
+ {
+ "name": "viewportChanged",
+ "description": "Fired when a visible page viewport has changed.",
+ "parameters": [
+ { "name": "viewport", "$ref": "Viewport", "description": "Viewport description." }
+ ],
+ "hidden": true
}
]
},

Powered by Google App Engine
This is Rietveld 408576698