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

Side by Side Diff: native_client_sdk/src/gonacl_appengine/static/pnacl-demo-cube/example.js

Issue 62523003: [NaCl SDK AppEngine] Update demo binaries to buildbot-built versions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 'use strict'; 5 'use strict';
6 6
7 var naclModule = null; 7 var naclModule = null;
8 8
9 /** 9 /**
10 * A helper function to abbreviate getElementById. 10 * A helper function to abbreviate getElementById.
(...skipping 24 matching lines...) Expand all
35 return navigator.mimeTypes[mimetype] !== undefined; 35 return navigator.mimeTypes[mimetype] !== undefined;
36 } 36 }
37 37
38 /** 38 /**
39 * Get the URL for Google Cloud Storage. 39 * Get the URL for Google Cloud Storage.
40 * 40 *
41 * @param {string} name The relative path to the file. 41 * @param {string} name The relative path to the file.
42 * @return {string} 42 * @return {string}
43 */ 43 */
44 function getDataURL(name) { 44 function getDataURL(name) {
45 var revision = 232423; 45 var revision = 233080;
46 var baseUrl = 'http://commondatastorage.googleapis.com/gonacl/demos/publish/'; 46 var baseUrl = 'http://commondatastorage.googleapis.com/gonacl/demos/publish/';
47 return baseUrl + revision + '/cube/' + name; 47 return baseUrl + revision + '/cube/' + name;
48 } 48 }
49 49
50 /** 50 /**
51 * Create the Native Client <embed> element as a child of the DOM element 51 * Create the Native Client <embed> element as a child of the DOM element
52 * named "listener". 52 * named "listener".
53 * 53 *
54 * @param {string} name The name of the example. 54 * @param {string} name The name of the example.
55 * @param {number} width The width to create the plugin. 55 * @param {number} width The width to create the plugin.
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 createNaClModule('cube', 480, 480); 253 createNaClModule('cube', 480, 480);
254 attachDefaultListeners(); 254 attachDefaultListeners();
255 } else { 255 } else {
256 // It's possible that the Native Client module onload event fired 256 // It's possible that the Native Client module onload event fired
257 // before the page's onload event. In this case, the status message 257 // before the page's onload event. In this case, the status message
258 // will reflect 'SUCCESS', but won't be displayed. This call will 258 // will reflect 'SUCCESS', but won't be displayed. This call will
259 // display the current message. 259 // display the current message.
260 updateStatus('Waiting.'); 260 updateStatus('Waiting.');
261 } 261 }
262 }); 262 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698