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

Side by Side Diff: native_client_sdk/src/examples/hello_world_interactive/index.html

Issue 10828187: [NaCl SDK] Support multiple configs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <!-- 3 <!--
4 Copyright (c) 2012 The Chromium Authors. All rights reserved. 4 Copyright (c) 2012 The Chromium Authors. All rights reserved.
5 Use of this source code is governed by a BSD-style license that can be 5 Use of this source code is governed by a BSD-style license that can be
6 found in the LICENSE file. 6 found in the LICENSE file.
7 --> 7 -->
8 <head> 8 <head>
9 <meta http-equiv="Pragma" content="no-cache"> 9 <meta http-equiv="Pragma" content="no-cache">
10 <meta http-equiv="Expires" content="-1"> 10 <meta http-equiv="Expires" content="-1">
(...skipping 14 matching lines...) Expand all
25 // Grab the text from the text box, pass it into reverseText() 25 // Grab the text from the text box, pass it into reverseText()
26 var inputBox = document.getElementById('inputBox'); 26 var inputBox = document.getElementById('inputBox');
27 common.naclModule.postMessage('reverseText:' + inputBox.value); 27 common.naclModule.postMessage('reverseText:' + inputBox.value);
28 } 28 }
29 29
30 function handleMessage(message_event) { 30 function handleMessage(message_event) {
31 alert(message_event.data); 31 alert(message_event.data);
32 } 32 }
33 </script> 33 </script>
34 </head> 34 </head>
35 <body onload="common.onload('<NAME>', '<tc>')"> 35 <body onload="common.onload('<NAME>', '<tc>', '<config>')">
36 <h1>Native Client Simple Module</h1> 36 <h1>Native Client Simple Module</h1>
37 <h2>Status: <code id="statusField">NO-STATUS</code></h2> 37 <h2>Status: <code id="statusField">NO-STATUS</code></h2>
38 <!-- The NaCl plugin will be embedded inside the element with id "listener". 38 <!-- The NaCl plugin will be embedded inside the element with id "listener".
39 See common.js.--> 39 See common.js.-->
40 <div id="listener"></div> 40 <div id="listener"></div>
41 <textarea id="inputBox" rows="4" cols="50">Hello World</textarea> 41 <textarea id="inputBox" rows="4" cols="50">Hello World</textarea>
42 <div> 42 <div>
43 <button onclick="fortyTwo()">Call fortyTwo()</button> 43 <button onclick="fortyTwo()">Call fortyTwo()</button>
44 <button onclick="reverseText()">Call reverseText()</button> 44 <button onclick="reverseText()">Call reverseText()</button>
45 <div/> 45 <div/>
46 </body> 46 </body>
47 </html> 47 </html>
OLDNEW
« no previous file with comments | « native_client_sdk/src/examples/hello_world_gles/index.html ('k') | native_client_sdk/src/examples/input_events/index.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698