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

Side by Side Diff: native_client_sdk/src/examples/dlopen/dlopen.html

Issue 9234043: Support GLBIC example. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: re-enable the full build Created 8 years, 10 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
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 <html>
Brad Chen 2012/01/28 01:00:52 Please ask an HTML person to review this.
2 <head>
3 <title>dlopen test</title>
4 <script type="text/javascript">
5
6 function moduleDidLoad() {
7 }
8
9 function handleMessage(message_event) {
10 if(message_event.data=='Eightball loaded!')
11 {
12 document.getElementById('consolec').innerHTML = " Eightb all loaded, type a question below, press the button, and get a response.<br />" ;
13 document.getElementById('consolec').innerHTML += " <form name='form'><input type='textarea' size='64' name='inputtext' /><INPUT TYPE='bu tton' NAME='button' Value='ASK!' onClick='askBall()'></form>";
14
15 }
16 else if(message_event.data[0]=='!')
17 {
18 document.getElementById('answerlog').innerHTML += (document.form .inputtext.value + ": " + message_event.data +"<br />");
19 }
20 else
21 {
22 document.getElementById('consolec').innerHTML += message _event.data + "<br />";
23 console.log(message_event.data);
24 }
25 }
26
27 function pageDidUnload() {
28 clearInterval(paintInterval);
29 }
30
31 function askBall()
32 {
33 dlopen.postMessage('query');
34
35 }
36 </script>
37 </head>
38 <body id="bodyId" onunload="pageDidUnload()">
39
40 <div id="listener">
41 <script type="text/javascript">
42 var listener = document.getElementById('listener')
43 listener.addEventListener('load', moduleDidLoad, true);
44 listener.addEventListener('message', handleMessage, true);
45 </script>
46 <h1>The Magic 8 Ball </h1>
47 <embed name="nacl_module"
48 id="dlopen"
49 width=1 height=1
50 src="dlopen.nmf"
51 type="application/x-nacl" />
52 </div>
53 <br />
54 <div id="consolec">..loading dynamic librarires...
55 </div>
56
57 <div id="answerlog">
58 </div>
59
60 </body>
61 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698