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

Side by Side Diff: native_client_sdk/src/examples/pong/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 28 matching lines...) Expand all
39 <h1><TITLE></h1> 39 <h1><TITLE></h1>
40 <h2>Status: <code id="statusField">NO-STATUS</code></h2> 40 <h2>Status: <code id="statusField">NO-STATUS</code></h2>
41 <!-- The NaCl plugin will be embedded inside the element with id "listener". 41 <!-- The NaCl plugin will be embedded inside the element with id "listener".
42 See common.js.--> 42 See common.js.-->
43 <div id="listener"> 43 <div id="listener">
44 <script type="text/javascript"> 44 <script type="text/javascript">
45 window.webkitStorageInfo.requestQuota(window.PERSISTENT, 1024, 45 window.webkitStorageInfo.requestQuota(window.PERSISTENT, 1024,
46 function(bytes) { 46 function(bytes) {
47 common.updateStatus( 47 common.updateStatus(
48 'Allocated '+bytes+' bytes of persistent storage.'); 48 'Allocated '+bytes+' bytes of persistent storage.');
49 common.createNaClModule('<NAME>', '<tc>', 800, 600); 49 common.createNaClModule('<NAME>', '<tc>', '<config>', 800, 600);
50 common.attachDefaultListeners(); 50 common.attachDefaultListeners();
51 }, 51 },
52 function(e) { alert('Failed to allocate space'); }); 52 function(e) { alert('Failed to allocate space'); });
53 </script> 53 </script>
54 </div> 54 </div>
55 <p id="score"></p> 55 <p id="score"></p>
56 <button onclick="resetScore()">Reset score</button> 56 <button onclick="resetScore()">Reset score</button>
57 <p id="error_log"></p> 57 <p id="error_log"></p>
58 </body> 58 </body>
59 </html> 59 </html>
OLDNEW
« no previous file with comments | « native_client_sdk/src/examples/pi_generator/index.html ('k') | native_client_sdk/src/examples/sine_synth/index.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698