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

Unified Diff: third_party/WebKit/LayoutTests/inspector/inspector-backend-commands.html

Issue 2109243003: Introduce --remote-debugging-frontend switch for custom remote debugging front-end (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: support absolute path instead of HTTP endpoint Created 4 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: third_party/WebKit/LayoutTests/inspector/inspector-backend-commands.html
diff --git a/third_party/WebKit/LayoutTests/inspector/inspector-backend-commands.html b/third_party/WebKit/LayoutTests/inspector/inspector-backend-commands.html
index 54eccef27aec11963bafec3de8dc71c8605671aa..264f88b6b68bde4e46ea492ab82622f67ea43000 100644
--- a/third_party/WebKit/LayoutTests/inspector/inspector-backend-commands.html
+++ b/third_party/WebKit/LayoutTests/inspector/inspector-backend-commands.html
@@ -24,49 +24,14 @@ function test()
setTimeout(InspectorFrontendAPI.dispatchMessage.bind(InspectorFrontendAPI, response), 0);
}
- var inspectorJson = {"domains": [{
- "domain": "Profiler",
- "commands": [
- {
- "name": "commandArgs0"
- },
- {
- "name": "commandArgs1Rets0",
- "parameters": [
- {"name": "arg1", "type": "number"}
- ]
- },
- {
- "name": "commandArgs1Rets1",
- "parameters": [
- {"name": "arg1", "type": "object"}
- ],
- "returns": [
- {"name": "arg1", "type": "object"}
- ]
- },
- {
- "name": "commandArgs3Rets3",
- "parameters": [
- {"name": "arg1", "type": "object"},
- {"name": "arg2", "type": "number", "optional": true},
- {"name": "arg3", "type": "string", "optional": true}
- ],
- "returns": [
- {"name": "arg1", "type": "object"},
- {"name": "arg2", "type": "number"},
- {"name": "arg3", "type": "string"}
- ]
- },
- {
- "name": "commandError",
- "parameters": [
- {"name": "error", "type": "object"}
- ]
- }]
- }]};
- var commands = WebInspector.InspectorBackendHostedMode.generateCommands(inspectorJson);
- eval(commands);
+ var commands = [
+ 'InspectorBackend.registerCommand("Profiler.commandArgs0", [], [], false);',
+ 'InspectorBackend.registerCommand("Profiler.commandArgs1Rets0", [{"name": "arg1", "type": "number", "optional": false}], [], false);',
+ 'InspectorBackend.registerCommand("Profiler.commandArgs1Rets1", [{"name": "arg1", "type": "object", "optional": false}], ["arg1"], false);',
+ 'InspectorBackend.registerCommand("Profiler.commandArgs3Rets3", [{"name": "arg1", "type": "object", "optional": false}, {"name": "arg2", "type": "number", "optional": true}, {"name": "arg3", "type": "string", "optional": true}], ["arg1", "arg2", "arg3"], false);',
+ 'InspectorBackend.registerCommand("Profiler.commandError", [{"name": "error", "type": "object", "optional": false}], [], false);'
+ ];
+ eval(commands.join(""));
var sendMessageToBackendOriginal = InspectorFrontendHost.sendMessageToBackend;
InspectorFrontendHost.sendMessageToBackend = sendMessageToBackendLoopback;
« no previous file with comments | « chrome/common/url_constants.cc ('k') | third_party/WebKit/LayoutTests/inspector/inspector-backend-commands-generation.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698