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

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: Prospective fix for cros test failures. 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
« no previous file with comments | « chrome/test/data/extensions/api_test/app_background_page/common/close.html ('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 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
1 var scriptMessageEvent; 4 var scriptMessageEvent;
2 var pageToScriptTunnel; 5 var pageToScriptTunnel;
3 var scriptToPageTunnel; 6 var scriptToPageTunnel;
4 7
5 function setStatus(status) { 8 function setStatus(status) {
6 document.getElementById('status').innerText = status; 9 document.getElementById('status').innerText = status;
7 } 10 }
8 11
9 function setupScriptTunnel() { 12 function setupScriptTunnel() {
10 scriptMessageEvent = document.createEvent("Event"); 13 scriptMessageEvent = document.createEvent("Event");
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 50
48 function notifyCounterError() { 51 function notifyCounterError() {
49 pageToScriptTunnel.innerText = JSON.stringify(messageData(arguments)); 52 pageToScriptTunnel.innerText = JSON.stringify(messageData(arguments));
50 pageToScriptTunnel.dispatchEvent(scriptMessageEvent); 53 pageToScriptTunnel.dispatchEvent(scriptMessageEvent);
51 } 54 }
52 55
53 function notifyBackgroundPageClosing() { 56 function notifyBackgroundPageClosing() {
54 pageToScriptTunnel.innerText = JSON.stringify(messageData(arguments)); 57 pageToScriptTunnel.innerText = JSON.stringify(messageData(arguments));
55 pageToScriptTunnel.dispatchEvent(scriptMessageEvent); 58 pageToScriptTunnel.dispatchEvent(scriptMessageEvent);
56 } 59 }
60
61 function notifyBackgroundPageClosed() {
62 pageToScriptTunnel.innerText = JSON.stringify(messageData(arguments));
63 pageToScriptTunnel.dispatchEvent(scriptMessageEvent);
64 }
OLDNEW
« no previous file with comments | « chrome/test/data/extensions/api_test/app_background_page/common/close.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698