"Fossies" - the Fresh Open Source Software Archive

Member "UXP-PM28.7.2_Release/docshell/shistory/nsISHContainer.idl" (24 Oct 2019, 1160 Bytes) of package /linux/www/UXP-PM28.7.2_Release.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) IDL source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 /* -*- Mode: IDL; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
    2  *
    3  * This Source Code Form is subject to the terms of the Mozilla Public
    4  * License, v. 2.0. If a copy of the MPL was not distributed with this
    5  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
    6 
    7 #include "nsISupports.idl"
    8 
    9 interface nsISHEntry;
   10 
   11 /**
   12  * The nsISHEntryContainer. The interface to access child entries
   13  * of an nsISHEntry.
   14  * 
   15  */
   16 
   17 [scriptable, uuid(67dd0357-8372-4122-bff6-217435e8b7e4)]
   18 interface nsISHContainer : nsISupports
   19 {
   20     /**
   21      * The current number of nsISHEntries which are immediate children of the 
   22      * current SHEntry
   23      */
   24     readonly attribute long childCount;
   25 
   26     /**
   27      * Add a new child SHEntry.  If offset is -1 adds to the end of the list.
   28      */
   29     void AddChild(in nsISHEntry child, in long offset);
   30 
   31     /**
   32      * Removes a child SHEntry
   33      */
   34     void RemoveChild(in nsISHEntry child);
   35 
   36     /**
   37      * Get child at an index
   38      */
   39     nsISHEntry GetChildAt(in long index);
   40 
   41     /**
   42      * Replaces a child which is for the same docshell as aNewChild
   43      * with aNewChild.
   44      * @throw if nothing was replaced.
   45      */
   46     void ReplaceChild(in nsISHEntry aNewChild);
   47 
   48 };
   49