| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2017 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. |
| 4 |
| 5 /** |
| 6 * Progress center at the background page. |
| 7 * @constructor |
| 8 * @struct |
| 9 */ |
| 10 var ProgressCenter = function() {}; |
| 11 |
| 12 /** |
| 13 * Updates the item in the progress center. |
| 14 * If the item has a new ID, the item is added to the item list. |
| 15 * |
| 16 * @param {ProgressCenterItem} item Updated item. |
| 17 */ |
| 18 ProgressCenter.prototype.updateItem = function(item) {}; |
| 19 |
| 20 /** |
| 21 * Requests to cancel the progress item. |
| 22 * @param {string} id Progress ID to be requested to cancel. |
| 23 */ |
| 24 ProgressCenter.prototype.requestCancel = function(id) {}; |
| 25 |
| 26 /** |
| 27 * Adds a panel UI to the notification center. |
| 28 * @param {ProgressCenterPanel} panel Panel UI. |
| 29 */ |
| 30 ProgressCenter.prototype.addPanel = function(panel) {}; |
| 31 |
| 32 /** |
| 33 * Removes a panel UI from the notification center. |
| 34 * @param {ProgressCenterPanel} panel Panel UI. |
| 35 */ |
| 36 ProgressCenter.prototype.removePanel = function(panel) {}; |
| 37 |
| 38 /** |
| 39 * Obtains item by ID. |
| 40 * @param {string} id ID of progress item. |
| 41 * @return {ProgressCenterItem} Progress center item having the specified |
| 42 * ID. Null if the item is not found. |
| 43 */ |
| 44 ProgressCenter.prototype.getItemById = function(id) {}; |
| OLD | NEW |