OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <!-- |
| 4 Copyright 2014 The Chromium Authors. All rights reserved. |
| 5 Use of this source code is governed by a BSD-style license that can be |
| 6 found in the LICENSE file. |
| 7 --> |
| 8 <head> |
| 9 |
| 10 <title>Simple Touch Drawing Pepper Plugin</title> |
| 11 |
| 12 <script type="text/javascript"> |
| 13 // Telemetry will wait until page and plugin module are loaded to send |
| 14 // touch events. |
| 15 var pageLoaded = false; |
| 16 var moduleLoaded = false; |
| 17 |
| 18 function moduleDidLoad() { |
| 19 moduleLoaded = true; |
| 20 } |
| 21 function pageDidLoad() { |
| 22 pageLoaded = true; |
| 23 } |
| 24 </script> |
| 25 </head> |
| 26 <body onload="pageDidLoad()"> |
| 27 <div id="listener"> |
| 28 <script type="text/javascript"> |
| 29 var listener = document.getElementById('listener'); |
| 30 listener.addEventListener('load', moduleDidLoad, true); |
| 31 </script> |
| 32 |
| 33 <embed id="touch_drawing_plugin" |
| 34 width="640" height="640" |
| 35 src="extra_data/touch_drawing_plugin.nmf" |
| 36 type="application/x-pnacl" /> |
| 37 </div> |
| 38 </body> |
| 39 </html> |
OLD | NEW |