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

Side by Side Diff: sky/framework/inspector/inspector.sky

Issue 944733002: Sky should expose services provided to/by embedder (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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 | « sky/framework/embedder.sky ('k') | sky/framework/shell.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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>
OLDNEW
« no previous file with comments | « sky/framework/embedder.sky ('k') | sky/framework/shell.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698