- add sources.
[platform/framework/web/crosswalk.git] / src / chrome / common / extensions / docs / templates / articles / manifest / requirements.html
1 <h1 id="requirements">Manifest - Requirements</h1>
2
3 <p>
4 Technologies required by the app or extension.
5 Hosting sites such as the Chrome Web Store may use this list
6 to dissuade users from installing apps or extensions
7 that will not work on their computer.
8 Supported requirements currently include "3D" and "plugins";
9 additional requirements checks may be added in the future.
10 </p>
11
12 <p>
13 The "3D" requirement denotes GPU hardware acceleration.
14 The "webgl" requirement refers to the
15 <a href="http://www.khronos.org/webgl/">WebGL API</a>.
16 For more information on Chrome 3D graphics support,
17 see the help article on
18 <a href="http://www.google.com/support/chrome/bin/answer.py?answer=1220892">WebGL and 3D graphics</a>.
19 You can list the 3D-related features your app requires,
20 as demonstrated in the following example:
21 </p>
22
23 <pre data-filename="manifest.json">
24 "requirements": {
25   "3D": {
26     "features": ["webgl"]
27   }
28 }
29 </pre>
30
31 <p>
32 The "plugins" requirement indicates
33 if an app or extension requires NPAPI to run.
34 This requirement is enabled by default
35 when the manifest includes the
36 <a href="http://developer.chrome.com/extensions/npapi.html">"plugins" field</a>.
37 For apps and extensions that still work when plugins aren't available,
38 you can disable this requirement
39 by setting NPAPI to false.
40 You can also enable this requirement manually,
41 by setting NPAPI to true,
42 as shown in this example:
43 </p>
44
45 <pre data-filename="manifest.json">
46 "requirements": {
47   "plugins": {
48     "npapi": true
49   }
50 }
51 </pre>