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

Unified Diff: native_client_sdk/src/doc/cds2014/cpp_summary.inc

Issue 731453002: Adding two codelabs for cds2014. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixes Created 6 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
« no previous file with comments | « native_client_sdk/src/doc/cds2014/cpp.rst ('k') | native_client_sdk/src/doc/cds2014/index.rst » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: native_client_sdk/src/doc/cds2014/cpp_summary.inc
diff --git a/native_client_sdk/src/doc/cds2014/cpp_summary.inc b/native_client_sdk/src/doc/cds2014/cpp_summary.inc
new file mode 100644
index 0000000000000000000000000000000000000000..0ef3c9f4edba59947946d08babd0eca37572f946
--- /dev/null
+++ b/native_client_sdk/src/doc/cds2014/cpp_summary.inc
@@ -0,0 +1,46 @@
+Learn the basics of using PPAPI to do 2D graphics from
+a C++ program running in Native Client.
+Modify our sample to turn fire into water.
+Develop inside Google Chrome, using our NaCl Development Environment
+Chrome App.
+While this codelab currently targets conventional Native Client using our
+GCC + GlibC based toolchain, the techniques involved are generally
+applicable.
+
+Requirements:
+ * An x86 (sorry no arm) Desktop / Laptop
+ Windows, Mac, Linux, or ChromeOS browser
+ |cpp_check|
+ * A fast broadband connection (500MB download)
+ * Can read and write C++
+
+.. |cpp_check| raw:: html
+
+ <br/><span id="cpp_compat" style="color: #cccc00"
+ >Checking browser compatibility...</span><br/>
+ <i id="cpp_compat2"></i>
+ <script>
+ var tag = document.getElementById('cpp_compat');
+ var tag2 = document.getElementById('cpp_compat2');
+ if (!('application/x-nacl' in navigator.mimeTypes)) {
+ tag.innerHTML =
+ 'This codelab does not appear to be supported by your browser.';
+ tag.style.color = '#cc0000';
+ tag2.innerHTML =
+ 'You do not appear to be running a browser such as ' +
+ 'Google Chrome which supports Native Client ' +
+ 'or you have disabled Native Client.';
+ } else if (navigator.userAgent.search(' arm') >= 0) {
+ tag.innerHTML =
+ 'This codelab does not appear to be supported by your browser.';
+ tag.style.color = '#cc0000';
+ tag2.innerHTML =
+ 'You appear to be running on an ARM based CPU. ' +
+ 'While Native Client does support ARM, ' +
+ "our developer environment's GCC + GlibC based toolchain " +
+ 'does not, at this time. Sorry.';
+ } else {
+ tag.innerHTML = 'This codelab appears to be supported by your browser.';
+ tag.style.color = '#00cc00';
+ }
+ </script>
« no previous file with comments | « native_client_sdk/src/doc/cds2014/cpp.rst ('k') | native_client_sdk/src/doc/cds2014/index.rst » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698