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

Unified Diff: native_client_sdk/src/examples/hello_nacl_mounts/index.html

Issue 11190066: [NaCl SDK] nacl-mounts example. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix windows Created 8 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: native_client_sdk/src/examples/hello_nacl_mounts/index.html
diff --git a/native_client_sdk/src/examples/hello_nacl_mounts/index.html b/native_client_sdk/src/examples/hello_nacl_mounts/index.html
new file mode 100644
index 0000000000000000000000000000000000000000..4116316fbe4fb16e4f12e30a393e723b71a3564a
--- /dev/null
+++ b/native_client_sdk/src/examples/hello_nacl_mounts/index.html
@@ -0,0 +1,79 @@
+<!DOCTYPE html>
+<html>
+<!--
+Copyright (c) 2012 The Chromium Authors. All rights reserved.
+Use of this source code is governed by a BSD-style license that can be
+found in the LICENSE file.
+-->
+<head>
+ <meta http-equiv="Pragma" content="no-cache">
+ <meta http-equiv="Expires" content="-1">
+ <title><TITLE></title>
+ <script type="text/javascript" src="common.js"></script>
+ <script type="text/javascript" src="example.js"></script>
+</head>
+<body data-name="<NAME>" data-tc="<tc>" data-path="<path>">
+ <h1><TITLE></h1>
+ <h2>Status: <code id="statusField">NO-STATUS</code></h2>
+ <div>
+ <span>
+ <input type="radio" id="radiofopen" name="group" checked="checked">fopen
+ <input type="radio" id="radiofclose" name="group">fclose
+ <input type="radio" id="radiofread" name="group">fread
+ <input type="radio" id="radiofwrite" name="group">fwrite
+ <input type="radio" id="radiofseek" name="group">fseek
+ </span>
+ </div>
+ <div class="function" id="fopen">
+ <span>
+ Filename:
+ <input type="text" id="fopenFilename">
+ Write:
+ <input type="checkbox" id="fopenWrite">
+ Read:
+ <input type="checkbox" id="fopenRead">
+ <button id="fopenExecute">fopen</button>
+ </span>
+ </div>
+ <div class="function" id="fclose" hidden>
+ <span>
+ <select class="file-handle" id="fcloseHandle"></select>
+ <button id="fcloseExecute">fclose</button>
+ </span>
+ </div>
+ <div class="function" id="fread" hidden>
+ <span>
+ <select class="file-handle" id="freadHandle"></select>
+ Count:
+ <input type="text" id="freadBytes">
+ <button id="freadExecute">fread</button>
+ </span>
+ </div>
+ <div class="function" id="fwrite" hidden>
+ <span>
+ <select class="file-handle" id="fwriteHandle"></select>
+ Data:
+ <input type="text" id="fwriteData">
+ <button id="fwriteExecute">fwrite</button>
+ </span>
+ </div>
+ <div class="function" id="fseek" hidden>
+ <span>
+ <select class="file-handle" id="fseekHandle"></select>
+ Offset:
+ <input type="text" id="fseekOffset">
+ Whence:
+ <select id="fseekWhence">
+ <option value="SEEK_SET">SEEK_SET</option>
+ <option value="SEEK_CUR">SEEK_CUR</option>
+ <option value="SEEK_END">SEEK_END</option>
+ </select>
+ <button id="fseekExecute">fseek</button>
+ </span>
+ </div>
+ <!-- The NaCl plugin will be embedded inside the element with id "listener".
+ See common.js.-->
+ <div id="listener"></div>
+ <div id="log"></div>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698