OLD | NEW |
1 <import src="/gen/mojo/public/interfaces/application/shell.mojom.sky" as="shellM
ojom" /> | 1 <import src="/gen/mojo/public/interfaces/application/shell.mojom.sky" as="shellM
ojom" /> |
2 <import src="/gen/mojo/public/sky/connection.sky" as="connection" /> | 2 <import src="/gen/mojo/public/sky/connection.sky" as="connection" /> |
3 <import src="/gen/mojo/public/sky/core.sky" as="core" /> | 3 <import src="/gen/mojo/public/sky/core.sky" as="core" /> |
4 <import src="/gen/mojo/public/sky/support.sky" as="support" /> | 4 <import src="/gen/mojo/public/sky/support.sky" as="support" /> |
5 <import src="/gen/mojo/services/public/sky/shell.sky" as="shell" /> | 5 <import src="/gen/mojo/services/public/sky/shell.sky" as="shell" /> |
6 <import src="/gen/sky/services/inspector/inspector.mojom.sky" as="inspector" /> | 6 <import src="/gen/sky/services/inspector/inspector.mojom.sky" as="inspector" /> |
7 <import src="console-agent.sky" as="ConsoleAgent" /> | 7 <import src="console-agent.sky" as="ConsoleAgent" /> |
8 <import src="css-agent.sky" as="CSSAgent" /> | 8 <import src="css-agent.sky" as="CSSAgent" /> |
9 <import src="dom-agent.sky" as="DOMAgent" /> | 9 <import src="dom-agent.sky" as="DOMAgent" /> |
10 <import src="indexeddb-agent.sky" as="IndexedDBAgent" /> | 10 <import src="indexeddb-agent.sky" as="IndexedDBAgent" /> |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 sendMessage(method, params) { | 111 sendMessage(method, params) { |
112 var message = JSON.stringify({ | 112 var message = JSON.stringify({ |
113 method: method, | 113 method: method, |
114 params: params, | 114 params: params, |
115 }); | 115 }); |
116 window.frontend.sendMessage(message); | 116 window.frontend.sendMessage(message); |
117 } | 117 } |
118 } | 118 } |
119 | 119 |
120 (function() { | 120 (function() { |
121 var shellHandle = internals.passShellProxyHandle(); | 121 var shellHandle = internals.takeShellProxyHandle(); |
122 var shellProxy = connection.bindHandleToProxy(shellHandle, shellMojom.Shell); | 122 var shellProxy = connection.bindHandleToProxy(shellHandle, shellMojom.Shell); |
123 var myShell = new shell.Shell(shellProxy) | 123 var myShell = new shell.Shell(shellProxy) |
124 var tracingApp = myShell.connectToApplication("mojo:sky_inspector_server"); | 124 var tracingApp = myShell.connectToApplication("mojo:sky_inspector_server"); |
125 tracingApp.provideService(inspector.InspectorBackend, InspectorBackend); | 125 tracingApp.provideService(inspector.InspectorBackend, InspectorBackend); |
126 | 126 |
127 window.frontend = tracingApp.requestService(inspector.InspectorFrontend); | 127 window.frontend = tracingApp.requestService(inspector.InspectorFrontend); |
128 })(); | 128 })(); |
129 </script> | 129 </script> |
OLD | NEW |