OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 'use strict'; | |
6 | |
7 /** | 5 /** |
8 * @param {Object.<string, string>} stringData String data. | 6 * @param {Object.<string, string>} stringData String data. |
9 * @param {VolumeManager} volumeManager Volume manager. | 7 * @param {VolumeManager} volumeManager Volume manager. |
10 */ | 8 */ |
11 function BackgroundComponents(stringData, volumeManager) { | 9 function BackgroundComponents(stringData, volumeManager) { |
12 /** | 10 /** |
13 * String data. | 11 * String data. |
14 * @type {Object.<string, string>} | 12 * @type {Object.<string, string>} |
15 */ | 13 */ |
16 this.stringData = stringData; | 14 this.stringData = stringData; |
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
208 chrome.runtime.onMessageExternal.addListener(function(message) { | 206 chrome.runtime.onMessageExternal.addListener(function(message) { |
209 if (message.name !== 'testResourceLoaded') | 207 if (message.name !== 'testResourceLoaded') |
210 return; | 208 return; |
211 var script = document.createElement('script'); | 209 var script = document.createElement('script'); |
212 script.src = | 210 script.src = |
213 'chrome-extension://' + window.testExtensionId + | 211 'chrome-extension://' + window.testExtensionId + |
214 '/common/test_loader.js'; | 212 '/common/test_loader.js'; |
215 document.documentElement.appendChild(script); | 213 document.documentElement.appendChild(script); |
216 }); | 214 }); |
217 } | 215 } |
OLD | NEW |