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

Side by Side Diff: chrome/test/data/extensions/api_test/app_background_page/common/common.js

Issue 10298002: No longer start BG mode until a BackgroundContents is loaded (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed tests. Created 8 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 | Annotate | Revision Log
OLDNEW
1 var scriptMessageEvent; 1 var scriptMessageEvent;
2 var pageToScriptTunnel; 2 var pageToScriptTunnel;
3 var scriptToPageTunnel; 3 var scriptToPageTunnel;
4 4
5 function setStatus(status) { 5 function setStatus(status) {
6 document.getElementById('status').innerText = status; 6 document.getElementById('status').innerText = status;
7 } 7 }
8 8
9 function setupScriptTunnel() { 9 function setupScriptTunnel() {
10 scriptMessageEvent = document.createEvent("Event"); 10 scriptMessageEvent = document.createEvent("Event");
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 47
48 function notifyCounterError() { 48 function notifyCounterError() {
49 pageToScriptTunnel.innerText = JSON.stringify(messageData(arguments)); 49 pageToScriptTunnel.innerText = JSON.stringify(messageData(arguments));
50 pageToScriptTunnel.dispatchEvent(scriptMessageEvent); 50 pageToScriptTunnel.dispatchEvent(scriptMessageEvent);
51 } 51 }
52 52
53 function notifyBackgroundPageClosing() { 53 function notifyBackgroundPageClosing() {
54 pageToScriptTunnel.innerText = JSON.stringify(messageData(arguments)); 54 pageToScriptTunnel.innerText = JSON.stringify(messageData(arguments));
55 pageToScriptTunnel.dispatchEvent(scriptMessageEvent); 55 pageToScriptTunnel.dispatchEvent(scriptMessageEvent);
56 } 56 }
57
58 function notifyBackgroundPageClosed() {
59 pageToScriptTunnel.innerText = JSON.stringify(messageData(arguments));
60 pageToScriptTunnel.dispatchEvent(scriptMessageEvent);
61 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698