OLD | NEW |
1 .. _devcycle-application-structure: | 1 .. _devcycle-application-structure: |
2 | 2 |
3 ##################### | 3 ##################### |
4 Application Structure | 4 Application Structure |
5 ##################### | 5 ##################### |
6 | 6 |
7 .. contents:: | 7 .. contents:: |
8 :local: | 8 :local: |
9 :backlinks: none | 9 :backlinks: none |
10 :depth: 2 | 10 :depth: 2 |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 .. _manifest_file: | 83 .. _manifest_file: |
84 | 84 |
85 Manifest Files | 85 Manifest Files |
86 ============== | 86 ============== |
87 | 87 |
88 Native Client applications have two types of manifest files: a Chrome Web Store | 88 Native Client applications have two types of manifest files: a Chrome Web Store |
89 manifest file and a Native Client manifest file. | 89 manifest file and a Native Client manifest file. |
90 | 90 |
91 A **Chrome Web Store manifest file** is a file with information about a web | 91 A **Chrome Web Store manifest file** is a file with information about a web |
92 application that is published in the Chrome Web Store. This file, named | 92 application that is published in the Chrome Web Store. This file, named |
93 ``manifest.json``, is required for applications that are published in the Chrome | 93 ``manifest.json``, is required for applications that are published in the |
94 Web Store. For more information about this file see :doc:`Distributing Your | 94 Chrome Web Store. For more information about this file see :doc:`Distributing |
95 Application <../distributing>`. and the `Chrome Web Store manifest file format | 95 Your Application <../distributing>`. and the `Chrome Web Store manifest file |
96 <http://code.google.com/chrome/extensions/manifest.html>`_. | 96 format </extensions/manifest>`_. |
97 | 97 |
98 A **Native Client manifest file** is a file that specifies which Native Client | 98 A **Native Client manifest file** is a file that specifies which Native Client |
99 module (executable) to load. For PNaCl it specifies a single portable | 99 module (executable) to load. For PNaCl it specifies a single portable |
100 executable; otherwise it specifies one for each of the supported end-user | 100 executable; otherwise it specifies one for each of the supported end-user |
101 computer architectures (for example x86-32, x86-64, or ARM). This file is | 101 computer architectures (for example x86-32, x86-64, or ARM). This file is |
102 required for all Native Client applications. The extension for this file is | 102 required for all Native Client applications. The extension for this file is |
103 .nmf. | 103 .nmf. |
104 | 104 |
105 Manifest files for applications that use PNaCl are simple. Here is the manifest | 105 Manifest files for applications that use PNaCl are simple. Here is the manifest |
106 for the hello world example: | 106 for the hello world example: |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
246 leaves the web page, or the NaCl module's ``<embed>`` is otherwise destroyed. | 246 leaves the web page, or the NaCl module's ``<embed>`` is otherwise destroyed. |
247 If the NaCl module does call the ``exit()`` function, the instance will | 247 If the NaCl module does call the ``exit()`` function, the instance will |
248 issue a ``crash`` event | 248 issue a ``crash`` event |
249 :doc:`which can be handled in Javascript<progress-events>`. | 249 :doc:`which can be handled in Javascript<progress-events>`. |
250 | 250 |
251 While the ``CreateModule()`` factory function, the ``Module`` class, and the | 251 While the ``CreateModule()`` factory function, the ``Module`` class, and the |
252 ``Instance`` class are required for a Native Client application, the code | 252 ``Instance`` class are required for a Native Client application, the code |
253 samples shown above don't actually do anything. Subsequent chapters in the | 253 samples shown above don't actually do anything. Subsequent chapters in the |
254 Developer's Guide build on these code samples and add more interesting | 254 Developer's Guide build on these code samples and add more interesting |
255 functionality. | 255 functionality. |
OLD | NEW |