• Home
Name Date Size #Lines LOC

..--

build/03-May-2024-1,024788

css/03-May-2024-1,4751,226

examples/03-May-2024-34,17323,842

images/03-May-2024-8,6058,550

js/03-May-2024-785545

server/03-May-2024-345241

static/03-May-2024-9,8838,304

template/03-May-2024-545451

README.txtD03-May-20243.4 KiB7455

a11y.htmlD03-May-202434.1 KiB997834

api_index.htmlD03-May-202420.5 KiB567467

api_other.htmlD03-May-202421.3 KiB596497

apps.htmlD03-May-202423.3 KiB692574

autoupdate.htmlD03-May-202426.8 KiB653530

background_pages.htmlD03-May-202422.3 KiB654540

bookmarks.htmlD03-May-2024198.7 KiB6,0234,946

browserAction.htmlD03-May-202471.4 KiB2,1191,731

content_scripts.htmlD03-May-202437 KiB1,002838

contextMenus.htmlD03-May-2024110 KiB3,3442,757

cookies.htmlD03-May-2024154.2 KiB4,6833,842

crx.htmlD03-May-202423.1 KiB679567

devguide.htmlD03-May-202422.5 KiB648551

devtools.htmlD03-May-202415.4 KiB436352

docs.htmlD03-May-202422.2 KiB650545

events.htmlD03-May-202419.6 KiB556458

experimental.clipboard.htmlD03-May-202437.3 KiB1,067871

experimental.contentSettings.misc.htmlD03-May-202426 KiB727598

experimental.contextMenus.htmlD03-May-202418.6 KiB521428

experimental.cookies.htmlD03-May-202418.6 KiB521428

experimental.debugger.htmlD03-May-202454 KiB1,5601,273

experimental.extension.htmlD03-May-202468.2 KiB2,0061,634

experimental.history.htmlD03-May-202418.6 KiB521428

experimental.htmlD03-May-202422 KiB609509

experimental.idle.htmlD03-May-202418.6 KiB521428

experimental.infobars.htmlD03-May-202430.5 KiB891731

experimental.processes.htmlD03-May-202442.7 KiB1,2581,031

experimental.proxy.htmlD03-May-202478.4 KiB2,3641,950

experimental.sidebar.htmlD03-May-202499 KiB2,9022,363

experimental.tts.htmlD03-May-202478.5 KiB2,3141,893

experimental.webInspector.audits.htmlD03-May-2024112 KiB3,3142,704

experimental.webInspector.htmlD03-May-202421.2 KiB587489

experimental.webInspector.inspectedWindow.htmlD03-May-202429.6 KiB827676

experimental.webInspector.panels.htmlD03-May-2024105.7 KiB3,1092,523

experimental.webInspector.resources.htmlD03-May-202438 KiB1,086888

experimental.webNavigation.htmlD03-May-202497.9 KiB2,9642,431

experimental.webRequest.htmlD03-May-2024125.1 KiB3,8233,136

extension.htmlD03-May-2024148.4 KiB4,4263,617

external_extensions.htmlD03-May-202427.3 KiB809682

faq.htmlD03-May-202439.9 KiB995848

getstarted.htmlD03-May-202424.1 KiB696586

history.htmlD03-May-2024117.5 KiB3,5622,939

hosting.htmlD03-May-202421 KiB601501

i18n-messages.htmlD03-May-202426.6 KiB855719

i18n.htmlD03-May-202450.1 KiB1,5081,240

idle.htmlD03-May-202427.5 KiB794650

index.htmlD03-May-202421.4 KiB623515

management.htmlD03-May-2024105.2 KiB3,1512,582

manifest.htmlD03-May-202434.7 KiB1,021868

match_patterns.htmlD03-May-202423.7 KiB750622

messaging.htmlD03-May-202429.6 KiB809689

notifications.htmlD03-May-202422.4 KiB650534

npapi.htmlD03-May-202421.7 KiB608499

omnibox.htmlD03-May-202446.4 KiB1,3511,104

options.htmlD03-May-202421.2 KiB599494

