OLD | NEW |
1 {{+bindTo:partials.standard_nacl_api}} | 1 {{+bindTo:partials.standard_nacl_api}} |
2 | 2 |
3 <section id="progress-events"> | 3 <section id="progress-events"> |
4 <h1 id="progress-events">Progress Events</h1> | 4 <h1 id="progress-events">Progress Events</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="#module-loading-and-progress-events" id=
"id3">Module loading and progress events</a></li> | 7 <li><a class="reference internal" href="#module-loading-and-progress-events" id=
"id3">Module loading and progress events</a></li> |
8 <li><a class="reference internal" href="#handling-progress-events" id="id4">Hand
ling progress events</a></li> | 8 <li><a class="reference internal" href="#handling-progress-events" id="id4">Hand
ling progress events</a></li> |
9 <li><a class="reference internal" href="#displaying-load-status" id="id5">Displa
ying load status</a></li> | 9 <li><a class="reference internal" href="#displaying-load-status" id="id5">Displa
ying load status</a></li> |
10 <li><a class="reference internal" href="#the-lasterror-attribute" id="id6">The <
code>lastError</code> attribute</a></li> | 10 <li><a class="reference internal" href="#the-lasterror-attribute" id="id6">The <
code>lastError</code> attribute</a></li> |
11 <li><a class="reference internal" href="#the-readystate-attribute" id="id7">The
<code>readyState</code> attribute</a></li> | 11 <li><a class="reference internal" href="#the-readystate-attribute" id="id7">The
<code>readyState</code> attribute</a></li> |
12 <li><a class="reference internal" href="#the-exitstatus-attribute" id="id8">The
<code>exitStatus</code> attribute</a></li> | 12 <li><a class="reference internal" href="#the-exitstatus-attribute" id="id8">The
<code>exitStatus</code> attribute</a></li> |
13 </ul> | 13 </ul> |
14 | 14 |
15 </div><p>There are five types of events that developers can respond to in Native
Client: | 15 </div><p>There are five types of events that developers can respond to in Native
Client: |
16 progress, message, view change, focus, and input events (each described in the | 16 progress, message, view change, focus, and input events (each described in the |
17 glossary below). This chapter describes how to monitor progress events (events | 17 glossary below). This section describes how to monitor progress events (events |
18 that occur during the loading and execution of a Native Client module). This | 18 that occur during the loading and execution of a Native Client module). This |
19 chapter assumes you are familiar with the material presented in the | 19 section assumes you are familiar with the material presented in the |
20 <a class="reference internal" href="/native-client/overview.html"><em>Technical
Overview</em></a>.</p> | 20 <a class="reference internal" href="/native-client/overview.html"><em>Technical
Overview</em></a>.</p> |
21 <aside class="note"> | 21 <aside class="note"> |
22 The load_progress example illustrates progress event handling. You can find | 22 The load_progress example illustrates progress event handling. You can find |
23 this code in the <code>/examples/tutorial/load_progress/</code> directory in the
Native | 23 this code in the <code>/examples/tutorial/load_progress/</code> directory in the
Native |
24 Client SDK download. | 24 Client SDK download. |
25 </aside> | 25 </aside> |
26 <section id="module-loading-and-progress-events"> | 26 <section id="module-loading-and-progress-events"> |
27 <h2 id="module-loading-and-progress-events">Module loading and progress events</
h2> | 27 <h2 id="module-loading-and-progress-events">Module loading and progress events</
h2> |
28 <p>The Native Client runtime reports a set of state changes during the module | 28 <p>The Native Client runtime reports a set of state changes during the module |
29 loading process by means of DOM progress events. This set of events is a direct | 29 loading process by means of DOM progress events. This set of events is a direct |
(...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
425 <code>n</code> (between 0 and 255).</li> | 425 <code>n</code> (between 0 and 255).</li> |
426 <li>In the case of crashes and calls to <code>abort()</code>, the numeric value
will | 426 <li>In the case of crashes and calls to <code>abort()</code>, the numeric value
will |
427 be non-zero, but the exact value will depend on the chosen libc and the | 427 be non-zero, but the exact value will depend on the chosen libc and the |
428 target architecture, and may change in the future. Applications should not | 428 target architecture, and may change in the future. Applications should not |
429 rely on the <code>exitStatus</code> value being stable in these cases, but the v
alue | 429 rely on the <code>exitStatus</code> value being stable in these cases, but the v
alue |
430 may nevertheless be useful for temporary debugging.</li> | 430 may nevertheless be useful for temporary debugging.</li> |
431 </ul> | 431 </ul> |
432 </section></section> | 432 </section></section> |
433 | 433 |
434 {{/partials.standard_nacl_api}} | 434 {{/partials.standard_nacl_api}} |
OLD | NEW |