Lines Matching defs:Node
65 var Node = function(nodesMap, id, title, url) {
77 Node.prototype.isRoot = function() {
81 Node.prototype.getIndex = function() {
85 Node.prototype.appendChild = function(node) {
90 Node.prototype.droppedFromParent = function() {
105 Node.prototype.matches = function(bookmark) {
114 Node.prototype.updateChildren = function(wantedChildren, callbackChain) {
133 // The "id" comes with the callback from bookmarks.create() but the Node
135 var newChild = new Node(
165 * Creates new nodes in the bookmark model to represent this Node and its
168 Node.prototype.regenerate = function(parentId, index, callbackChain) {
191 Node.prototype.moveInModel = function(currentParentId, currentIndex, callback) {
214 Node.prototype.reorderChildren = function() {
243 var result = new Node(nodesMap, node['id'], node['title'], node['url']);
257 // Maps a string id to its Node. Used to lookup an entry by ID.
259 this._root = new Node(this._nodesMap, '0', '');
260 this._root.appendChild(new Node(this._nodesMap, '1', 'Bookmarks Bar'));
261 this._root.appendChild(new Node(this._nodesMap, '2', 'Other Bookmarks'));