| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <!-- | 3 <!-- |
| 4 Copyright (c) 2010 The Native Client Authors. All rights reserved. | 4 Copyright (c) 2010 The Native Client 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 <title>PPAPI InputEvent test</title> | 9 <title>PPAPI InputEvent test</title> |
| 10 | 10 |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 } | 30 } |
| 31 } | 31 } |
| 32 </script> | 32 </script> |
| 33 </head> | 33 </head> |
| 34 <body> | 34 <body> |
| 35 <h1>InputEvent Handling Example</h1> | 35 <h1>InputEvent Handling Example</h1> |
| 36 <embed name="nacl_module" | 36 <embed name="nacl_module" |
| 37 id="event_module" | 37 id="event_module" |
| 38 width=400 height=400 | 38 width=400 height=400 |
| 39 src="ppapi_event_example.nexe" | 39 src="ppapi_event_example.nexe" |
| 40 type="application/x-ppapi-nacl-srpc" | 40 type="application/x-nacl" |
| 41 style="background-color:gray" | 41 style="background-color:gray" |
| 42 onload="moduleDidLoad();" /> | 42 onload="moduleDidLoad();" /> |
| 43 <p> | 43 <p> |
| 44 This example demonstrates input events in ppapi. Each time an input event | 44 This example demonstrates input events in ppapi. Each time an input event |
| 45 happens in the context of the gray box, the embedded NaCl module prints a | 45 happens in the context of the gray box, the embedded NaCl module prints a |
| 46 message describing the event to the shell where you started your Browser. | 46 message describing the event to the shell where you started your Browser. |
| 47 Alternatively, you can click the "Get Events" button to display | 47 Alternatively, you can click the "Get Events" button to display |
| 48 all input events that have happened since the last time you clicked the | 48 all input events that have happened since the last time you clicked the |
| 49 button. | 49 button. |
| 50 </p> | 50 </p> |
| 51 <form name="event_form" action="" method="get"> | 51 <form name="event_form" action="" method="get"> |
| 52 <input type="button" value="Get Events" onclick="getEvents()"/> | 52 <input type="button" value="Get Events" onclick="getEvents()"/> |
| 53 </form> | 53 </form> |
| 54 | 54 |
| 55 <h2>Recent Events (press button to update):</h2> | 55 <h2>Recent Events (press button to update):</h2> |
| 56 <pre id=event_dump> | 56 <pre id=event_dump> |
| 57 no events | 57 no events |
| 58 </pre> | 58 </pre> |
| 59 </body> | 59 </body> |
| 60 </html> | 60 </html> |
| OLD | NEW |