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

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

Issue 2571903003: Mojo JS bindings: switch most usage of "connection"/"router" module to "bindings". (Closed)
Patch Set: remove the changes to web_ui_mojo.js which seemed to cause flakiness. Created 3 years, 12 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') | ios/web/test/data/mojo_test.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!doctype html> 1 <!doctype html>
2 <head> 2 <head>
3 <script> 3 <script>
4 // Note define() defines a module in the mojo module dependency 4 // Note define() defines a module in the mojo module dependency
5 // system. While we don't expose our module, the callback below only 5 // system. While we don't expose our module, the callback below only
6 // fires after the requested modules have been loaded. 6 // fires after the requested modules have been loaded.
7 define([ 7 define([
8 'headless/lib/embedder_test.mojom', 8 'headless/lib/embedder_test.mojom',
9 'mojo/public/js/core',
10 'mojo/public/js/router',
11 'content/public/renderer/frame_interfaces', 9 'content/public/renderer/frame_interfaces',
12 ], function(embedderMojom, mojoCore, routerModule, 10 ], function(embedderMojom, frameInterfaces) {
13 frameInterfaces) { 11 var testEmbedderService = new embedderMojom.TestEmbedderServicePtr(
14 var testEmbedderService = 12 frameInterfaces.getInterface(embedderMojom.TestEmbedderService.name));
15 new embedderMojom.TestEmbedderService.proxyClass(
16 new routerModule.Router(
17 frameInterfaces.getInterface(
18 embedderMojom.TestEmbedderService.name)));
19 13
20 // Send a message to the embedder! 14 // Send a message to the embedder!
21 testEmbedderService.returnTestResult('page two'); 15 testEmbedderService.returnTestResult('page two');
22 }); 16 });
23 </script> 17 </script>
24 </head> 18 </head>
25 <body><h1>Page two</h1></body> 19 <body><h1>Page two</h1></body>
OLDNEW
« no previous file with comments | « headless/test/data/page_one.html ('k') | ios/web/test/data/mojo_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698