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

Side by Side Diff: ppapi/examples/crxfs/crxfs.js

Issue 14188019: CRX FileSystem Pepper private API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 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 unified diff | Download patch
OLDNEW
(Empty)
1 function StartRequest() {
2 var plugin = document.getElementById("plugin");
3 var filename = document.getElementById("filename").value;
4 plugin.postMessage(filename);
5 }
6
7 function HandleMessage(message_event) {
8 document.getElementById("content").value = message_event.data;
9 }
10
11 document.addEventListener('DOMContentLoaded', function () {
12 // Attach a listener for the message event. This must happen after the plugin
13 // object was created.
14 document.getElementById("plugin")
15 .addEventListener("message", HandleMessage, false);
16
17 document.getElementById("start")
18 .addEventListener("click", StartRequest, false);
19 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698