diff options
author | erikkay@chromium.org <erikkay@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-01 21:14:05 +0000 |
---|---|---|
committer | erikkay@chromium.org <erikkay@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-01 21:14:05 +0000 |
commit | 2d5fa0d0a9751c5eb61baefd43760c36233f2d20 (patch) | |
tree | ecccdbea7c8553d6efca29c3d9ce4efab02ab6ec /chrome/common/extensions/docs | |
parent | 2a464a9638588073f344df55d46da6f9910d892b (diff) | |
download | chromium_src-2d5fa0d0a9751c5eb61baefd43760c36233f2d20.zip chromium_src-2d5fa0d0a9751c5eb61baefd43760c36233f2d20.tar.gz chromium_src-2d5fa0d0a9751c5eb61baefd43760c36233f2d20.tar.bz2 |
mole expand/collapse API, callable from a toolstrip for manual operation
Review URL: http://codereview.chromium.org/160276
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@22245 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/extensions/docs')
-rw-r--r-- | chrome/common/extensions/docs/toolstrip.html | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/chrome/common/extensions/docs/toolstrip.html b/chrome/common/extensions/docs/toolstrip.html new file mode 100644 index 0000000..5e96cb7 --- /dev/null +++ b/chrome/common/extensions/docs/toolstrip.html @@ -0,0 +1,46 @@ +<!DOCTYPE html>
+<!-- This page is a placeholder for generated extensions api doc. Note:
+ 1) The <head> information in this page is significant, should be uniform
+ across api docs and should be edited only with knowledge of the
+ templating mechanism.
+ 2) The <body> tag *must* retain id="body"
+ 3) All <body>.innerHTML is genereated as an rendering step. If viewed in a
+ browser, it will be re-generated from the template, json schema and
+ authored overview content.
+ 4) The <body>.innerHTML is also generated by an offline step so that this
+ page may easily be indexed by search engines.
+
+ TODO(rafaelw): Abstract this into a "pageshell" that becomes the single
+ version of page template shell and the "instance" pages (bookmarks.html,
+ etc...) can be generated with a build step.
+-->
+<!-- <html> must retain id="template -->
+<html xmlns="http://www.w3.org/1999/xhtml">
+ <!-- <head> data is significant and loads the needed libraries and styles -->
+ <head>
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+ <title jscontent="pageTitle">pageTitle</title>
+ <link href="css/ApiRefStyles.css" rel="stylesheet" type="text/css">
+ <script type="text/javascript"
+ src="../../../third_party/jstemplate/jstemplate_compiled.js">
+ </script>
+ <script type="text/javascript" src="js/api_page_generator.js"></script>
+ <script>
+// Re-render the page if the user-agent is chrome and it is being served as
+// a file:/// scheme. This allows both the initial render to static as well
+// as dynamic re-rendering for developers/doc-writers working on local changes.
+window.onload = function() {
+ var chrome = navigator.userAgent.indexOf("Chrome") > -1;
+ var fileScheme = location.protocol == "file:";
+ var regenerate = chrome && fileScheme;
+ //if (regenerate) {
+ window.renderPage();
+ //}
+}
+ </script>
+ </head>
+ <!-- <body> content is completely generated. Do not edit, as it will be
+ and rewritten. -->
+ <body class="hidden">
+ </body>
+</html>
|