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

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

Issue 14500010: [NaCl SDK] Google Drive example (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove key from build_app generated manifest Created 7 years, 7 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/drive/index.html
diff --git a/native_client_sdk/src/examples/demo/drive/index.html b/native_client_sdk/src/examples/demo/drive/index.html
new file mode 100644
index 0000000000000000000000000000000000000000..47fe15e5cfa8209b1a8a58f8e3f4d000e7eb9171
--- /dev/null
+++ b/native_client_sdk/src/examples/demo/drive/index.html
@@ -0,0 +1,51 @@
+<!DOCTYPE html>
+<html>
+<!--
+Copyright (c) 2013 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 demonstrates reading from and writing to your Google Drive
+ account. To run:
+ <ol>
+ <li>
+ Click the "Sign In" button below to authorize access to your
+ account.
+ </li>
+ <li>
+ Click the "Get File" button to read the file "hello nacl.txt" from your
+ account.
+ <ul>
+ <li>If it exists, it will be modified.</li>
+ <li>If it doesn't exist, it will be created.</li>
+ </ul>
+ </li>
+ <li>
+ The file will be downloaded, and the contents displayed below. Try
+ looking on
+ <a href="https://drive.google.com" target="_blank">Google Drive</a> to
+ see the changes as well!
+ </li>
+ </ol>
+ </p>
+ <button id="signIn" hidden>Sign In</button>
+ <button id="getFile" hidden>Get File</button>
+ <div id="listener"></div>
+ <pre id="log"></pre>
+ <div>
+ File Contents:
+ <pre style="border: 1px solid #ccc" id="contents"></pre>
+ </div>
+</body>
+</html>
« no previous file with comments | « native_client_sdk/src/examples/demo/drive/example.js ('k') | native_client_sdk/src/examples/resources/manifest.json.template » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698