1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/docshell/shistory/public/nsISHContainer.idl Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,42 @@ 1.4 +/* -*- Mode: IDL; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- 1.5 + * 1.6 + * This Source Code Form is subject to the terms of the Mozilla Public 1.7 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.8 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.9 + 1.10 +#include "nsISupports.idl" 1.11 + 1.12 +interface nsISHEntry; 1.13 + 1.14 +/** 1.15 + * The nsISHEntryContainer. The interface to access child entries 1.16 + * of an nsISHEntry. 1.17 + * 1.18 + */ 1.19 + 1.20 +[scriptable, uuid(65281BA2-988A-11d3-BDC7-0050040A9B44)] 1.21 +interface nsISHContainer : nsISupports 1.22 +{ 1.23 + /** 1.24 + * The current number of nsISHEntries which are immediate children of the 1.25 + * current SHEntry 1.26 + */ 1.27 + readonly attribute long childCount; 1.28 + 1.29 + /** 1.30 + * Add a new child SHEntry. If offset is -1 adds to the end of the list. 1.31 + */ 1.32 + void AddChild(in nsISHEntry child, in long offset); 1.33 + 1.34 + /** 1.35 + * Removes a child SHEntry 1.36 + */ 1.37 + void RemoveChild(in nsISHEntry child); 1.38 + 1.39 + /** 1.40 + * Get child at an index 1.41 + */ 1.42 + nsISHEntry GetChildAt(in long index); 1.43 + 1.44 +}; 1.45 +