1999-10-15 11:23:53 +04:00
|
|
|
/* -*- 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 <travis@netscape.com>
|
1999-10-21 07:01:33 +04:00
|
|
|
* Steve Clark <buster@netscape.com>
|
1999-10-15 11:23:53 +04:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include "nsISupports.idl"
|
|
|
|
#include "domstubs.idl"
|
1999-10-21 07:01:33 +04:00
|
|
|
#include "nsIPref.idl"
|
1999-10-15 11:23:53 +04:00
|
|
|
|
|
|
|
/**
|
|
|
|
* The nsIDocShell
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
{69E5DE00-7B8B-11d3-AF61-00A024FFC08C} -
|
|
|
|
{69E5DE99-7B8B-11d3-AF61-00A024FFC08C} have been reserved for DocShell
|
|
|
|
Interfaces.
|
|
|
|
|
|
|
|
Currently Used:
|
|
|
|
{69E5DE00-7B8B-11d3-AF61-00A024FFC08C} - nsIDocShell
|
|
|
|
{69E5DE01-7B8B-11d3-AF61-00A024FFC08C} - nsIDocShellFile
|
|
|
|
{69E5DE02-7B8B-11d3-AF61-00A024FFC08C} - nsIDocShellEdit
|
|
|
|
{69E5DE03-7B8B-11d3-AF61-00A024FFC08C} - nsIHTMLDocShell
|
1999-10-21 07:01:33 +04:00
|
|
|
{69E5DE04-7B8B-11d3-AF61-00A024FFC08C} - nsIDocShellContainer
|
1999-10-15 11:23:53 +04:00
|
|
|
*/
|
|
|
|
|
1999-10-21 07:01:33 +04:00
|
|
|
[ptr] native nsIPresContext(nsIPresContext);
|
|
|
|
|
1999-10-15 11:23:53 +04:00
|
|
|
[scriptable, uuid(69E5DE00-7B8B-11d3-AF61-00A024FFC08C)]
|
|
|
|
interface nsIDocShell : nsISupports
|
|
|
|
{
|
1999-10-21 07:01:33 +04:00
|
|
|
/*
|
|
|
|
Loads a given URI. This will give priority to loading the requested URI
|
|
|
|
in the object implementing this interface. If it can't be loaded here
|
|
|
|
however, the URL dispatcher will go through its normal process of content
|
|
|
|
loading.
|
|
|
|
|
|
|
|
@param uri - The URI to load.
|
|
|
|
*/
|
|
|
|
void LoadURI(in wstring uri);
|
|
|
|
|
|
|
|
/*
|
|
|
|
Loads a given URI through the specified adapter. This will give priority
|
|
|
|
to loading the requested URI in the object implementing this interface.
|
|
|
|
If it can't be loaded here however, the URL dispatcher will go through its
|
|
|
|
normal process of content loading.
|
|
|
|
|
|
|
|
@param uri - The URI to load.
|
|
|
|
@param adapterBinding - The local IP address of the adapter to bind to.
|
|
|
|
*/
|
|
|
|
void LoadURIVia(in wstring uri, in unsigned long adapterBinding);
|
1999-10-15 11:23:53 +04:00
|
|
|
|
1999-10-21 07:01:33 +04:00
|
|
|
/*
|
|
|
|
The current document that is loaded in the DocShell. When setting this it
|
|
|
|
will will simulate the normal load process.
|
|
|
|
*/
|
1999-10-15 11:23:53 +04:00
|
|
|
attribute nsIDOMDocument document;
|
1999-10-21 07:01:33 +04:00
|
|
|
|
|
|
|
/*
|
|
|
|
name of the DocShell
|
|
|
|
*/
|
|
|
|
attribute wstring name;
|
|
|
|
|
|
|
|
/*
|
|
|
|
Presentation context
|
|
|
|
*/
|
|
|
|
attribute nsIPresContext presContext;
|
|
|
|
|
|
|
|
/*
|
|
|
|
Parent DocShell
|
|
|
|
*/
|
|
|
|
attribute nsIDocShell parent;
|
|
|
|
|
|
|
|
/*
|
|
|
|
Prefs to use for the DocShell.
|
|
|
|
*/
|
|
|
|
attribute nsIPref Prefs;
|
|
|
|
|
|
|
|
/*
|
|
|
|
Returns the root DocShell instance. Since DocShells can be nested
|
|
|
|
(when frames are present for example) this instance represents the
|
|
|
|
outermost DocShell.
|
|
|
|
*/
|
|
|
|
readonly attribute nsIDocShell rootDocShell;
|
1999-10-15 11:23:53 +04:00
|
|
|
};
|