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

Unified Diff: native_client_sdk/src/examples/demo/earth/example.js

Issue 289023002: Initial SIMD demos life and earth for PNaCl. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: title Created 6 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/earth/example.js
diff --git a/native_client_sdk/src/examples/demo/earth/example.js b/native_client_sdk/src/examples/demo/earth/example.js
index 34f6c1142cc844f3a01c393e663de7f449fa1f14..6f27c6e5e880f375d04821ebc690944b449c0871 100644
--- a/native_client_sdk/src/examples/demo/earth/example.js
+++ b/native_client_sdk/src/examples/demo/earth/example.js
@@ -25,13 +25,13 @@ function attachListeners() {
document.getElementById('radio'+i).addEventListener('click',
postThreadFunc(threads[i]));
}
- document.getElementById('zoomRange').addEventListener('change',
+ document.getElementById('zoomRange').addEventListener('input',
function() {
var value = parseFloat(document.getElementById('zoomRange').value);
common.naclModule.postMessage({'message' : 'set_zoom',
'value' : value});
});
- document.getElementById('lightRange').addEventListener('change',
+ document.getElementById('lightRange').addEventListener('input',
function() {
var value = parseFloat(document.getElementById('lightRange').value);
common.naclModule.postMessage({'message' : 'set_light',
« no previous file with comments | « native_client_sdk/src/examples/demo/earth/earth.cc ('k') | native_client_sdk/src/examples/demo/earth_simd/earth.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698