blob: 47edec7f02afb43a8887518c48398dec6f2912e1 [file]
<!doctype html>
<head>
<script>
// Note define() defines a module in the mojo module dependency
// system. While we don't expose our module, the callback below only
// fires after the requested modules have been loaded.
define([
'headless/lib/embedder_test.mojom',
'content/public/renderer/frame_interfaces',
], function(embedderMojom, frameInterfaces) {
var testEmbedderService = new embedderMojom.TestEmbedderServicePtr(
frameInterfaces.getInterface(embedderMojom.TestEmbedderService.name));
// Send a message to the embedder!
testEmbedderService.returnTestResult('page two');
});
</script>
</head>
<body><h1>Page two</h1></body>