1999-12-23 01:33:16 +03:00
|
|
|
/* -*- Mode: IDL; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
|
|
|
*
|
2012-05-21 15:12:37 +04:00
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
1999-12-23 01:33:16 +03:00
|
|
|
|
|
|
|
#include "nsISupports.idl"
|
2013-09-23 03:25:21 +04:00
|
|
|
|
|
|
|
interface nsISHEntry;
|
1999-12-23 01:33:16 +03:00
|
|
|
|
|
|
|
/**
|
|
|
|
* The nsISHEntryContainer. The interface to access child entries
|
|
|
|
* of an nsISHEntry.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2014-11-13 21:19:20 +03:00
|
|
|
[scriptable, uuid(67dd0357-8372-4122-bff6-217435e8b7e4)]
|
1999-12-23 01:33:16 +03:00
|
|
|
interface nsISHContainer : nsISupports
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* The current number of nsISHEntries which are immediate children of the
|
|
|
|
* current SHEntry
|
|
|
|
*/
|
|
|
|
readonly attribute long childCount;
|
|
|
|
|
|
|
|
/**
|
2010-08-17 18:13:55 +04:00
|
|
|
* Add a new child SHEntry. If offset is -1 adds to the end of the list.
|
1999-12-23 01:33:16 +03:00
|
|
|
*/
|
2005-08-18 15:15:39 +04:00
|
|
|
void AddChild(in nsISHEntry child, in long offset);
|
1999-12-23 01:33:16 +03:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Removes a child SHEntry
|
|
|
|
*/
|
|
|
|
void RemoveChild(in nsISHEntry child);
|
|
|
|
|
2005-08-18 15:15:34 +04:00
|
|
|
/**
|
|
|
|
* Get child at an index
|
|
|
|
*/
|
|
|
|
nsISHEntry GetChildAt(in long index);
|
|
|
|
|
2014-11-13 21:19:20 +03:00
|
|
|
/**
|
|
|
|
* Replaces a child which is for the same docshell as aNewChild
|
|
|
|
* with aNewChild.
|
|
|
|
* @throw if nothing was replaced.
|
|
|
|
*/
|
|
|
|
void ReplaceChild(in nsISHEntry aNewChild);
|
|
|
|
|
1999-12-23 01:33:16 +03:00
|
|
|
};
|
|
|
|
|