Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(519)

Side by Side Diff: native_client_sdk/doc_generated/devguide/coding/message-system.html

Issue 260883006: NaCL docs: add missing generated files (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Don't touch manually updated files. Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « native_client_sdk/doc_generated/devguide/coding/application-structure.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 {{+bindTo:partials.standard_nacl_article}} 1 {{+bindTo:partials.standard_nacl_article}}
2 2
3 <section id="messaging-system"> 3 <section id="messaging-system">
4 <span id="message-system"></span><h1 id="messaging-system"><span id="message-sys tem"></span>Messaging System</h1> 4 <span id="message-system"></span><h1 id="messaging-system"><span id="message-sys tem"></span>Messaging System</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="#reference-information" id="id2">Referen ce information</a></li> 7 <li><a class="reference internal" href="#reference-information" id="id2">Referen ce information</a></li>
8 <li><p class="first"><a class="reference internal" href="#introduction-to-the-me ssaging-system" id="id3">Introduction to the messaging system</a></p> 8 <li><p class="first"><a class="reference internal" href="#introduction-to-the-me ssaging-system" id="id3">Introduction to the messaging system</a></p>
9 <ul class="small-gap"> 9 <ul class="small-gap">
10 <li><a class="reference internal" href="#design-of-the-messaging-system" id="id4 ">Design of the messaging system</a></li> 10 <li><a class="reference internal" href="#design-of-the-messaging-system" id="id4 ">Design of the messaging system</a></li>
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 <li><a class="reference external" href="/native-client/pepper_stable/cpp/classpp _1_1_instance">pp::Instance class</a> 51 <li><a class="reference external" href="/native-client/pepper_stable/cpp/classpp _1_1_instance">pp::Instance class</a>
52 HandleMessage(), PostMessage())</li> 52 HandleMessage(), PostMessage())</li>
53 <li><a class="reference external" href="/native-client/pepper_stable/cpp/classpp _1_1_module">pp::Module class</a></li> 53 <li><a class="reference external" href="/native-client/pepper_stable/cpp/classpp _1_1_module">pp::Module class</a></li>
54 <li><a class="reference external" href="/native-client/pepper_stable/cpp/classpp _1_1_var">pp::Var class</a></li> 54 <li><a class="reference external" href="/native-client/pepper_stable/cpp/classpp _1_1_var">pp::Var class</a></li>
55 </ul> 55 </ul>
56 </section><section id="introduction-to-the-messaging-system"> 56 </section><section id="introduction-to-the-messaging-system">
57 <h2 id="introduction-to-the-messaging-system">Introduction to the messaging syst em</h2> 57 <h2 id="introduction-to-the-messaging-system">Introduction to the messaging syst em</h2>
58 <p>Native Client modules and JavaScript communicate by sending messages to each 58 <p>Native Client modules and JavaScript communicate by sending messages to each
59 other. The most basic form of a message is a string. Messages support many 59 other. The most basic form of a message is a string. Messages support many
60 JavaScript types, including ints, arrays, array buffers, and dictionaries (see 60 JavaScript types, including ints, arrays, array buffers, and dictionaries (see
61 <a class="reference external" href="h/native-client/pepper_stable/cpp/classpp_1_ 1_var">pp::Var</a>, 61 <a class="reference external" href="/native-client/pepper_stable/cpp/classpp_1_1 _var">pp::Var</a>,
62 <a class="reference external" href="/native-client/pepper_stable/cpp/classpp_1_1 _var_array_buffer">pp:VarArrayBuffer</a>, and the 62 <a class="reference external" href="/native-client/pepper_stable/cpp/classpp_1_1 _var_array_buffer">pp:VarArrayBuffer</a>, and the
63 general <a class="reference external" href="/native-client/pepper_stable/c/struc t_p_p_b___messaging__1__0">messaging system documentation</a>). It&#8217;s up t o 63 general <a class="reference external" href="/native-client/pepper_stable/c/struc t_p_p_b___messaging__1__0">messaging system documentation</a>). It&#8217;s up t o
64 you to decide on the type of message and define how to process the messages on 64 you to decide on the type of message and define how to process the messages on
65 both the JavaScript and Native Client side. For the &#8220;Hello, World&#8221; e xample, we 65 both the JavaScript and Native Client side. For the &#8220;Hello, World&#8221; e xample, we
66 will work with string-typed messages only.</p> 66 will work with string-typed messages only.</p>
67 <p>When JavaScript posts a message to the Native Client module, the 67 <p>When JavaScript posts a message to the Native Client module, the
68 Pepper <code>HandleMessage()</code> function is invoked on the module 68 Pepper <code>HandleMessage()</code> function is invoked on the module
69 side. Similarly, the Native Client module can post a message to 69 side. Similarly, the Native Client module can post a message to
70 JavaScript, and this message triggers a JavaScript event listener for 70 JavaScript, and this message triggers a JavaScript event listener for
71 <code>message</code> events in the DOM. (See the W3C specification on 71 <code>message</code> events in the DOM. (See the W3C specification on
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after
366 pp::VarArray keys = dictionary.GetKeys(); 366 pp::VarArray keys = dictionary.GetKeys();
367 // ... 367 // ...
368 } else { 368 } else {
369 // ... 369 // ...
370 } 370 }
371 } 371 }
372 </pre> 372 </pre>
373 </section></section></section> 373 </section></section></section>
374 374
375 {{/partials.standard_nacl_article}} 375 {{/partials.standard_nacl_article}}
OLDNEW
« no previous file with comments | « native_client_sdk/doc_generated/devguide/coding/application-structure.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698