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

Unified 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, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « headless/test/data/page_one.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: headless/test/data/page_two.html
diff --git a/headless/test/data/page_two.html b/headless/test/data/page_two.html
new file mode 100644
index 0000000000000000000000000000000000000000..b8e9108c657488ad448b77a46413ef0bb8b63bd2
--- /dev/null
+++ b/headless/test/data/page_two.html
@@ -0,0 +1,25 @@
+<!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',
+ 'mojo/public/js/core',
+ 'mojo/public/js/router',
+ 'content/public/renderer/frame_service_registry',
+ ], function(embedderMojom, mojoCore, routerModule,
+ serviceProvider) {
+ var testEmbedderService =
+ new embedderMojom.TestEmbedderService.proxyClass(
+ new routerModule.Router(
+ serviceProvider.connectToService(
+ embedderMojom.TestEmbedderService.name)));
+
+ // Send a message to the embedder!
+ testEmbedderService.returnTestResult('page two');
+});
+</script>
+</head>
+<body><h1>Page two</h1></body>
« 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