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

Unified Diff: native_client_sdk/src/examples/common.js

Issue 10827363: Add Linux Host builds to NaCl SDK (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 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
« no previous file with comments | « native_client_sdk/src/build_tools/template.mk ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: native_client_sdk/src/examples/common.js
===================================================================
--- native_client_sdk/src/examples/common.js (revision 151748)
+++ native_client_sdk/src/examples/common.js (working copy)
@@ -16,6 +16,7 @@
*
* @param {string} name The name of the example.
* @param {string} tool The name of the toolchain, e.g. "glibc", "newlib" etc.
+ * @param {string} config The name of the configruation, "Debug" or "Release"
* @param {number} width The width to create the plugin.
* @param {number} height The height to create the plugin.
*/
@@ -27,6 +28,10 @@
moduleEl.setAttribute('height',height);
moduleEl.setAttribute('src', tool + '/' + config + '/' + name + '.nmf');
moduleEl.setAttribute('type', 'application/x-nacl');
+ if (tool == 'win' || tool == 'linux' || tool == 'mac') {
+ mimetype = 'application/x-ppapi-' + config.toLowerCase();
+ moduleEl.setAttribute('type', mimetype);
+ }
// The <EMBED> element is wrapped inside a <DIV>, which has both a 'load'
// and a 'message' event listener attached. This wrapping method is used
« no previous file with comments | « native_client_sdk/src/build_tools/template.mk ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698