diff --git a/docshell/base/nsIDocShellContainer.idl b/docshell/base/nsIDocShellContainer.idl new file mode 100644 index 000000000000..07b5a36c6120 --- /dev/null +++ b/docshell/base/nsIDocShellContainer.idl @@ -0,0 +1,62 @@ +/* -*- Mode: IDL; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- + * + * The contents of this file are subject to the Mozilla Public + * License Version 1.1 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.mozilla.org/MPL/ + * + * Software distributed under the License is distributed on an "AS + * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or + * implied. See the License for the specific language governing + * rights and limitations under the License. + * + * The Original Code is the Mozilla browser. + * + * The Initial Developer of the Original Code is Netscape + * Communications, Inc. Portions created by Netscape are + * Copyright (C) 1999, Mozilla. All Rights Reserved. + * + * Contributor(s): + * Travis Bogard + * Steve Clark + */ + +#include "nsISupports.idl" +#include "nsIDocShell.idl" +#include "nsIEnumerator.idl" + + +/** + * The nsIDocShellContainer + */ + +[scriptable, uuid(69E5DE04-7B8B-11d3-AF61-00A024FFC08C)] +interface nsIDocShellContainer : nsISupports +{ + /* + The current number of DocShells which are immediate children of the + current DocShell. + */ + attribute long childCount; + + /* + Add a new child DocShell. Adds to the end of the list. + */ + void AddChild(in nsIDocShell child); + + /* + Removes a child DocShell. + */ + void RemoveChild(in nsIDocShell child); + + /* + Enumerator to walk child list. + */ + readonly attribute nsIEnumerator childEnumerator; + + /* + Return the child DocShell with the specified name + */ + nsIDocShell FindChildWithName(in wstring name); +}; +