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

Unified Diff: native_client_sdk/src/examples/tutorial/filesystem_passing/index.html

Issue 690403002: [NaCl SDK] Add filesystem passing example. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix verify Created 6 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: native_client_sdk/src/examples/tutorial/filesystem_passing/index.html
diff --git a/native_client_sdk/src/examples/tutorial/filesystem_passing/index.html b/native_client_sdk/src/examples/tutorial/filesystem_passing/index.html
new file mode 100644
index 0000000000000000000000000000000000000000..4b40230bd31cfe0f985bc4f7ade262dcbd68a7bb
--- /dev/null
+++ b/native_client_sdk/src/examples/tutorial/filesystem_passing/index.html
@@ -0,0 +1,36 @@
+<!DOCTYPE html>
+<html>
+ <!--
+ Copyright (c) 2014 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 {{attrs}}>
+ <h1>{{title}}</h1>
+ <h2>Status: <code id="statusField">NO-STATUS</code></h2>
+ <p>
+ This example shows how to pass a Chrome FileSystem to the Native Client
+ module. The standard Pepper FileSystem (see examples/api/file_io) only
+ allows you to write to a sandboxed filesystem, but the Chrome FileSystem
+ allows you to write directly to a directory on the user's filesystem.
+ </p>
+ <p>The Chrome FileSystem is only supported for Chrome Apps.</p>
+ <p>
+ Click the button below and choose a directory. A new FileSystem will be
+ created which contains that directory. It will then be passed to the Native
+ Client module, where it will be used to write a file in that directory
+ called hello_from_nacl.txt.
+ </p>
+ <div>
+ <input type="button" id="choosedir" value="Choose Directory">
+ <pre id="log"></pre>
+ <div id="listener"></div>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698