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

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

Issue 2226323002: Resize DevTools target frames. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 unified diff | Download patch
« no previous file with comments | « content/browser/devtools/protocol/browser_handler.cc ('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": "1" }, 2 "version": { "major": "1", "minor": "1" },
3 "domains": [{ 3 "domains": [{
4 "domain": "Inspector", 4 "domain": "Inspector",
5 "hidden": true, 5 "hidden": 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 4301 matching lines...) Expand 10 before | Expand all | Expand 10 after
4312 "returns": [ 4312 "returns": [
4313 { "name": "success", "type": "boolean" } 4313 { "name": "success", "type": "boolean" }
4314 ], 4314 ],
4315 "handlers": ["browser"] 4315 "handlers": ["browser"]
4316 }, 4316 },
4317 { 4317 {
4318 "name": "createTarget", 4318 "name": "createTarget",
4319 "description": "Creates a new page.", 4319 "description": "Creates a new page.",
4320 "parameters": [ 4320 "parameters": [
4321 { "name": "url", "type": "string", "description": "The initi al URL the page will be navigated to." }, 4321 { "name": "url", "type": "string", "description": "The initi al URL the page will be navigated to." },
4322 { "name": "width", "type": "integer", "description": "Window width (headless chrome only).", "optional": true }, 4322 { "name": "width", "type": "integer", "description": "Web co ntents width.", "optional": true },
4323 { "name": "height", "type": "integer", "description": "Windo w height (headless chrome only).", "optional": true }, 4323 { "name": "height", "type": "integer", "description": "Web c ontents height.", "optional": true },
4324 { "name": "browserContextId", "$ref": "BrowserContextID", "d escription": "The browser context to create the page in (headless chrome only)." , "optional": true } 4324 { "name": "browserContextId", "$ref": "BrowserContextID", "d escription": "The browser context to create the page in (headless chrome only)." , "optional": true }
4325 ], 4325 ],
4326 "returns": [ 4326 "returns": [
4327 { "name": "targetId", "$ref": "TargetID", "description": "Th e id of the page opened." } 4327 { "name": "targetId", "$ref": "TargetID", "description": "Th e id of the page opened." }
4328 ], 4328 ],
4329 "handlers": ["browser"] 4329 "handlers": ["browser"]
4330 }, 4330 },
4331 { 4331 {
4332 "name": "closeTarget", 4332 "name": "closeTarget",
4333 "description": "Closes the target. If the target is a page that gets closed too.", 4333 "description": "Closes the target. If the target is a page that gets closed too.",
4334 "parameters": [ 4334 "parameters": [
4335 { "name": "targetId", "$ref": "TargetID" } 4335 { "name": "targetId", "$ref": "TargetID" }
4336 ], 4336 ],
4337 "returns": [ 4337 "returns": [
4338 { "name": "success", "type": "boolean" } 4338 { "name": "success", "type": "boolean" }
4339 ], 4339 ],
4340 "handlers": ["browser"] 4340 "handlers": ["browser"]
4341 }, 4341 },
4342 { 4342 {
4343 "name": "getTargets", 4343 "name": "getTargets",
4344 "returns": [ 4344 "returns": [
4345 { "name": "targetInfo", "type": "array", "items": { "$ref": "TargetInfo" } } 4345 { "name": "targetInfo", "type": "array", "items": { "$ref": "TargetInfo" } }
4346 ], 4346 ],
4347 "description": "Returns target information for all potential tar gets.", 4347 "description": "Returns target information for all potential tar gets.",
4348 "handlers": ["browser"] 4348 "handlers": ["browser"]
4349 }, 4349 },
4350 { 4350 {
4351 "name": "getWebContentsSize",
Sami 2016/08/09 16:45:44 Would get/setFrameSize or get/setMainFrameSize wor
Eric Seckler 2016/08/10 11:12:26 Done.
4352 "description": "Returns the size of the WebContents of a target. ",
4353 "parameters": [
4354 { "name": "targetId", "$ref": "TargetID" }
4355 ],
4356 "returns": [
4357 { "name": "width", "type": "integer", "description": "Web co ntents width." },
Sami 2016/08/09 16:45:44 I'm guessing these are physical pixels -- still wo
Eric Seckler 2016/08/10 11:12:26 Actually, AFAICT, these are DIPs. Done.
4358 { "name": "height", "type": "integer", "description": "Web c ontents height." }
4359 ],
4360 "handlers": ["browser"]
4361 },
4362 {
4363 "name": "setWebContentsSize",
4364 "description": "Resize the WebContents of a target.",
4365 "parameters": [
4366 { "name": "targetId", "$ref": "TargetID" },
4367 { "name": "width", "type": "integer", "description": "Web co ntents width." },
4368 { "name": "height", "type": "integer", "description": "Web c ontents height." }
4369 ],
4370 "handlers": ["browser"]
4371 },
4372 {
4351 "name": "attach", 4373 "name": "attach",
4352 "description": "Attaches to the target with given id.", 4374 "description": "Attaches to the target with given id.",
4353 "parameters": [ 4375 "parameters": [
4354 {"name": "targetId", "$ref": "TargetID", "description": "Tar get id." } 4376 {"name": "targetId", "$ref": "TargetID", "description": "Tar get id." }
4355 ], 4377 ],
4356 "handlers": ["browser"] 4378 "handlers": ["browser"]
4357 }, 4379 },
4358 { 4380 {
4359 "name": "detach", 4381 "name": "detach",
4360 "description": "Detaches from the target with given id.", 4382 "description": "Detaches from the target with given id.",
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
4457 "description": "Informs that port was successfully bound and got a specified connection id.", 4479 "description": "Informs that port was successfully bound and got a specified connection id.",
4458 "parameters": [ 4480 "parameters": [
4459 {"name": "port", "type": "integer", "description": "Port num ber that was successfully bound." }, 4481 {"name": "port", "type": "integer", "description": "Port num ber that was successfully bound." },
4460 {"name": "connectionId", "type": "string", "description": "C onnection id to be used." } 4482 {"name": "connectionId", "type": "string", "description": "C onnection id to be used." }
4461 ], 4483 ],
4462 "handlers": ["browser"] 4484 "handlers": ["browser"]
4463 } 4485 }
4464 ] 4486 ]
4465 }] 4487 }]
4466 } 4488 }
OLDNEW
« no previous file with comments | « content/browser/devtools/protocol/browser_handler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698