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

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 ShimSrcAttribute Test 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
« no previous file with comments | « content/renderer/browser_plugin/browser_plugin_manager_impl.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 } else { 92 } else {
83 window.document.title = 'main guest'; 93 window.document.title = 'main guest';
84 } 94 }
85 } 95 }
86 } 96 }
87 var plugin = document.getElementById('plugin'); 97 var plugin = document.getElementById('plugin');
88 plugin.addEventListener('loadStart', loadStart); 98 plugin.addEventListener('loadStart', loadStart);
89 plugin.addEventListener('loadAbort', loadAbort); 99 plugin.addEventListener('loadAbort', loadAbort);
90 plugin.addEventListener('loadRedirect', loadRedirect); 100 plugin.addEventListener('loadRedirect', loadRedirect);
91 window.addEventListener('message', receiveMessage, false); 101 window.addEventListener('message', receiveMessage, false);
102 plugin.addEventListener('loadStop', loadStop);
103 plugin.addEventListener('loadCommit', loadCommit);
92 </script> 104 </script>
OLDNEW
« no previous file with comments | « content/renderer/browser_plugin/browser_plugin_manager_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698