| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 cr.define('bmm', function() { | 5 cr.define('bmm', function() { |
| 8 /** | 6 /** |
| 9 * Whether a node contains another node. | 7 * Whether a node contains another node. |
| 10 * TODO(yosin): Once JavaScript style guide is updated and linter follows | 8 * TODO(yosin): Once JavaScript style guide is updated and linter follows |
| 11 * that, we'll remove useless documentations for |parent| and |descendant|. | 9 * that, we'll remove useless documentations for |parent| and |descendant|. |
| 12 * TODO(yosin): bmm.contains() should be method of BookmarkTreeNode. | 10 * TODO(yosin): bmm.contains() should be method of BookmarkTreeNode. |
| 13 * @param {!BookmarkTreeNode} parent . | 11 * @param {!BookmarkTreeNode} parent . |
| 14 * @param {!BookmarkTreeNode} descendant . | 12 * @param {!BookmarkTreeNode} descendant . |
| 15 * @return {boolean} Whether the parent contains the descendant. | 13 * @return {boolean} Whether the parent contains the descendant. |
| 16 */ | 14 */ |
| (...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 242 }; | 240 }; |
| 243 | 241 |
| 244 return { | 242 return { |
| 245 contains: contains, | 243 contains: contains, |
| 246 isFolder: isFolder, | 244 isFolder: isFolder, |
| 247 loadSubtree: loadSubtree, | 245 loadSubtree: loadSubtree, |
| 248 loadTree: loadTree, | 246 loadTree: loadTree, |
| 249 addBookmarkModelListeners: addBookmarkModelListeners | 247 addBookmarkModelListeners: addBookmarkModelListeners |
| 250 }; | 248 }; |
| 251 }); | 249 }); |
| OLD | NEW |