OLD | NEW |
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" | 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" |
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | 2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
3 <html> | 3 <html> |
4 <!-- Copyright 2008 Google Inc. All rights reserved. --> | 4 <!-- Copyright 2008 Google Inc. All rights reserved. --> |
5 <head> | 5 <head> |
6 <title>NPAPI Objects and Proxies</title> | 6 <title>NPAPI Objects and Proxies</title> |
7 <META HTTP-EQUIV="Pragma" CONTENT="no-cache" /> | 7 <META HTTP-EQUIV="Pragma" CONTENT="no-cache" /> |
8 <META HTTP-EQUIV="Expires" CONTENT="-1" /> | 8 <META HTTP-EQUIV="Expires" CONTENT="-1" /> |
9 </head> | 9 </head> |
10 <body onload="nacllib.waitForModulesAndRunTests();" | 10 <body onload="nacllib.waitForModulesAndRunTests();" |
11 onunload="nacllib.cleanUp();" > | 11 onunload="nacllib.cleanUp();" > |
12 <script type="text/javascript" src="nacl_js_lib.js"></script> | 12 <script type="text/javascript" src="nacl_js_lib.js"></script> |
13 <script type="text/javascript"> | 13 <script type="text/javascript"> |
14 //<![CDATA[ | 14 //<![CDATA[ |
15 var nacllib = new NaclLib("nacl_module", "status", 100); | 15 var nacllib = new NaclLib("nacl_module", "status", 500); |
16 | 16 |
17 nacllib.numModulesReady = function(modules) { | 17 nacllib.numModulesReady = function(modules) { |
18 var count = 0; | 18 var count = 0; |
19 for (var i = 0; i < modules.length; i++) { | 19 for (var i = 0; i < modules.length; i++) { |
20 try { | 20 try { |
21 var foo = modules[i].fillRect(); | 21 var foo = modules[i].fillRect(); |
22 count += 1; | 22 count += 1; |
23 } catch(e) { | 23 } catch(e) { |
24 // do nothing | 24 // do nothing |
25 } | 25 } |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 <div id="status">NO-STATUS</div> | 159 <div id="status">NO-STATUS</div> |
160 <div> | 160 <div> |
161 <em> | 161 <em> |
162 Note: Display canvas3 should change color about once every second, | 162 Note: Display canvas3 should change color about once every second, |
163 as embed3 demonstrates NPN_PluginThreadAsyncCall. | 163 as embed3 demonstrates NPN_PluginThreadAsyncCall. |
164 </em> | 164 </em> |
165 </div> | 165 </div> |
166 | 166 |
167 </body> | 167 </body> |
168 </html> | 168 </html> |
OLD | NEW |