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

Unified Diff: native_client_sdk/src/examples/demo/nacl_io_demo/index.html

Issue 2156503002: [NaCl SDK] Expose Google Drive to nacl_io. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 side-by-side diff with in-line comments
Download patch
Index: native_client_sdk/src/examples/demo/nacl_io_demo/index.html
diff --git a/native_client_sdk/src/examples/demo/nacl_io_demo/index.html b/native_client_sdk/src/examples/demo/nacl_io_demo/index.html
index bf9d7ea30dc9de448f580398fa05025d1410adfd..aff6308ea0cec63a607b52069b4ea30dd5df05b5 100644
--- a/native_client_sdk/src/examples/demo/nacl_io_demo/index.html
+++ b/native_client_sdk/src/examples/demo/nacl_io_demo/index.html
@@ -25,7 +25,7 @@ found in the LICENSE file.
directories, the mount determines how those operations should be performed.
</p>
<p>
- This example has four mounts by default.
+ This example has five mounts by default.
<ol>
<li><i>/</i> the root of the filesystem. This is a memory mount, and
is non-persistent.</li>
@@ -35,6 +35,11 @@ found in the LICENSE file.
/http/index.html.</li>
<li><i>/dev</i> a mount containing some utility files. /dev/null,
/dev/zero, etc.</li>
+ <li><i>/googledrive</i> a Google Drive mount. Before using, client ID
+ and client secret, created from Google Developers Console, have to
+ be filled in in example.js. When they have already been filled,
+ use makefile on nacl_io_demo, and click on the sign-in button to
+ expose Google Drive to nacl_io.</li>
</ol>
</p>
<p>
@@ -43,6 +48,12 @@ found in the LICENSE file.
API, an app must be a packaged app with the appropriate socket permissions
specified in the manifest file.
<hr>
+ <p><b>Google account sign-in for Google Drive mount:</b></p>
+ <button id="buttonsignin" onclick="buttonOnClick()">Sign in</button>
+ <script>
+ executeAfterGettingCode();
+ </script>
+ <hr>
<p><b>File Operations:</b></p>
<div>
<span>

Powered by Google App Engine
This is Rietveld 408576698