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

Side by Side Diff: third_party/WebKit/Source/core/inspector/browser_protocol.json

Issue 2438023003: devtools: Adds Page.getLayoutMetrics. (Closed)
Patch Set: address comments. Created 4 years, 1 month 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 unified diff | Download patch
« no previous file with comments | « third_party/WebKit/Source/core/inspector/InspectorPageAgent.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 { 1 {
2 "version": { "major": "1", "minor": "2" }, 2 "version": { "major": "1", "minor": "2" },
3 "domains": [{ 3 "domains": [{
4 "domain": "Inspector", 4 "domain": "Inspector",
5 "experimental": true, 5 "experimental": true,
6 "types": [], 6 "types": [],
7 "commands": [ 7 "commands": [
8 { 8 {
9 "name": "enable", 9 "name": "enable",
10 "description": "Enables inspector domain notifications.", 10 "description": "Enables inspector domain notifications.",
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 { "name": "column", "type": "integer", "description": "Error c olumn." } 176 { "name": "column", "type": "integer", "description": "Error c olumn." }
177 ], 177 ],
178 "experimental": true 178 "experimental": true
179 }, 179 },
180 { 180 {
181 "id": "NavigationResponse", 181 "id": "NavigationResponse",
182 "description": "Proceed: allow the navigation; Cancel: cancel th e navigation; CancelAndIgnore: cancels the navigation and makes the requester of the navigation acts like the request was never made.", 182 "description": "Proceed: allow the navigation; Cancel: cancel th e navigation; CancelAndIgnore: cancels the navigation and makes the requester of the navigation acts like the request was never made.",
183 "type": "string", 183 "type": "string",
184 "enum": ["Proceed", "Cancel", "CancelAndIgnore"], 184 "enum": ["Proceed", "Cancel", "CancelAndIgnore"],
185 "experimental": true 185 "experimental": true
186 },
187 {
188 "id": "LayoutViewport",
189 "type": "object",
190 "description": "Layout viewport position and dimensions.",
191 "experimental": true,
192 "properties": [
193 { "name": "pageX", "type": "integer", "description": "Horizo ntal offset relative to the document (CSS pixels)." },
194 { "name": "pageY", "type": "integer", "description": "Vertic al offset relative to the document (CSS pixels)." },
195 { "name": "clientWidth", "type": "integer", "description": " Width (CSS pixels), excludes scrollbar if present." },
196 { "name": "clientHeight", "type": "integer", "description": "Height (CSS pixels), excludes scrollbar if present." }
197 ]
198 },
199 {
200 "id": "VisualViewport",
201 "type": "object",
202 "description": "Visual viewport position, dimensions, and scale. ",
203 "experimental": true,
204 "properties": [
205 { "name": "offsetX", "type": "number", "description": "Horiz ontal offset relative to the layout viewport (CSS pixels)." },
206 { "name": "offsetY", "type": "number", "description": "Verti cal offset relative to the layout viewport (CSS pixels)." },
207 { "name": "pageX", "type": "number", "description": "Horizon tal offset relative to the document (CSS pixels)." },
208 { "name": "pageY", "type": "number", "description": "Vertica l offset relative to the document (CSS pixels)." },
209 { "name": "clientWidth", "type": "number", "description": "W idth (CSS pixels), excludes scrollbar if present." },
210 { "name": "clientHeight", "type": "number", "description": " Height (CSS pixels), excludes scrollbar if present." },
211 { "name": "scale", "type": "number", "description": "Scale r elative to the ideal viewport (size at width=device-width)." }
212 ]
186 } 213 }
187 ], 214 ],
188 "commands": [ 215 "commands": [
189 { 216 {
190 "name": "enable", 217 "name": "enable",
191 "description": "Enables page domain notifications.", 218 "description": "Enables page domain notifications.",
192 "handlers": ["browser", "renderer"] 219 "handlers": ["browser", "renderer"]
193 }, 220 },
194 { 221 {
195 "name": "disable", 222 "name": "disable",
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after
502 }, 529 },
503 { 530 {
504 "name": "processNavigation", 531 "name": "processNavigation",
505 "parameters": [ 532 "parameters": [
506 { "name": "response", "$ref": "NavigationResponse" }, 533 { "name": "response", "$ref": "NavigationResponse" },
507 { "name": "navigationId", "type": "integer" } 534 { "name": "navigationId", "type": "integer" }
508 ], 535 ],
509 "description": "Should be sent in response to a navigationReques ted or a redirectRequested event, telling the browser how to handle the navigati on.", 536 "description": "Should be sent in response to a navigationReques ted or a redirectRequested event, telling the browser how to handle the navigati on.",
510 "experimental": true, 537 "experimental": true,
511 "handlers": ["browser"] 538 "handlers": ["browser"]
539 },
540 {
541 "name": "getLayoutMetrics",
542 "description": "Returns metrics relating to the layouting of the page, such as viewport bounds/scale.",
543 "experimental": true,
544 "returns": [
545 { "name": "layoutViewport", "$ref": "LayoutViewport", "descr iption": "Metrics relating to the layout viewport." },
546 { "name": "visualViewport", "$ref": "VisualViewport", "descr iption": "Metrics relating to the visual viewport." }
547 ]
512 } 548 }
513 ], 549 ],
514 "events": [ 550 "events": [
515 { 551 {
516 "name": "domContentEventFired", 552 "name": "domContentEventFired",
517 "parameters": [ 553 "parameters": [
518 { "name": "timestamp", "type": "number" } 554 { "name": "timestamp", "type": "number" }
519 ] 555 ]
520 }, 556 },
521 { 557 {
(...skipping 4133 matching lines...) Expand 10 before | Expand all | Expand 10 after
4655 "description": "Informs that port was successfully bound and got a specified connection id.", 4691 "description": "Informs that port was successfully bound and got a specified connection id.",
4656 "parameters": [ 4692 "parameters": [
4657 {"name": "port", "type": "integer", "description": "Port num ber that was successfully bound." }, 4693 {"name": "port", "type": "integer", "description": "Port num ber that was successfully bound." },
4658 {"name": "connectionId", "type": "string", "description": "C onnection id to be used." } 4694 {"name": "connectionId", "type": "string", "description": "C onnection id to be used." }
4659 ], 4695 ],
4660 "handlers": ["browser"] 4696 "handlers": ["browser"]
4661 } 4697 }
4662 ] 4698 ]
4663 }] 4699 }]
4664 } 4700 }
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/inspector/InspectorPageAgent.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698