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

Side by Side Diff: headless/test/data/page_two.html

Issue 2049363003: Adds support for headless chrome embedder mojo services (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 4 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 | « headless/test/data/page_one.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!doctype html>
2 <head>
3 <script>
4 // Note define() defines a module in the mojo module dependency
5 // system. While we don't expose our module, the callback below only
6 // fires after the requested modules have been loaded.
7 define([
8 'headless/lib/embedder_test.mojom',
9 'mojo/public/js/core',
10 'mojo/public/js/router',
11 'content/public/renderer/frame_service_registry',
12 ], function(embedderMojom, mojoCore, routerModule,
13 serviceProvider) {
14 var testEmbedderService =
15 new embedderMojom.TestEmbedderService.proxyClass(
16 new routerModule.Router(
17 serviceProvider.connectToService(
18 embedderMojom.TestEmbedderService.name)));
19
20 // Send a message to the embedder!
21 testEmbedderService.returnTestResult('page two');
22 });
23 </script>
24 </head>
25 <body><h1>Page two</h1></body>
OLDNEW
« no previous file with comments | « headless/test/data/page_one.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698