summaryrefslogtreecommitdiffstats
path: root/chrome/common/extensions/docs/js
Commit message (Collapse)AuthorAgeFilesLines
* Extension Doc Changes (no building or testable changes).rafaelw@chromium.org2009-09-031-1/+16
| | | | | | | | | | | | | | | | Fix jstemplate recursion issue which was generating way to much extraneous hidden template data. Remote jstemplate attributes from rendered files. Remote #EOF that wandered into output. Template now renders from <body>. TBR=aa Review URL: http://codereview.chromium.org/201001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@25299 0039d316-1c4b-4281-b951-d872f2087c98
* Extension Doc Changes (no building or testable changes): minor changes for ↵rafaelw@chromium.org2009-09-022-28/+38
| | | | | | | | | | | | | tab & windows doc Tabs, Windows, Bookmarks, Themes doc content changes. Fix internal anchor problem (not hiding/showing for rendered docs). Only render dynamically for file: scheme. Fix <pre> issues in rendered docs (now no longer all one line). Alphabetize methods, events & types. Use h* ids for anchor names if found. BUG=20803 TBR=aa Review URL: http://codereview.chromium.org/179068 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@25127 0039d316-1c4b-4281-b951-d872f2087c98
* Fill out the tabs docs. Also, fix a bug where we didn'taa@chromium.org2009-09-011-1/+8
| | | | | | | | honor #anchors in dynamic mode. TBR=rafaelw@chromium.org,kathyw@chromium.org git-svn-id: svn://svn.chromium.org/chrome/trunk/src@25020 0039d316-1c4b-4281-b951-d872f2087c98
* Extension Doc Changes (no building or testable changes)rafaelw@chromium.org2009-08-281-3/+5
| | | | | | | | | | Minor rendering fix (could fail if XHR fired two callbacks). TBR=aa Review URL: http://codereview.chromium.org/179029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@24810 0039d316-1c4b-4281-b951-d872f2087c98
* Extension docs: fix 404 errorrafaelw@chromium.org2009-08-271-2/+4
| | | | | | | | TBR=kathyw,aa Review URL: http://codereview.chromium.org/173558 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@24589 0039d316-1c4b-4281-b951-d872f2087c98
* Extension Doc Changes (no building or testable changes)rafaelw@chromium.org2009-08-261-1/+1
| | | | | | | | | | | Fix page title bug. Added more direction to README.txt. Made Page TOC changes for h* demotion. Fixed 404 bug. Fixed build script to kill test_shell debug.log. BUG=20315 TBR=kathyw,aa Review URL: http://codereview.chromium.org/173499 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@24495 0039d316-1c4b-4281-b951-d872f2087c98
* Make API reference fit better within conceptual pages.kathyw@google.com2009-08-251-1/+1
| | | | | | Review URL: http://codereview.chromium.org/174419 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@24300 0039d316-1c4b-4281-b951-d872f2087c98
* Extension Docs (no code changes) - Fix navigation jig. Renamed a few ↵rafaelw@chromium.org2009-08-241-2/+6
| | | | | | | | | | parameters in extension_api.json. Regenerate rendered docs TBR=kathyw, aa Review URL: http://codereview.chromium.org/174339 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@24146 0039d316-1c4b-4281-b951-d872f2087c98
* Async extension callbacks now always fire and set chrome.extension.lastError ↵rafaelw@chromium.org2009-08-181-1/+5
| | | | | | | | | | | | on error. Includes doc changes for extension.lastError and a browsertest. BUG=17381 Review URL: http://codereview.chromium.org/172078 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23676 0039d316-1c4b-4281-b951-d872f2087c98
* Extension Docs: Implement auto TOC for static contentrafaelw@chromium.org2009-08-141-13/+74
| | | | | | | | TBR=aa, kathyw Review URL: http://codereview.chromium.org/170013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23470 0039d316-1c4b-4281-b951-d872f2087c98
* Re-factor extension docs generation code. Now support referenced types and ↵rafaelw@chromium.org2009-08-132-143/+84
| | | | | | | | | | | | | | type links. The generation code is now more jstemplaty: Uses callouts from the template rather than preprocessing the pageData. Also uses internal subtemplates via transclude which reduces the size of the template significantly. Also, api pages now have a Types, and all references to types link to the appropriate api doc page which contains it. TBR=aa, kathyw Review URL: http://codereview.chromium.org/164523 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23385 0039d316-1c4b-4281-b951-d872f2087c98
* Extension Doc Changes (no building or testable changes)rafaelw@chromium.org2009-08-131-4/+32
| | | | | | | | | | | | | | -Don't display Event or Methods heading if there are none in api pages. -Allow static pages to declare their title with a hidden div. -Removed xhr.html (abandoned). -Left Nav now selects current page. -Breadcrumb removed. TBR=aa, kathyw Review URL: http://codereview.chromium.org/164457 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23275 0039d316-1c4b-4281-b951-d872f2087c98
* Add chrome.extension to extension_api.json and docs.rafaelw@chromium.org2009-08-121-2/+0
| | | | | | | | | | | | | | This required making it so that extension_api.json definitions defer to existing bindings so that the chrome.extension object can remain setup in renderer_extension_bindings.js. Also fixed a minor bug with error handling in the api_generator.js Moved "Port" type to the new extension module. Removed a bunch of trailing whitespace from the extension_api.json. Review URL: http://codereview.chromium.org/165323 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23200 0039d316-1c4b-4281-b951-d872f2087c98
* Re-fix the flicker during extension docs render. Caused by two things:aa@chromium.org2009-08-112-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | | * The extension docs are self-mutation code which is pretty confusing. The JavaScript mutates the DOM, and the result is then serialized. This result is the basis for the next JavaScript run. Weird things can therefore happen if you try and follow the pattern "set initial style at low priority, override with higher priority later". Because the high priority ends up getting serialized out. Answer: instead of overriding body style with higher priority rule to show, remove low priority rule. This should leave the serialized output in a more consistent state run to run. * The templates are rendered in several asynchronous steps because of the XHR. This means that setting the style after render() exits isn't sufficient, need to wait until entire callback chain is complete. Code was already trying to do this, but had the problem described above. Fixed. Also, did some sprucing of the table of contents. TBR=rafaelw@chromium.org git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23014 0039d316-1c4b-4281-b951-d872f2087c98
* pull over wiki contentrafaelw@chromium.org2009-08-111-5/+8
| | | | | | | | wiki changes Review URL: http://codereview.chromium.org/164302 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23005 0039d316-1c4b-4281-b951-d872f2087c98
* Fix the extension doc page titles and flicker a bit.aa@chromium.org2009-08-092-3/+9
| | | | | | TBR=rafaelw@chromium.org git-svn-id: svn://svn.chromium.org/chrome/trunk/src@22887 0039d316-1c4b-4281-b951-d872f2087c98
* Buff out Windows & Tabs API, fix a few doc bugs.rafaelw@chromium.org2009-08-071-7/+11
| | | | | | | | | | | | | | This adds callback types, event types, and descriptions for the tabs & windows api. All defined types are loaded first in preparing the template data, so that types can cross reference across apis. Also, additional commentary is added to content_scripts.html doc about communication with the embedding page of a content_script. A check is now made in build.py for the case of the doc page rendering timing out (which is typically a clue that page rendering went wrong and should be inspected with chrome). Review URL: http://codereview.chromium.org/165063 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@22706 0039d316-1c4b-4281-b951-d872f2087c98
* Re-land extension docs build/render/presubmit. The original patch, ↵rafaelw@chromium.org2009-08-052-20/+44
| | | | | | | | | | http://codereview.chromium.org/159607, was reverted because of incorrect dependencies. Note that the extension docs build.py is no longer a gyp build target. Review URL: http://codereview.chromium.org/159830 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@22558 0039d316-1c4b-4281-b951-d872f2087c98
* Rolling back 22300.bradnelson@google.com2009-08-032-42/+18
| | | | | | | | | | | Messy deps... BUG=None TEST=None TBR=rafaelw git-svn-id: svn://svn.chromium.org/chrome/trunk/src@22310 0039d316-1c4b-4281-b951-d872f2087c98
* Extension docs build script, gyp target and PRESUBMIT.PY checkrafaelw@chromium.org2009-08-032-18/+42
| | | | | | | | | | | | | | | | | | This addeds a mechanism for extension docs to "render" from the api/extension_api.json api "idl", the docs/static file content and the template/ html templates into the static extension docs. It retains the property that extension docs loaded in chrome with file:/// scheme will regenerate if dependent data has changed, but otherwise is static. The build.py script runs test_shell to render the static files. A extension_docs gyp target is defined with appropriate inputs & outputs that will run the build.py A PRESUBMIT.PY check will warn on upload and commit if any files have changed that would require a docs rebuild. Note that the PRESUBMIT.PY checks are not currently being run for git cl upload or git cl dcommit. Review URL: http://codereview.chromium.org/159607 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@22300 0039d316-1c4b-4281-b951-d872f2087c98
* Re-org extension docs, template support for new static files.rafaelw@chromium.org2009-07-281-65/+96
| | | | | | | | | | | | No chrome code changes (does not affect any files that are used in build or tests). This is the precursor to a build/check-in step to generate extension docs if underlying api or static content has changed. TBR Review URL: http://codereview.chromium.org/159551 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21911 0039d316-1c4b-4281-b951-d872f2087c98
* Fix broken array.items reference in generate doc script.rafaelw@chromium.org2009-07-281-6/+10
| | | | | | Review URL: http://codereview.chromium.org/160238 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21852 0039d316-1c4b-4281-b951-d872f2087c98
* Pull out synchronous extension apis to extensions_api.json, add custom ↵rafaelw@chromium.org2009-07-271-4/+15
| | | | | | | | | | handling for calls R=aa Review URL: http://codereview.chromium.org/160129 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21703 0039d316-1c4b-4281-b951-d872f2087c98
* Fix undefined object properties showing up in reference pages.rafaelw@chromium.org2009-07-231-4/+7
| | | | | | Review URL: http://codereview.chromium.org/159231 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21362 0039d316-1c4b-4281-b951-d872f2087c98
* Reland http://codereview.chromium.org/155945 which was erroneously reverted.rafaelw@chromium.org2009-07-221-19/+83
| | | | | | | | TBR=estade Review URL: http://codereview.chromium.org/159240 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21338 0039d316-1c4b-4281-b951-d872f2087c98
* revert r21327, which broke MessagingExtensionTabestade@chromium.org2009-07-221-83/+19
| | | | | | | | | | <http://build.chromium.org/buildbot/waterfall/waterfall?builder=Vista%20Tests> tbr=rafaelw Review URL: http://codereview.chromium.org/155955 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21334 0039d316-1c4b-4281-b951-d872f2087c98
* Extensions Doc:rafaelw@chromium.org2009-07-221-19/+83
| | | | | | | | | | | | | | | | Expand complex types in reference pages. Support $ref for types in docs. Added Kathyw's template changes including leftNav and header. Remove old api files. R=aa Review URL: http://codereview.chromium.org/155945 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21327 0039d316-1c4b-4281-b951-d872f2087c98
* Step 2 in abstracting Extension APIs to shared "IDL".rafaelw@chromium.org2009-07-221-18/+65
| | | | | | | | | | In this step, all "normal" async extension apis have been pulled out into extension_api.json which is loaded in the renderer, and dynamic bindings are created for extension functions & events in extension_process_bindings.js. R=aa Review URL: http://codereview.chromium.org/155741 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21313 0039d316-1c4b-4281-b951-d872f2087c98
* Fix line endings doc files.rafaelw@chromium.org2009-07-221-144/+144
| | | | | | | | TBR Review URL: http://codereview.chromium.org/155927 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21288 0039d316-1c4b-4281-b951-d872f2087c98
* First cut at extension docs.rafaelw@chromium.org2009-07-151-0/+144
This adds the base mechanism for api reference pages to be generated from shared json schema api definitions. TBR=aa Review URL: http://codereview.chromium.org/149503 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20748 0039d316-1c4b-4281-b951-d872f2087c98