OLD | NEW |
1 {{+bindTo:partials.standard_nacl_article}} | 1 {{+bindTo:partials.standard_nacl_article}} |
2 | 2 |
3 <section id="view-change-focus-and-input-events"> | 3 <b><font color="#cc0000"> |
4 <span id="view-focus-input-events"></span><h1 id="view-change-focus-and-input-ev
ents"><span id="view-focus-input-events"></span>View Change, Focus, and Input Ev
ents</h1> | 4 NOTE: |
| 5 Deprecation of the technologies described here has been announced |
| 6 for platforms other than ChromeOS.<br/> |
| 7 Please visit our |
| 8 <a href="/native-client/migration">migration guide</a> |
| 9 for details. |
| 10 </font></b> |
| 11 <hr/><section id="view-change-focus-and-input-events"> |
| 12 <h1 id="view-change-focus-and-input-events">View Change, Focus, and Input Events
</h1> |
5 <div class="contents local" id="contents" style="display: none"> | 13 <div class="contents local" id="contents" style="display: none"> |
6 <ul class="small-gap"> | 14 <ul class="small-gap"> |
7 <li><a class="reference internal" href="#overview" id="id2">Overview</a></li> | 15 <li><a class="reference internal" href="#overview" id="id2">Overview</a></li> |
8 <li><p class="first"><a class="reference internal" href="#handling-browser-event
s" id="id3">Handling browser events</a></p> | 16 <li><p class="first"><a class="reference internal" href="#handling-browser-event
s" id="id3">Handling browser events</a></p> |
9 <ul class="small-gap"> | 17 <ul class="small-gap"> |
10 <li><a class="reference internal" href="#didchangeview" id="id4">DidChangeView()
</a></li> | 18 <li><a class="reference internal" href="#didchangeview" id="id4">DidChangeView()
</a></li> |
11 <li><a class="reference internal" href="#didchangefocus" id="id5">DidChangeFocus
()</a></li> | 19 <li><a class="reference internal" href="#didchangefocus" id="id5">DidChangeFocus
()</a></li> |
12 </ul> | 20 </ul> |
13 </li> | 21 </li> |
14 <li><p class="first"><a class="reference internal" href="#handling-input-events"
id="id6">Handling input events</a></p> | 22 <li><p class="first"><a class="reference internal" href="#handling-input-events"
id="id6">Handling input events</a></p> |
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
304 <h3 id="threading-and-blocking">Threading and blocking</h3> | 312 <h3 id="threading-and-blocking">Threading and blocking</h3> |
305 <p><code>HandleInputEvent()</code> in this example runs on the main module threa
d. | 313 <p><code>HandleInputEvent()</code> in this example runs on the main module threa
d. |
306 However, the bulk of the work happens on a separate worker thread (see | 314 However, the bulk of the work happens on a separate worker thread (see |
307 <code>ProcessEventOnWorkerThread</code>). <code>HandleInputEvent()</code> puts e
vents in | 315 <code>ProcessEventOnWorkerThread</code>). <code>HandleInputEvent()</code> puts e
vents in |
308 the <code>event_queue_</code> and the worker thread takes events from the | 316 the <code>event_queue_</code> and the worker thread takes events from the |
309 <code>event_queue_</code>. This processing happens independently of the main | 317 <code>event_queue_</code>. This processing happens independently of the main |
310 thread, so as not to slow down the browser.</p> | 318 thread, so as not to slow down the browser.</p> |
311 </section> | 319 </section> |
312 | 320 |
313 {{/partials.standard_nacl_article}} | 321 {{/partials.standard_nacl_article}} |
OLD | NEW |