B2G/gecko/browser/components/places/src/PlacesUIUtils.jsm
// Helper to create an organizer special query.
Helper to create an organizer special query.
Helper to create an organizer special query .
function CB_create_query(aQueryName, aParentId, aQueryUrl) {
        let itemId = bs.insertBookmark(aParentId,
                                       PlacesUtils._uri(aQueryUrl),
                                       bs.DEFAULT_INDEX,
                                       queries[aQueryName].title);
        as.setItemAnnotation(itemId, PlacesUIUtils.ORGANIZER_QUERY_ANNO, aQueryName,
                             0, as.EXPIRE_NEVER);
        as.setItemAnnotation(itemId, PlacesUtils.EXCLUDE_FROM_BACKUP_ANNO, 1,
                             0, as.EXPIRE_NEVER);
        PlacesUIUtils.leftPaneQueries[aQueryName] = itemId;
        return itemId;
      }
function CB_create_query ( aQueryName , aParentId , aQueryUrl ) { let itemId = bs . insertBookmark ( aParentId , PlacesUtils . _uri ( aQueryUrl ) , bs . DEFAULT_INDEX , queries [ aQueryName ] . title ) ; as . setItemAnnotation ( itemId , PlacesUIUtils . ORGANIZER_QUERY_ANNO , aQueryName , 0 , as . EXPIRE_NEVER ) ; as . setItemAnnotation ( itemId , PlacesUtils . EXCLUDE_FROM_BACKUP_ANNO , 1 , 0 , as . EXPIRE_NEVER ) ; PlacesUIUtils . leftPaneQueries [ aQueryName ] = itemId ; return itemId ; }
Helper to create an organizer special query.
Helper to create an organizer special query .
// Mark as special organizer query. // We should never backup this, since it changes between profiles. // Add to the queries map.