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

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

Issue 11035067: Add loadCommit and loadStop Event (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Merge Conflict Created 8 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 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.type;
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) {
9 document.title = "loadStop";
10 }
11
12 var commitIsTopLevel;
13 function loadCommit(evt) {
14 document.title = "loadCommit:" + evt.url;
15 commitIsTopLevel = evt.isTopLevel;
16 }
17
8 var redirectOldUrl; 18 var redirectOldUrl;
9 var redirectNewUrl; 19 var redirectNewUrl;
10 function loadRedirect(event) { 20 function loadRedirect(event) {
11 document.title = "redirected"; 21 document.title = "redirected";
12 if (event.isTopLevel) { 22 if (event.isTopLevel) {
13 redirectOldUrl = event.oldUrl; 23 redirectOldUrl = event.oldUrl;
14 redirectNewUrl = event.newUrl; 24 redirectNewUrl = event.newUrl;
15 } 25 }
16 } 26 }
17 function SetSrc(src) { 27 function SetSrc(src) {
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 type="application/browser-plugin" 64 type="application/browser-plugin"
55 width="640" 65 width="640"
56 height="480" 66 height="480"
57 border="0px"></object> 67 border="0px"></object>
58 68
59 <script> 69 <script>
60 var plugin = document.getElementById('plugin'); 70 var plugin = document.getElementById('plugin');
61 plugin.addEventListener('loadStart', loadStart); 71 plugin.addEventListener('loadStart', loadStart);
62 plugin.addEventListener('loadAbort', loadAbort); 72 plugin.addEventListener('loadAbort', loadAbort);
63 plugin.addEventListener('loadRedirect', loadRedirect); 73 plugin.addEventListener('loadRedirect', loadRedirect);
74 window.addEventListener('message', receiveMessage, false);
Charlie Reis 2012/10/17 21:27:08 Please remove this line. (It's another merge conf
irobert 2012/10/18 01:42:25 Done.
75 plugin.addEventListener('loadStop', loadStop);
76 plugin.addEventListener('loadCommit', loadCommit);
64 </script> 77 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698