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

Unified Diff: chrome/common/extensions/docs/examples/extensions/ttsdebug/ttsdebug.js

Issue 8318001: Adding `content_security_policy` to a few sample extensions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Docs. Zips. Created 9 years, 2 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: chrome/common/extensions/docs/examples/extensions/ttsdebug/ttsdebug.js
diff --git a/chrome/common/extensions/docs/examples/extensions/ttsdebug/ttsdebug.js b/chrome/common/extensions/docs/examples/extensions/ttsdebug/ttsdebug.js
index d4049cfdc0150cf9a20028fa34a9156e37e2b140..61b71c99166511b146638832e8f0343282556d6f 100644
--- a/chrome/common/extensions/docs/examples/extensions/ttsdebug/ttsdebug.js
+++ b/chrome/common/extensions/docs/examples/extensions/ttsdebug/ttsdebug.js
@@ -677,6 +677,7 @@ function load() {
var i = $('voices').selectedIndex;
localStorage['voice'] = $('voices').item(i).value;
}, false);
+ $('stop').addEventListener('click', stop);
for (var i = 0; i < tests.length; i++) {
registerTest(tests[i]);
@@ -689,3 +690,5 @@ function stop() {
emergencyStop = true;
chrome.tts.stop();
}
+
+document.addEventListener('DOMContentLoaded', load);
« no previous file with comments | « chrome/common/extensions/docs/examples/extensions/ttsdebug/ttsdebug.html ('k') | chrome/common/extensions/docs/samples.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698