OLD | NEW |
1 {{+bindTo:partials.standard_nacl_article}} | 1 {{+bindTo:partials.standard_nacl_article}} |
2 | 2 |
3 <section id="application-structure"> | 3 <section id="application-structure"> |
4 <span id="devcycle-application-structure"></span><h1 id="application-structure">
<span id="devcycle-application-structure"></span>Application Structure</h1> | 4 <span id="devcycle-application-structure"></span><h1 id="application-structure">
<span id="devcycle-application-structure"></span>Application Structure</h1> |
5 <div class="contents local" id="contents" style="display: none"> | 5 <div class="contents local" id="contents" style="display: none"> |
6 <ul class="small-gap"> | 6 <ul class="small-gap"> |
7 <li><a class="reference internal" href="#application-components" id="id1">Applic
ation components</a></li> | 7 <li><a class="reference internal" href="#application-components" id="id1">Applic
ation components</a></li> |
8 <li><a class="reference internal" href="#html-file-and-the-embed-element" id="id
2">HTML file and the <embed> element</a></li> | 8 <li><a class="reference internal" href="#html-file-and-the-embed-element" id="id
2">HTML file and the <embed> element</a></li> |
9 <li><a class="reference internal" href="#manifest-files" id="id3">Manifest Files
</a></li> | 9 <li><a class="reference internal" href="#manifest-files" id="id3">Manifest Files
</a></li> |
10 <li><a class="reference internal" href="#modules-and-instances" id="id4">Modules
and instances</a></li> | 10 <li><a class="reference internal" href="#modules-and-instances" id="id4">Modules
and instances</a></li> |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 <dd>specifies the MIME type of the embedded content; for Portable Native Client | 67 <dd>specifies the MIME type of the embedded content; for Portable Native Client |
68 modules the type must be “application/x-pnacl”. For architecture-spe
cific | 68 modules the type must be “application/x-pnacl”. For architecture-spe
cific |
69 Native Client modules the type must be “application/x-nacl”</dd> | 69 Native Client modules the type must be “application/x-nacl”</dd> |
70 </dl> | 70 </dl> |
71 </section><section id="manifest-files"> | 71 </section><section id="manifest-files"> |
72 <span id="manifest-file"></span><h2 id="manifest-files"><span id="manifest-file"
></span>Manifest Files</h2> | 72 <span id="manifest-file"></span><h2 id="manifest-files"><span id="manifest-file"
></span>Manifest Files</h2> |
73 <p>Native Client applications have two types of manifest files: a Chrome Web Sto
re | 73 <p>Native Client applications have two types of manifest files: a Chrome Web Sto
re |
74 manifest file and a Native Client manifest file.</p> | 74 manifest file and a Native Client manifest file.</p> |
75 <p>A <strong>Chrome Web Store manifest file</strong> is a file with information
about a web | 75 <p>A <strong>Chrome Web Store manifest file</strong> is a file with information
about a web |
76 application that is published in the Chrome Web Store. This file, named | 76 application that is published in the Chrome Web Store. This file, named |
77 <code>manifest.json</code>, is required for applications that are published in t
he Chrome | 77 <code>manifest.json</code>, is required for applications that are published in t
he |
78 Web Store. For more information about this file see <a class="reference internal
" href="/native-client/devguide/distributing.html"><em>Distributing Your | 78 Chrome Web Store. For more information about this file see <a class="reference i
nternal" href="/native-client/devguide/distributing.html"><em>Distributing |
79 Application</em></a>. and the <a class="reference external" href="http://code.g
oogle.com/chrome/extensions/manifest.html">Chrome Web Store manifest file format
</a>.</p> | 79 Your Application</em></a>. and the <a class="reference external" href="/extensi
ons/manifest">Chrome Web Store manifest file |
| 80 format</a>.</p> |
80 <p>A <strong>Native Client manifest file</strong> is a file that specifies which
Native Client | 81 <p>A <strong>Native Client manifest file</strong> is a file that specifies which
Native Client |
81 module (executable) to load. For PNaCl it specifies a single portable | 82 module (executable) to load. For PNaCl it specifies a single portable |
82 executable; otherwise it specifies one for each of the supported end-user | 83 executable; otherwise it specifies one for each of the supported end-user |
83 computer architectures (for example x86-32, x86-64, or ARM). This file is | 84 computer architectures (for example x86-32, x86-64, or ARM). This file is |
84 required for all Native Client applications. The extension for this file is | 85 required for all Native Client applications. The extension for this file is |
85 .nmf.</p> | 86 .nmf.</p> |
86 <p>Manifest files for applications that use PNaCl are simple. Here is the manife
st | 87 <p>Manifest files for applications that use PNaCl are simple. Here is the manife
st |
87 for the hello world example:</p> | 88 for the hello world example:</p> |
88 <pre class="prettyprint"> | 89 <pre class="prettyprint"> |
89 { | 90 { |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
207 issue a <code>crash</code> event | 208 issue a <code>crash</code> event |
208 <a class="reference internal" href="/native-client/devguide/coding/progress-even
ts.html"><em>which can be handled in Javascript</em></a>.</p> | 209 <a class="reference internal" href="/native-client/devguide/coding/progress-even
ts.html"><em>which can be handled in Javascript</em></a>.</p> |
209 <p>While the <code>CreateModule()</code> factory function, the <code>Module</cod
e> class, and the | 210 <p>While the <code>CreateModule()</code> factory function, the <code>Module</cod
e> class, and the |
210 <code>Instance</code> class are required for a Native Client application, the co
de | 211 <code>Instance</code> class are required for a Native Client application, the co
de |
211 samples shown above don’t actually do anything. Subsequent chapters in the | 212 samples shown above don’t actually do anything. Subsequent chapters in the |
212 Developer’s Guide build on these code samples and add more interesting | 213 Developer’s Guide build on these code samples and add more interesting |
213 functionality.</p> | 214 functionality.</p> |
214 </section></section> | 215 </section></section> |
215 | 216 |
216 {{/partials.standard_nacl_article}} | 217 {{/partials.standard_nacl_article}} |
OLD | NEW |