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

Side by Side Diff: chrome/common/extensions/docs/templates/articles/manifest/nacl_modules.html

Issue 219213007: Remove .html extension from links (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 8 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 unified diff | Download patch
OLDNEW
1 <h1 id="nacl_modules">Manifest - Nacl Modules</h1> 1 <h1 id="nacl_modules">Manifest - Nacl Modules</h1>
2 2
3 <p> 3 <p>
4 One or more mappings from MIME types to the Native Client module 4 One or more mappings from MIME types to the Native Client module
5 that handles each type. 5 that handles each type.
6 For example, the bold code in the following snippet 6 For example, the bold code in the following snippet
7 registers a Native Client module as the content handler 7 registers a Native Client module as the content handler
8 for the OpenOffice spreadsheet MIME type. 8 for the OpenOffice spreadsheet MIME type.
9 </p> 9 </p>
10 10
11 <pre data-filename="manifest.json"> 11 <pre data-filename="manifest.json">
12 { 12 {
13 "name": "Native Client OpenOffice Spreadsheet Viewer", 13 "name": "Native Client OpenOffice Spreadsheet Viewer",
14 "version": "0.1", 14 "version": "0.1",
15 "description": "Open OpenOffice spreadsheets, right in your browser.", 15 "description": "Open OpenOffice spreadsheets, right in your browser.",
16 <b>"nacl_modules": [{ 16 <b>"nacl_modules": [{
17 "path": "OpenOfficeViewer.nmf", 17 "path": "OpenOfficeViewer.nmf",
18 "mime_type": "application/vnd.oasis.opendocument.spreadsheet" 18 "mime_type": "application/vnd.oasis.opendocument.spreadsheet"
19 }]</b> 19 }]</b>
20 } 20 }
21 </pre> 21 </pre>
22 22
23 <p> 23 <p>
24 The value of "path" is the location of a Native Client manifest 24 The value of "path" is the location of a Native Client manifest
25 (a <code>.nmf</code> file) 25 (a <code>.nmf</code> file)
26 within the extension directory. 26 within the extension directory.
27 For more information on Native Client and <code>.nmf</code> files, see the 27 For more information on Native Client and <code>.nmf</code> files, see the
28 <a href="http://code.google.com/chrome/nativeclient/docs/technical_overview.html ">Native Client Technical Overview</a>. 28 <a href="http://code.google.com/chrome/nativeclient/docs/technical_overview">Nat ive Client Technical Overview</a>.
29 </p> 29 </p>
30 30
31 <p> 31 <p>
32 Each MIME type can be associated with only one <code>.nmf</code> file, 32 Each MIME type can be associated with only one <code>.nmf</code> file,
33 but a single <code>.nmf</code> file might handle multiple MIME types. 33 but a single <code>.nmf</code> file might handle multiple MIME types.
34 The following example shows an extension 34 The following example shows an extension
35 with two <code>.nmf</code> files 35 with two <code>.nmf</code> files
36 that handle three MIME types. 36 that handle three MIME types.
37 </p> 37 </p>
38 38
(...skipping 18 matching lines...) Expand all
57 </pre> 57 </pre>
58 58
59 <p class="note"> 59 <p class="note">
60 <strong>Note:</strong> 60 <strong>Note:</strong>
61 You can use Native Client modules in extensions 61 You can use Native Client modules in extensions
62 without specifying "nacl_modules". 62 without specifying "nacl_modules".
63 Use "nacl_modules" only if you want the browser 63 Use "nacl_modules" only if you want the browser
64 to use your Native Client module 64 to use your Native Client module
65 to display a particular type of content. 65 to display a particular type of content.
66 </p> 66 </p>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698