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

Side by Side Diff: content/test/data/browser_plugin_embedder.html

Issue 11368071: browser-plugin: Remove event handling code, and use CustomEvents in webkit instead. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 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 <script type="text/javascript"> 1 <script type="text/javascript">
2 function loadAbort(evt) { 2 function loadAbort(evt) {
3 document.title = evt.type; 3 document.title = evt.reason;
4 } 4 }
5 function loadStart(evt) { 5 function loadStart(evt) {
6 document.title = evt.url; 6 document.title = evt.url;
7 } 7 }
8 function loadStop(evt) { 8 function loadStop(evt) {
9 document.title = "loadStop"; 9 document.title = "loadStop";
10 } 10 }
11 11
12 var commitIsTopLevel; 12 var commitIsTopLevel;
13 function loadCommit(evt) { 13 function loadCommit(evt) {
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 } 95 }
96 } 96 }
97 var plugin = document.getElementById('plugin'); 97 var plugin = document.getElementById('plugin');
98 plugin.addEventListener('loadstart', loadStart); 98 plugin.addEventListener('loadstart', loadStart);
99 plugin.addEventListener('loadabort', loadAbort); 99 plugin.addEventListener('loadabort', loadAbort);
100 plugin.addEventListener('loadredirect', loadRedirect); 100 plugin.addEventListener('loadredirect', loadRedirect);
101 window.addEventListener('message', receiveMessage, false); 101 window.addEventListener('message', receiveMessage, false);
102 plugin.addEventListener('loadstop', loadStop); 102 plugin.addEventListener('loadstop', loadStop);
103 plugin.addEventListener('loadcommit', loadCommit); 103 plugin.addEventListener('loadcommit', loadCommit);
104 </script> 104 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698