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

Side by Side Diff: native_client_sdk/src/examples/input_events/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 13 matching lines...) Expand all
24 if (messageArray.length > kMaxArraySize) { 24 if (messageArray.length > kMaxArraySize) {
25 messageArray.shift(); 25 messageArray.shift();
26 } 26 }
27 var newData = messageArray.join('<BR>'); 27 var newData = messageArray.join('<BR>');
28 document.getElementById('eventString').innerHTML = newData; 28 document.getElementById('eventString').innerHTML = newData;
29 // Print event to console. 29 // Print event to console.
30 console.log(message.data); 30 console.log(message.data);
31 } 31 }
32 </script> 32 </script>
33 </head> 33 </head>
34 <body onload="common.onload('<NAME>', '<tc>')"> 34 <body onload="common.onload('<NAME>', '<tc>', '<config>')">
35 <h1><TITLE></h1> 35 <h1><TITLE></h1>
36 <h2>Status: <code id="statusField">NO-STATUS</code></h2> 36 <h2>Status: <code id="statusField">NO-STATUS</code></h2>
37 37
38 <p>This example demonstrates handling of input events in PPAPI.</p> 38 <p>This example demonstrates handling of input events in PPAPI.</p>
39 <p>Each time an input event happens in the context of the gray box, the 39 <p>Each time an input event happens in the context of the gray box, the
40 embedded NaCl module posts a message describing the event back to JavaScript, 40 embedded NaCl module posts a message describing the event back to JavaScript,
41 which prints a message to the JavaScript console in Chrome and to a string on 41 which prints a message to the JavaScript console in Chrome and to a string on
42 the page.</p> 42 the page.</p>
43 43
44 <!-- The NaCl plugin will be embedded inside the element with id "listener". 44 <!-- The NaCl plugin will be embedded inside the element with id "listener".
45 See common.js.--> 45 See common.js.-->
46 <div id="listener"></div> 46 <div id="listener"></div>
47 <h2>Events</h2> 47 <h2>Events</h2>
48 <pre> 48 <pre>
49 <p><b id='eventString'>None</b></p> 49 <p><b id='eventString'>None</b></p>
50 </pre> 50 </pre>
51 </body> 51 </body>
52 </html> 52 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698