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

Side by Side Diff: native_client_sdk/doc_generated/devguide/tutorial/tutorial-part2.html

Issue 531183002: Add data-path restriction to tutorial, part 2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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
OLDNEW
1 {{+bindTo:partials.standard_nacl_article}} 1 {{+bindTo:partials.standard_nacl_article}}
2 2
3 <section id="c-tutorial-getting-started-part-2"> 3 <section id="c-tutorial-getting-started-part-2">
4 <span id="tutorial2"></span><h1 id="c-tutorial-getting-started-part-2"><span id= "tutorial2"></span>C++ Tutorial: Getting Started (Part 2)</h1> 4 <span id="tutorial2"></span><h1 id="c-tutorial-getting-started-part-2"><span id= "tutorial2"></span>C++ Tutorial: Getting Started (Part 2)</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="#overview" id="id1">Overview</a></li> 7 <li><a class="reference internal" href="#overview" id="id1">Overview</a></li>
8 <li><p class="first"><a class="reference internal" href="#using-the-native-clien t-sdk-build-system" id="id2">Using the Native Client SDK build system</a></p> 8 <li><p class="first"><a class="reference internal" href="#using-the-native-clien t-sdk-build-system" id="id2">Using the Native Client SDK build system</a></p>
9 <ul class="small-gap"> 9 <ul class="small-gap">
10 <li><a class="reference internal" href="#simplifying-the-makefile" id="id3">Simp lifying the Makefile</a></li> 10 <li><a class="reference internal" href="#simplifying-the-makefile" id="id3">Simp lifying the Makefile</a></li>
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 <pre class="prettyprint"> 245 <pre class="prettyprint">
246 &lt;body data-name=&quot;part2&quot; 246 &lt;body data-name=&quot;part2&quot;
247 data-tools=&quot;newlib glibc pnacl&quot; 247 data-tools=&quot;newlib glibc pnacl&quot;
248 data-configs=&quot;Debug Release&quot; 248 data-configs=&quot;Debug Release&quot;
249 data-path=&quot;{tc}/{config}&quot;&gt; 249 data-path=&quot;{tc}/{config}&quot;&gt;
250 ... 250 ...
251 </pre> 251 </pre>
252 <p><code>common.js</code> will read these data attributes to allow you to load t he same 252 <p><code>common.js</code> will read these data attributes to allow you to load t he same
253 example with different toolchains by changing the URL&#8217;s <a class="referenc e external" href="http://en.wikipedia.org/wiki/Query_string">query string</a>. F or example, you can load the 253 example with different toolchains by changing the URL&#8217;s <a class="referenc e external" href="http://en.wikipedia.org/wiki/Query_string">query string</a>. F or example, you can load the
254 glibc Debug version of this example by navigating to 254 glibc Debug version of this example by navigating to
255 <code>index.html?tc=glibc&amp;config=Debug</code>.</p> 255 <code>index.html?tc=glibc&amp;config=Debug</code>. Path URI&#8217;s such as <co de>../</code>, for example
256 do not work for either the data-path parameter or its corresponding query
257 string.</p>
256 <p>Next, we remove the <code>embed</code> element that is described in HTML. Thi s will be 258 <p>Next, we remove the <code>embed</code> element that is described in HTML. Thi s will be
257 automatically added for us by <code>common.js</code>, based on the current 259 automatically added for us by <code>common.js</code>, based on the current
258 toolchain/configuration combination:</p> 260 toolchain/configuration combination:</p>
259 <pre class="prettyprint"> 261 <pre class="prettyprint">
260 &lt;!-- 262 &lt;!--
261 Just as in part1, the &lt;embed&gt; element will be wrapped inside the &lt;div&g t; 263 Just as in part1, the &lt;embed&gt; element will be wrapped inside the &lt;div&g t;
262 element with the id &quot;listener&quot;. In part1, the embed was specified in H TML, 264 element with the id &quot;listener&quot;. In part1, the embed was specified in H TML,
263 here the common.js module creates a new &lt;embed&gt; element and adds it to the 265 here the common.js module creates a new &lt;embed&gt; element and adds it to the
264 &lt;div&gt; for us. 266 &lt;div&gt; for us.
265 --&gt; 267 --&gt;
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
419 // This function is called by common.js when a message is received from the 421 // This function is called by common.js when a message is received from the
420 // NaCl module. 422 // NaCl module.
421 function handleMessage(message) { 423 function handleMessage(message) {
422 var logEl = document.getElementById('log'); 424 var logEl = document.getElementById('log');
423 logEl.textContent += message.data; 425 logEl.textContent += message.data;
424 } 426 }
425 </pre> 427 </pre>
426 </section> 428 </section>
427 429
428 {{/partials.standard_nacl_article}} 430 {{/partials.standard_nacl_article}}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698