Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 167 "id": "AppManifestError", | 167 "id": "AppManifestError", |
| 168 "description": "Error while paring app manifest.", | 168 "description": "Error while paring app manifest.", |
| 169 "type": "object", | 169 "type": "object", |
| 170 "properties": [ | 170 "properties": [ |
| 171 { "name": "message", "type": "string", "description": "Error m essage." }, | 171 { "name": "message", "type": "string", "description": "Error m essage." }, |
| 172 { "name": "critical", "type": "integer", "description": "If cr iticial, this is a non-recoverable parse error." }, | 172 { "name": "critical", "type": "integer", "description": "If cr iticial, this is a non-recoverable parse error." }, |
| 173 { "name": "line", "type": "integer", "description": "Error lin e." }, | 173 { "name": "line", "type": "integer", "description": "Error lin e." }, |
| 174 { "name": "column", "type": "integer", "description": "Error c olumn." } | 174 { "name": "column", "type": "integer", "description": "Error c olumn." } |
| 175 ], | 175 ], |
| 176 "hidden": true | 176 "hidden": true |
| 177 }, | |
| 178 { | |
| 179 "id": "NavigationThrottleResponse", | |
|
nasko
2016/07/13 22:37:34
Let's avoid using Throttle here as well. Throttles
alex clarke (OOO till 29th)
2016/07/14 16:06:05
Done.
| |
| 180 "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.", | |
| 181 "type": "string", | |
| 182 "enum": ["Proceed", "Cancel", "CancelAndIgnore"], | |
| 183 "hidden": true | |
| 177 } | 184 } |
| 178 ], | 185 ], |
| 179 "commands": [ | 186 "commands": [ |
| 180 { | 187 { |
| 181 "name": "enable", | 188 "name": "enable", |
| 182 "description": "Enables page domain notifications.", | 189 "description": "Enables page domain notifications.", |
| 183 "handlers": ["browser", "renderer"] | 190 "handlers": ["browser", "renderer"] |
| 184 }, | 191 }, |
| 185 { | 192 { |
| 186 "name": "disable", | 193 "name": "disable", |
| (...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 474 "name": "requestAppBanner", | 481 "name": "requestAppBanner", |
| 475 "hidden": true, | 482 "hidden": true, |
| 476 "handlers": ["browser"] | 483 "handlers": ["browser"] |
| 477 }, | 484 }, |
| 478 { | 485 { |
| 479 "name": "setBlockedEventsWarningThreshold", | 486 "name": "setBlockedEventsWarningThreshold", |
| 480 "hidden": true, | 487 "hidden": true, |
| 481 "parameters": [ | 488 "parameters": [ |
| 482 { "name": "threshold", "type": "number", "description": "If set to a positive number, specifies threshold in seconds for input event latency that will cause a console warning about blocked event to be issued. If zero or less, the warning is disabled." } | 489 { "name": "threshold", "type": "number", "description": "If set to a positive number, specifies threshold in seconds for input event latency that will cause a console warning about blocked event to be issued. If zero or less, the warning is disabled." } |
| 483 ] | 490 ] |
| 491 }, | |
| 492 { | |
| 493 "name": "setControlNavigations", | |
| 494 "parameters": [ | |
| 495 { "name": "enabled", "type": "boolean" } | |
| 496 ], | |
| 497 "description": "Toggles navigation throttling which allows progr amatic control over navigation and redirect response.", | |
| 498 "hidden": true, | |
| 499 "handlers": ["browser"] | |
| 500 }, | |
| 501 { | |
| 502 "name": "processNavigation", | |
| 503 "parameters": [ | |
| 504 { "name": "response", "$ref": "NavigationThrottleResponse" } , | |
| 505 { "name": "navigationId", "type": "integer" } | |
| 506 ], | |
| 507 "description": "Should be sent in response to a navigationReques ted or a redirectRequested event, telling the browser how to handle the navigati on.", | |
| 508 "hidden": true, | |
| 509 "handlers": ["browser"] | |
| 484 } | 510 } |
| 485 ], | 511 ], |
| 486 "events": [ | 512 "events": [ |
| 487 { | 513 { |
| 488 "name": "domContentEventFired", | 514 "name": "domContentEventFired", |
| 489 "parameters": [ | 515 "parameters": [ |
| 490 { "name": "timestamp", "type": "number" } | 516 { "name": "timestamp", "type": "number" } |
| 491 ] | 517 ] |
| 492 }, | 518 }, |
| 493 { | 519 { |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 605 "name": "interstitialShown", | 631 "name": "interstitialShown", |
| 606 "description": "Fired when interstitial page was shown", | 632 "description": "Fired when interstitial page was shown", |
| 607 "hidden": true, | 633 "hidden": true, |
| 608 "handlers": ["browser"] | 634 "handlers": ["browser"] |
| 609 }, | 635 }, |
| 610 { | 636 { |
| 611 "name": "interstitialHidden", | 637 "name": "interstitialHidden", |
| 612 "description": "Fired when interstitial page was hidden", | 638 "description": "Fired when interstitial page was hidden", |
| 613 "hidden": true, | 639 "hidden": true, |
| 614 "handlers": ["browser"] | 640 "handlers": ["browser"] |
| 641 }, | |
| 642 { | |
| 643 "name": "navigationRequested", | |
| 644 "description": "Fired when a navigation is started if navigation throttles are enabled. The navigation will be deferred until processNavigation is called.", | |
| 645 "parameters": [ | |
| 646 { "name": "isInMainFrame", "type": "boolean", "description": "Whether the navigation is taking place in the main frame or in a subframe." }, | |
| 647 { "name": "isParentMainFrame", "type": "boolean", "descripti on": "Whether the navigation is taking place in a frame that is a direct child o f the main frame." }, | |
|
nasko
2016/07/13 22:37:34
In general, I'd suggest exposing the minimum amoun
alex clarke (OOO till 29th)
2016/07/14 16:06:05
isParentMainFrame was speculative. We can probabl
nasko
2016/07/14 16:47:19
The rule of thumb is that we only expose parts tha
| |
| 648 { "name": "isRedirect", "type": "boolean", "description": "W hether the navigation has encountered a server redirect or not." }, | |
| 649 { "name": "navigationId", "type": "integer" }, | |
| 650 { "name": "url", "type": "string", "description": "URL of re quested navigation." }, | |
| 651 { "name": "rendererInitiated", "type": "boolean", "descripti on": "Whether the navigation was initated by the renderer process." } | |
| 652 ], | |
| 653 "handlers": ["browser"] | |
| 615 } | 654 } |
| 616 ] | 655 ] |
| 617 }, | 656 }, |
| 618 { | 657 { |
| 619 "domain": "Rendering", | 658 "domain": "Rendering", |
| 620 "description": "This domain allows to control rendering of the page.", | 659 "description": "This domain allows to control rendering of the page.", |
| 621 "hidden": true, | 660 "hidden": true, |
| 622 "commands": [ | 661 "commands": [ |
| 623 { | 662 { |
| 624 "name": "setShowPaintRects", | 663 "name": "setShowPaintRects", |
| (...skipping 3744 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 4369 "description": "Informs that port was successfully bound and got a specified connection id.", | 4408 "description": "Informs that port was successfully bound and got a specified connection id.", |
| 4370 "parameters": [ | 4409 "parameters": [ |
| 4371 {"name": "port", "type": "integer", "description": "Port num ber that was successfully bound." }, | 4410 {"name": "port", "type": "integer", "description": "Port num ber that was successfully bound." }, |
| 4372 {"name": "connectionId", "type": "string", "description": "C onnection id to be used." } | 4411 {"name": "connectionId", "type": "string", "description": "C onnection id to be used." } |
| 4373 ], | 4412 ], |
| 4374 "handlers": ["browser"] | 4413 "handlers": ["browser"] |
| 4375 } | 4414 } |
| 4376 ] | 4415 ] |
| 4377 }] | 4416 }] |
| 4378 } | 4417 } |
| OLD | NEW |