XULTemplatesAPI: Difference between revisions

 
Line 224: Line 224:


<pre>
<pre>
    /**
    * The query processor to use to generate results
    * XXX there wouldn't be any real value of getting this outside the
    *    template builder, but there needs to be means to set this.
    */
    attribute nsIXULTemplateQueryProcessor queryProcessor;
   /**
   /**
     * Inform the template builder about a result that has been added, changed
     * Inform the template builder about a result that has been added, changed
Line 245: Line 252:
     * as it is no longer valid.
     * as it is no longer valid.
     *
     *
    * XXX old result might be better passed as an id or hash code instead
    *    also, query might be a string query
    *
    * @param aRef reference container id
     * @param aOldResult the old result
     * @param aOldResult the old result
     * @param aNewResult the new result
     * @param aNewResult the new result
Line 254: Line 257:
     * @param aIsBindingUpdate true if only the bindings have changed
     * @param aIsBindingUpdate true if only the bindings have changed
     */
     */
     void updateResult(in nsAString& aRef,
     void updateResult(in nsIXULTemplateResult aOldResult,
                      in nsIXULTemplateResult aOldResult,
                       in nsIXULTemplateResult aNewResult,
                       in nsIXULTemplateResult aNewResult,
                       in nsIDOMNode aQueryNode,
                       in nsIDOMNode aQueryNode,
                       in PRBool aIsBindingUpdate);
                       in PRBool aIsBindingUpdate);
    /**
    * Return the root result
    */
    nsIXULTemplateResult getRootResult();


     /**
     /**
287

edits