override.htmlD03-May-202423 KiB707593

overview.htmlD03-May-202439.3 KiB1,181974

packaging.htmlD03-May-202423.1 KiB690568

pageAction.htmlD03-May-202461.9 KiB1,8361,497

permission_warnings.htmlD03-May-202428.1 KiB881725

samples.htmlD03-May-2024180.7 KiB3,2663,169

samples.jsonD03-May-202471.5 KiB1,7431,743

tabs.htmlD03-May-2024277.8 KiB8,4306,898

test.htmlD03-May-202425.4 KiB731593

themes.htmlD03-May-202423.6 KiB668552

tut_analytics.htmlD03-May-202425.9 KiB736610

tut_debugging.htmlD03-May-202426 KiB784656

tut_oauth.htmlD03-May-202428.4 KiB726593

tutorials.htmlD03-May-202419 KiB539444

whats_new.htmlD03-May-202425.5 KiB719599

windows.htmlD03-May-2024142.1 KiB4,3073,530

xhr.htmlD03-May-202423.4 KiB669556

README.txt

1This directory contains the chromium extensions documentation, and the mechanism
2by which they are generated.
3
4--------------------------------------------------------------------------------
5Contributing To The Extension Docs:
6
7[When making changes, open the relevant /<page>.html in chrome via the file:
8scheme. If you do, you can refresh to instantly see any changes you make].
9
10*I want to document methods, events or parameters in the api itself:
11=>Edit ../api/extension_api.json. Usually you can just add or edit the
12"description" property. This will appear automatically in the corresponding doc
13page at ./<page>.html (where <page> is the name of the apimodule ("tabs", etc..)
14that contains the change you are making.
15
16*I want to edit static content for an API reference module:
17=>Look in /static/<page>.html (for your module). If the file exists, edit it,
18check you changes by viewing /<page>.html. If the file doesn't exist, add it,
19and make a copy of /template/page_shell.html and copy it to /<page>.html.
20
21*I want to edit or add a purely static page:
22=>Follow the same steps for editing static content for an API page.
23
24IN ALL CASES. When you have finished, run build/build.bat (on windows) or
25build/build.py (on mac/linux). This may generate new files or changes to the
26/*.html pages. Include any new or changed files in the changelist you create.
27
28--------------------------------------------------------------------------------
29Building
30
31Changes to the extension docs must be checked into source control. Any changes
32to any input sources require the docs to be regenerated.
33
34To build the extension docs, run the build.py script in the ./build directory.
35This will regenerate the docs and report which, if any, files have changed
36and need to be included in the changelist that changed the dependent files.
37
38Note that the build.py script depends on DumpRenderTree to run, so you must be
39able to build DumpRenderTree to build extension_docs. The build.py script will
40look in typical locations for the DumpRenderTree executable, but you may set
41the path to DumpRenderTree explicitly with --dump-render-tree-path.
42
43--------------------------------------------------------------------------------
44Design
45
46I. Inputs
47
48There are two sources of input:
49
501) The contents of ../api/extension_api.json
51which contains the "IDL" of the the methods, events, and types of the api. This
52file is linked as a resource into the chromium binary and then dynamically
53bound to chrome.* objects that are exposed to extension contexts. This file
54is fed into the api docs template. It contains both name, type information as
55well as documentation contained in "description" properties.
56
572) The set of ./static/*.html documents. Each of these static html fragments is
58inserted into a common template and rendered into ./*.html.
59
60II. Processing
61
62The processing of each document page is as follows:
63
64For each given <page>:
651) A copy of ./page_shell.html is copied to ./<page>.html.
662) This page loads bootstrap.js which inspects the <page> name
673) ./template/api_template.html is loaded and inserted into the body of the page
684) If a ./static/<page>.html exists, its content is inserted into the main
69content column of the api_template.html
705) If the <page> matches an api "module" in extension_api.json, the api is then
71fed through the api template within api_template.html
726) The result is written on top of the existing /<page>.html. If the new file
73differs in content, it is reported as changed by the build.py script.
74