| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 aM = null; | 5 aM = null; |
| 6 | 6 |
| 7 function moduleLoad() { | 7 function moduleLoad() { |
| 8 hideStatus(); | 8 hideStatus(); |
| 9 init(); | 9 init(); |
| 10 animate(); | 10 animate(); |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 embedWrap.addEventListener('error', moduleLoadError, true); | 68 embedWrap.addEventListener('error', moduleLoadError, true); |
| 69 embedWrap.addEventListener('progress', moduleLoadProgress, true); | 69 embedWrap.addEventListener('progress', moduleLoadProgress, true); |
| 70 embedWrap.addEventListener('crash', moduleCrash, true); | 70 embedWrap.addEventListener('crash', moduleCrash, true); |
| 71 document.body.appendChild(embedWrap); | 71 document.body.appendChild(embedWrap); |
| 72 | 72 |
| 73 var embed = document.createElement('embed'); | 73 var embed = document.createElement('embed'); |
| 74 embed.setAttribute('id', 'NaClAM'); | 74 embed.setAttribute('id', 'NaClAM'); |
| 75 embed.setAttribute('width', '0'); | 75 embed.setAttribute('width', '0'); |
| 76 embed.setAttribute('height', '0'); | 76 embed.setAttribute('height', '0'); |
| 77 embed.setAttribute('type', 'application/x-pnacl'); | 77 embed.setAttribute('type', 'application/x-pnacl'); |
| 78 embed.setAttribute('src', 'http://commondatastorage.googleapis.com/gonacl/demo
s/publish/229855/bullet/NaClAMBullet.nmf'); | 78 embed.setAttribute('src', 'http://commondatastorage.googleapis.com/gonacl/demo
s/publish/233080/bullet/NaClAMBullet.nmf'); |
| 79 embedWrap.appendChild(embed); | 79 embedWrap.appendChild(embed); |
| 80 } | 80 } |
| 81 | 81 |
| 82 window.addEventListener("load", pageDidLoad, false); | 82 window.addEventListener("load", pageDidLoad, false); |
| OLD | NEW |