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>/pepper_<version>/examples/tutorial/load_progress/<
/code> | 23 this code in the <code>/pepper_<version>/examples/tutorial/load_progress/<
/code> |
24 directory in the Native Client SDK download. | 24 directory in the Native Client SDK download. |
25 </aside> | 25 </aside> |
26 <h2 id="module-loading-and-progress-events">Module loading and progress events</
h2> | 26 <h2 id="module-loading-and-progress-events">Module loading and progress events</
h2> |
27 <p>The Native Client runtime reports a set of state changes during the module | 27 <p>The Native Client runtime reports a set of state changes during the module |
28 loading process by means of DOM progress events. This set of events is a direct | 28 loading process by means of DOM progress events. This set of events is a direct |
29 port of the proposed W3C <a class="reference external" href="http://www.w3.org/T
R/progress-events/">Progress Events</a> standard (except for the <code>crash</co
de> | 29 port of the proposed W3C <a class="reference external" href="http://www.w3.org/T
R/progress-events/">Progress Events</a> standard (except for the <code>crash</co
de> |
(...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
419 <code>n</code> (between 0 and 255).</li> | 419 <code>n</code> (between 0 and 255).</li> |
420 <li>In the case of crashes and calls to <code>abort()</code>, the numeric value
will | 420 <li>In the case of crashes and calls to <code>abort()</code>, the numeric value
will |
421 be non-zero, but the exact value will depend on the chosen libc and the | 421 be non-zero, but the exact value will depend on the chosen libc and the |
422 target architecture, and may change in the future. Applications should not | 422 target architecture, and may change in the future. Applications should not |
423 rely on the <code>exitStatus</code> value being stable in these cases, but the v
alue | 423 rely on the <code>exitStatus</code> value being stable in these cases, but the v
alue |
424 may nevertheless be useful for temporary debugging.</li> | 424 may nevertheless be useful for temporary debugging.</li> |
425 </ul> | 425 </ul> |
426 </section> | 426 </section> |
427 | 427 |
428 {{/partials.standard_nacl_api}} | 428 {{/partials.standard_nacl_api}} |
OLD | NEW |