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 /** @fileoverview Externs generated from namespace: bookmarkManagerPrivate */ | 5 /** @fileoverview Externs generated from namespace: bookmarkManagerPrivate */ |
6 | 6 |
7 /** | 7 /** |
8 * @typedef {{ | 8 * @typedef {{ |
9 * id: (string|undefined), | 9 * id: (string|undefined), |
10 * parentId: (string|undefined), | 10 * parentId: (string|undefined), |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 * @param {Array} idList An array of string-valued ids | 83 * @param {Array} idList An array of string-valued ids |
84 * @param {boolean} isFromTouch True if the drag was initiated from touch | 84 * @param {boolean} isFromTouch True if the drag was initiated from touch |
85 */ | 85 */ |
86 chrome.bookmarkManagerPrivate.startDrag = function(idList, isFromTouch) {}; | 86 chrome.bookmarkManagerPrivate.startDrag = function(idList, isFromTouch) {}; |
87 | 87 |
88 /** | 88 /** |
89 * Performs the drop action of the drag and drop session | 89 * Performs the drop action of the drag and drop session |
90 * @param {string} parentId The ID of the folder that the drop was made | 90 * @param {string} parentId The ID of the folder that the drop was made |
91 * @param {number=} index The index of the position to drop at. If left out the | 91 * @param {number=} index The index of the position to drop at. If left out the |
92 * dropped items will be placed at the end of the existing children | 92 * dropped items will be placed at the end of the existing children |
| 93 * @param {Function=} callback |
93 */ | 94 */ |
94 chrome.bookmarkManagerPrivate.drop = function(parentId, index) {}; | 95 chrome.bookmarkManagerPrivate.drop = function(parentId, index, callback) {}; |
95 | 96 |
96 /** | 97 /** |
97 * Retrieves a bookmark hierarchy from the given node. If the node id is | 98 * Retrieves a bookmark hierarchy from the given node. If the node id is |
98 * empty, it is the full tree. If foldersOnly is true, it will only return | 99 * empty, it is the full tree. If foldersOnly is true, it will only return |
99 * folders, not actual bookmarks. | 100 * folders, not actual bookmarks. |
100 * @param {string} id ID of the root of the tree to pull. If empty, the entire | 101 * @param {string} id ID of the root of the tree to pull. If empty, the entire |
101 * tree will be returned. | 102 * tree will be returned. |
102 * @param {boolean} foldersOnly Pass true to only return folders. | 103 * @param {boolean} foldersOnly Pass true to only return folders. |
103 * @param {Function} callback | 104 * @param {Function} callback |
104 */ | 105 */ |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 chrome.bookmarkManagerPrivate.onDragEnter; | 185 chrome.bookmarkManagerPrivate.onDragEnter; |
185 | 186 |
186 /** @type {!ChromeEvent} */ | 187 /** @type {!ChromeEvent} */ |
187 chrome.bookmarkManagerPrivate.onDragLeave; | 188 chrome.bookmarkManagerPrivate.onDragLeave; |
188 | 189 |
189 /** @type {!ChromeEvent} */ | 190 /** @type {!ChromeEvent} */ |
190 chrome.bookmarkManagerPrivate.onDrop; | 191 chrome.bookmarkManagerPrivate.onDrop; |
191 | 192 |
192 /** @type {!ChromeEvent} */ | 193 /** @type {!ChromeEvent} */ |
193 chrome.bookmarkManagerPrivate.onMetaInfoChanged; | 194 chrome.bookmarkManagerPrivate.onMetaInfoChanged; |
OLD | NEW |