| 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 /** | 5 /** |
| 6 * Icon of the video player. | 6 * Icon of the video player. |
| 7 * TODO(yoshiki): Consider providing an exact size icon, instead of relying | 7 * TODO(yoshiki): Consider providing an exact size icon, instead of relying |
| 8 * on downsampling by ash. | 8 * on downsampling by ash. |
| 9 * | 9 * |
| 10 * @type {string} | 10 * @type {string} |
| 11 * @const | 11 * @const |
| 12 */ | 12 */ |
| 13 var ICON_IMAGE = 'images/icon/video-player-64.png'; | 13 var ICON_IMAGE = 'images/icon/video-player-64.png'; |
| 14 | 14 |
| 15 var appWindowsForTest = {}; | 15 var appWindowsForTest = {}; |
| 16 | 16 |
| 17 /** | 17 /** |
| 18 * Configuration of the video player panel. | 18 * Configuration of the video player panel. |
| 19 * @type {Object} | 19 * @type {Object} |
| 20 */ | 20 */ |
| 21 var windowCreateOptions = { | 21 var windowCreateOptions = { |
| 22 id: 'video', | |
| 23 frame: 'none', | 22 frame: 'none', |
| 24 minWidth: 480, | 23 minWidth: 480, |
| 25 minHeight: 270 | 24 minHeight: 270 |
| 26 }; | 25 }; |
| 27 | 26 |
| 28 /** | 27 /** |
| 29 * Backgound object. This is necessary for AppWindowWrapper. | 28 * Backgound object. This is necessary for AppWindowWrapper. |
| 30 * @type {BackgroundBase} | 29 * @type {BackgroundBase} |
| 31 */ | 30 */ |
| 32 var background = new BackgroundBase(); | 31 var background = new BackgroundBase(); |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 chrome.runtime.onMessageExternal.addListener(function(message) { | 150 chrome.runtime.onMessageExternal.addListener(function(message) { |
| 152 if (message.name !== 'testResourceLoaded') | 151 if (message.name !== 'testResourceLoaded') |
| 153 return; | 152 return; |
| 154 var script = document.createElement('script'); | 153 var script = document.createElement('script'); |
| 155 script.src = | 154 script.src = |
| 156 'chrome-extension://' + window.testExtensionId + | 155 'chrome-extension://' + window.testExtensionId + |
| 157 '/common/test_loader.js'; | 156 '/common/test_loader.js'; |
| 158 document.documentElement.appendChild(script); | 157 document.documentElement.appendChild(script); |
| 159 }.wrap()); | 158 }.wrap()); |
| 160 } | 159 } |
| OLD | NEW |