OLD | NEW |
1 <link rel="import" href="/mojo/public/html/connection.html" as="connection" /> | 1 <link rel="import" href="/mojo/public/html/connection.html" as="connection" /> |
2 <link rel="import" href="/mojo/public/html/core.html" as="core" /> | 2 <link rel="import" href="/mojo/public/html/core.html" as="core" /> |
3 <link rel="import" href="/mojo/public/html/support.html" as="support" /> | 3 <link rel="import" href="/mojo/public/html/support.html" as="support" /> |
4 <link rel="import" href="/sky/framework/inspector/server/inspector.mojom.html" a
s="inspector" /> | 4 <link rel="import" href="/sky/services/inspector/inspector.mojom.html" as="inspe
ctor" /> |
5 <link rel="import" href="console-agent.sky" as="ConsoleAgent" /> | 5 <link rel="import" href="console-agent.sky" as="ConsoleAgent" /> |
6 <link rel="import" href="dom-agent.sky" as="DOMAgent" /> | 6 <link rel="import" href="dom-agent.sky" as="DOMAgent" /> |
7 <link rel="import" href="page-agent.sky" as="PageAgent" /> | 7 <link rel="import" href="page-agent.sky" as="PageAgent" /> |
8 <link rel="import" href="worker-agent.sky" as="WorkerAgent" /> | 8 <link rel="import" href="worker-agent.sky" as="WorkerAgent" /> |
9 <script> | 9 <script> |
10 function InspectorBackend(frontend) { | 10 function InspectorBackend(frontend) { |
11 this.frontend = frontend; | 11 this.frontend = frontend; |
12 this.agents = { | 12 this.agents = { |
13 Console: new ConsoleAgent(), | 13 Console: new ConsoleAgent(), |
14 DOM: new DOMAgent(this), | 14 DOM: new DOMAgent(this), |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 var frontendHandle = internals.connectToService( | 74 var frontendHandle = internals.connectToService( |
75 "mojo:sky_inspector_server", inspector.InspectorFrontend.name); | 75 "mojo:sky_inspector_server", inspector.InspectorFrontend.name); |
76 window.frontendConnection = new connection.Connection( | 76 window.frontendConnection = new connection.Connection( |
77 frontendHandle, | 77 frontendHandle, |
78 InspectorBackend, | 78 InspectorBackend, |
79 inspector.InspectorFrontend.proxyClass); | 79 inspector.InspectorFrontend.proxyClass); |
80 | 80 |
81 window.frontend = frontendConnection.remote; | 81 window.frontend = frontendConnection.remote; |
82 frontend.listen(9898); | 82 frontend.listen(9898); |
83 </script> | 83 </script> |
OLD | NEW |