| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 * @constructor | 6 * @constructor |
| 7 * @extends {Window} | 7 * @extends {Window} |
| 8 */ | 8 */ |
| 9 var BackgroundWindow = function() {}; | 9 var BackgroundWindow = function() {}; |
| 10 | 10 |
| 11 /** | 11 /** |
| 12 * @type {FileBrowserBackground} | 12 * @type {FileBrowserBackground} |
| 13 */ | 13 */ |
| 14 BackgroundWindow.prototype.background; | 14 BackgroundWindow.prototype.background; |
| 15 | 15 |
| 16 /** | 16 /** |
| 17 * @param {Window} window | 17 * @param {Window} window |
| 18 */ | 18 */ |
| 19 BackgroundWindow.prototype.registerDialog = function(window) {}; | 19 BackgroundWindow.prototype.registerDialog = function(window) {}; |
| 20 | 20 |
| 21 /** | 21 /** |
| 22 * @param {Object=} opt_appState App state. | 22 * @param {Object=} opt_appState App state. |
| 23 * @param {number=} opt_id Window id. | 23 * @param {number=} opt_id Window id. |
| 24 * @param {LaunchType=} opt_type Launch type. Default: ALWAYS_CREATE. | 24 * TODO(oka): We intentionally omit optional launchType and callback parameters |
| 25 * @param {function(string)=} opt_callback Completion callback with the App ID. | 25 * here because to do so we need to define |LaunchType| in this file, but then |
| 26 * gyp v1 fails due to double definition of |LaunchType|. Since no foreground |
| 27 * scripts set launchType parameter, we can omit them though it's hacky. Let's |
| 28 * add them back after v1 is gone. |
| 26 */ | 29 */ |
| 27 BackgroundWindow.prototype.launchFileManager = | 30 BackgroundWindow.prototype.launchFileManager = |
| 28 function(opt_appState, opt_id, opt_type, opt_callback) {}; | 31 function(opt_appState, opt_id) {}; |
| OLD | NEW |