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

Unified Diff: chrome/common/extensions/docs/build/generator.html

Issue 159607: Extension docs build script, gyp target and PRESUBMIT.PY check (Closed)
Patch Set: remove build step on mac Created 11 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 | « chrome/common/extensions/docs/build/build.py ('k') | chrome/common/extensions/docs/devguide.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/docs/build/generator.html
diff --git a/chrome/common/extensions/docs/build/generator.html b/chrome/common/extensions/docs/build/generator.html
new file mode 100755
index 0000000000000000000000000000000000000000..7e82e0e72963c6d99a76b21aa7c826cd55589f4b
--- /dev/null
+++ b/chrome/common/extensions/docs/build/generator.html
@@ -0,0 +1,38 @@
+<html>
+ <head>
+ <script>
+var childFrame;
+
+function generate() {
+ if (!window.layoutTestController) {
+ alert("window.layoutTestController not defined.");
+ return;
+ }
+
+ layoutTestController.dumpAsText();
+ layoutTestController.waitUntilDone();
+
+ var page = window.location.search.substring(1);
+ if (!page) {
+ alert("please specify which page to generate via " +
+ "?<page> ... ie. generator.html?tabs");
+ }
+
+ childFrame = document.createElement('iframe');
+ childFrame.src = "../" + page + ".html?regenerate";
+ childFrame.style.display = "none";
+ document.body.appendChild(childFrame);
+}
+
+function done() {
+ var textNode = document.createTextNode(
+ childFrame.contentWindow.serializePage());
+ document.getElementsByTagName("body")[0].appendChild(textNode);
+
+ layoutTestController.notifyDone();
+}
+ </script>
+ </head>
+ <body onload="generate();">
+ </body>
+</html>
« no previous file with comments | « chrome/common/extensions/docs/build/build.py ('k') | chrome/common/extensions/docs/devguide.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698