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

Side by Side Diff: native_client_sdk/src/examples/file_histogram/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 22 matching lines...) Expand all
33 33
34 // Handle a file being chosen from the <input type=file...> tag. 34 // Handle a file being chosen from the <input type=file...> tag.
35 function handleFileInput() { 35 function handleFileInput() {
36 var file_input = document.getElementById("FileInput"); 36 var file_input = document.getElementById("FileInput");
37 var files = file_input.files; 37 var files = file_input.files;
38 for(var i = 0; i < files.length; ++i) 38 for(var i = 0; i < files.length; ++i)
39 postFileContents(files[i]); 39 postFileContents(files[i]);
40 } 40 }
41 </script> 41 </script>
42 </head> 42 </head>
43 <body onload="common.onload('<NAME>', '<tc>', 256, 256)"> 43 <body onload="common.onload('<NAME>', '<tc>', '<config>', 256, 256)">
44 <h1><TITLE></h1> 44 <h1><TITLE></h1>
45 <h2>Status: <code id="statusField">NO-STATUS</code></h2> 45 <h2>Status: <code id="statusField">NO-STATUS</code></h2>
46 <input type="file" id="FileInput" onchange="handleFileInput()" multiple> 46 <input type="file" id="FileInput" onchange="handleFileInput()" multiple>
47 <!-- The NaCl plugin will be embedded inside the element with id "listener". 47 <!-- The NaCl plugin will be embedded inside the element with id "listener".
48 See common.js.--> 48 See common.js.-->
49 <div id="listener"> 49 <div id="listener">
50 <script type="text/javascript"> 50 <script type="text/javascript">
51 var listener = document.getElementById('listener'); 51 var listener = document.getElementById('listener');
52 listener.addEventListener('drop', handleFileDrop, true); 52 listener.addEventListener('drop', handleFileDrop, true);
53 </script> 53 </script>
54 </div> 54 </div>
55 </body> 55 </body>
56 </html> 56 </html>
OLDNEW
« no previous file with comments | « native_client_sdk/src/examples/dlopen/index.html ('k') | native_client_sdk/src/examples/file_io/index.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698