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

Unified Diff: native_client_sdk/src/examples/dlopen/example.js

Issue 13488007: [NaCl SDK] Make the SDK examples buildable as a packaged app. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix license headers Created 7 years, 8 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/examples/dlopen/example.dsc ('k') | native_client_sdk/src/examples/dlopen/index.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: native_client_sdk/src/examples/dlopen/example.js
diff --git a/native_client_sdk/src/examples/dlopen/example.js b/native_client_sdk/src/examples/dlopen/example.js
index bb658cdad301c8721d2ede817930b0fb228e32f8..5e1b1e3cd9018e4a25f9485630260aae403ed872 100644
--- a/native_client_sdk/src/examples/dlopen/example.js
+++ b/native_client_sdk/src/examples/dlopen/example.js
@@ -19,7 +19,7 @@ function askBall(event) {
var questionEl = document.getElementById('question');
var query = questionEl.value;
questionEl.value = '';
- document.getElementById('log').innerHTML += 'You asked:' + query + '<br>';
+ common.logMessage('You asked: ' + query + '\n');
common.naclModule.postMessage('eightball');
event.preventDefault();
}
@@ -28,7 +28,6 @@ function reverseString(event) {
var questionEl = document.getElementById('question');
var query = questionEl.value;
questionEl.value = '';
-
- document.getElementById('log').innerHTML += 'Reversing:' + query + '<br>';
+ common.logMessage('Reversing: ' + query + '\n');
common.naclModule.postMessage('reverse:' + query);
}
« no previous file with comments | « native_client_sdk/src/examples/dlopen/example.dsc ('k') | native_client_sdk/src/examples/dlopen/index.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698