| 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 cr.define('bmm', function() { | 5 cr.define('bmm', function() { |
| 6 'use strict'; | 6 'use strict'; |
| 7 | 7 |
| 8 /** | 8 /** |
| 9 * Whether a node contains another node. | 9 * Whether a node contains another node. |
| 10 * TODO(yosin): Once JavaScript style guide is updated and linter follows | 10 * TODO(yosin): Once JavaScript style guide is updated and linter follows |
| (...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 242 * Adds the listeners for the bookmark model change events. | 242 * Adds the listeners for the bookmark model change events. |
| 243 */ | 243 */ |
| 244 function addBookmarkModelListeners() { | 244 function addBookmarkModelListeners() { |
| 245 chrome.bookmarks.onChanged.addListener(handleBookmarkChanged); | 245 chrome.bookmarks.onChanged.addListener(handleBookmarkChanged); |
| 246 chrome.bookmarks.onChildrenReordered.addListener(handleChildrenReordered); | 246 chrome.bookmarks.onChildrenReordered.addListener(handleChildrenReordered); |
| 247 chrome.bookmarks.onCreated.addListener(handleCreated); | 247 chrome.bookmarks.onCreated.addListener(handleCreated); |
| 248 chrome.bookmarks.onMoved.addListener(handleMoved); | 248 chrome.bookmarks.onMoved.addListener(handleMoved); |
| 249 chrome.bookmarks.onRemoved.addListener(handleRemoved); | 249 chrome.bookmarks.onRemoved.addListener(handleRemoved); |
| 250 chrome.bookmarks.onImportBegan.addListener(handleImportBegan); | 250 chrome.bookmarks.onImportBegan.addListener(handleImportBegan); |
| 251 chrome.bookmarks.onImportEnded.addListener(handleImportEnded); | 251 chrome.bookmarks.onImportEnded.addListener(handleImportEnded); |
| 252 }; | 252 } |
| 253 | 253 |
| 254 return { | 254 return { |
| 255 contains: contains, | 255 contains: contains, |
| 256 isFolder: isFolder, | 256 isFolder: isFolder, |
| 257 loadSubtree: loadSubtree, | 257 loadSubtree: loadSubtree, |
| 258 loadTree: loadTree, | 258 loadTree: loadTree, |
| 259 addBookmarkModelListeners: addBookmarkModelListeners | 259 addBookmarkModelListeners: addBookmarkModelListeners |
| 260 }; | 260 }; |
| 261 }); | 261 }); |
| OLD | NEW |