view dwt/internal/mozilla/nsIDocShell_1_8.d @ 45:d8635bb48c7c

Merge with SWT 3.5
author Jacob Carlborg <doob@me.com>
date Mon, 01 Dec 2008 17:07:00 +0100
parents
children
line wrap: on
line source

/* ***** BEGIN LICENSE BLOCK *****
 * Version: MPL 1.1
 *
 * 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 Mozilla Communicator client code, released March 31, 1998.
 *
 * The Initial Developer of the Original Code is
 * Netscape Communications Corporation.
 * Portions created by Netscape are Copyright (C) 1998-1999
 * Netscape Communications Corporation.  All Rights Reserved.
 *
 * Contributor(s):
 *
 * IBM
 * -  Binding to permit interfacing between Mozilla and DWT
 * -  Copyright (C) 2003, 2008 IBM Corp.  All Rights Reserved.
 *
 * ***** END LICENSE BLOCK ***** */
module dwt.internal.mozilla.nsIDocShell_1_8;

import dwt.dwthelper.utils;

public class nsIDocShell_1_8 extends nsISupports {

    static final int LAST_METHOD_ID = nsISupports.LAST_METHOD_ID + 61;

    public static final String NS_IDOCSHELL_IID_STR =
        "9f0c7461-b9a4-47f6-b88c-421dce1bce66";

    public static final nsID NS_IDOCSHELL_IID =
        new nsID(NS_IDOCSHELL_IID_STR);

    public nsIDocShell_1_8(int /*long*/ address) {
        super(address);
    }

    public int LoadURI(int /*long*/ uri, int /*long*/ loadInfo, int aLoadFlags, int firstParty) {
        return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 1, getAddress(), uri, loadInfo, aLoadFlags, firstParty);
    }

    public int LoadStream(int /*long*/ aStream, int /*long*/ aURI, int /*long*/ aContentType, int /*long*/ aContentCharset, int /*long*/ aLoadInfo) {
        return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 2, getAddress(), aStream, aURI, aContentType, aContentCharset, aLoadInfo);
    }

    public static final int INTERNAL_LOAD_FLAGS_NONE = 0;

    public static final int INTERNAL_LOAD_FLAGS_INHERIT_OWNER = 1;

    public static final int INTERNAL_LOAD_FLAGS_DONT_SEND_REFERRER = 2;

    public int InternalLoad(int /*long*/ aURI, int /*long*/ aReferrer, int /*long*/ aOwner, int aFlags, char[] aWindowTarget, byte[] aTypeHint, int /*long*/ aPostDataStream, int /*long*/ aHeadersStream, int aLoadFlags, int /*long*/ aSHEntry, int firstParty, int /*long*/[] aDocShell, int /*long*/[] aRequest) {
        return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 3, getAddress(), aURI, aReferrer, aOwner, aFlags, aWindowTarget, aTypeHint, aPostDataStream, aHeadersStream, aLoadFlags, aSHEntry, firstParty, aDocShell, aRequest);
    }

    public int CreateLoadInfo(int /*long*/[] loadInfo) {
        return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 4, getAddress(), loadInfo);
    }

    public int PrepareForNewContentModel() {
        return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 5, getAddress());
    }

    public int SetCurrentURI(int /*long*/ aURI) {
        return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 6, getAddress(), aURI);
    }

    public int FirePageHideNotification(int isUnload) {
        return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 7, getAddress(), isUnload);
    }

    public int GetPresContext(int /*long*/[] aPresContext) {
        return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 8, getAddress(), aPresContext);
    }

    public int GetPresShell(int /*long*/[] aPresShell) {
        return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 9, getAddress(), aPresShell);
    }

    public int GetEldestPresShell(int /*long*/[] aEldestPresShell) {
        return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 10, getAddress(), aEldestPresShell);
    }

    public int GetContentViewer(int /*long*/[] aContentViewer) {
        return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 11, getAddress(), aContentViewer);
    }

    public int GetChromeEventHandler(int /*long*/[] aChromeEventHandler) {
        return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 12, getAddress(), aChromeEventHandler);
    }

    public int SetChromeEventHandler(int /*long*/ aChromeEventHandler) {
        return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 13, getAddress(), aChromeEventHandler);
    }

    public int GetDocumentCharsetInfo(int /*long*/[] aDocumentCharsetInfo) {
        return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 14, getAddress(), aDocumentCharsetInfo);
    }

    public int SetDocumentCharsetInfo(int /*long*/ aDocumentCharsetInfo) {
        return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 15, getAddress(), aDocumentCharsetInfo);
    }

    public int GetAllowPlugins(int[] aAllowPlugins) {
        return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 16, getAddress(), aAllowPlugins);
    }

    public int SetAllowPlugins(int aAllowPlugins) {
        return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 17, getAddress(), aAllowPlugins);
    }

    public int GetAllowJavascript(int[] aAllowJavascript) {
        return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 18, getAddress(), aAllowJavascript);
    }

    public int SetAllowJavascript(int aAllowJavascript) {
        return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 19, getAddress(), aAllowJavascript);
    }

    public int GetAllowMetaRedirects(int[] aAllowMetaRedirects) {
        return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 20, getAddress(), aAllowMetaRedirects);
    }

    public int SetAllowMetaRedirects(int aAllowMetaRedirects) {
        return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 21, getAddress(), aAllowMetaRedirects);
    }

    public int GetAllowSubframes(int[] aAllowSubframes) {
        return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 22, getAddress(), aAllowSubframes);
    }

    public int SetAllowSubframes(int aAllowSubframes) {
        return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 23, getAddress(), aAllowSubframes);
    }

    public int GetAllowImages(int[] aAllowImages) {
        return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 24, getAddress(), aAllowImages);
    }

    public int SetAllowImages(int aAllowImages) {
        return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 25, getAddress(), aAllowImages);
    }

    public static final int ENUMERATE_FORWARDS = 0;

    public static final int ENUMERATE_BACKWARDS = 1;

    public int GetDocShellEnumerator(int aItemType, int aDirection, int /*long*/[] _retval) {
        return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 26, getAddress(), aItemType, aDirection, _retval);
    }

    public static final int APP_TYPE_UNKNOWN = 0;

    public static final int APP_TYPE_MAIL = 1;

    public static final int APP_TYPE_EDITOR = 2;

    public int GetAppType(int[] aAppType) {
        return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 27, getAddress(), aAppType);
    }

    public int SetAppType(int aAppType) {
        return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 28, getAddress(), aAppType);
    }

    public int GetAllowAuth(int[] aAllowAuth) {
        return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 29, getAddress(), aAllowAuth);
    }

    public int SetAllowAuth(int aAllowAuth) {
        return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 30, getAddress(), aAllowAuth);
    }

    public int GetZoom(float[] aZoom) {
        return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 31, getAddress(), aZoom);
    }

    public int SetZoom(float aZoom) {
        return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 32, getAddress(), aZoom);
    }

    public int GetMarginWidth(int[] aMarginWidth) {
        return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 33, getAddress(), aMarginWidth);
    }

    public int SetMarginWidth(int aMarginWidth) {
        return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 34, getAddress(), aMarginWidth);
    }

    public int GetMarginHeight(int[] aMarginHeight) {
        return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 35, getAddress(), aMarginHeight);
    }

    public int SetMarginHeight(int aMarginHeight) {
        return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 36, getAddress(), aMarginHeight);
    }

    public int GetHasFocus(int[] aHasFocus) {
        return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 37, getAddress(), aHasFocus);
    }

    public int SetHasFocus(int aHasFocus) {
        return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 38, getAddress(), aHasFocus);
    }

    public int GetCanvasHasFocus(int[] aCanvasHasFocus) {
        return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 39, getAddress(), aCanvasHasFocus);
    }

    public int SetCanvasHasFocus(int aCanvasHasFocus) {
        return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 40, getAddress(), aCanvasHasFocus);
    }

    public int TabToTreeOwner(int forward, int[] tookFocus) {
        return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 41, getAddress(), forward, tookFocus);
    }

    public static final int BUSY_FLAGS_NONE = 0;

    public static final int BUSY_FLAGS_BUSY = 1;

    public static final int BUSY_FLAGS_BEFORE_PAGE_LOAD = 2;

    public static final int BUSY_FLAGS_PAGE_LOADING = 4;

    public static final int LOAD_CMD_NORMAL = 1;

    public static final int LOAD_CMD_RELOAD = 2;

    public static final int LOAD_CMD_HISTORY = 4;

    public int GetBusyFlags(int[] aBusyFlags) {
        return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 42, getAddress(), aBusyFlags);
    }

    public int GetLoadType(int[] aLoadType) {
        return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 43, getAddress(), aLoadType);
    }

    public int SetLoadType(int aLoadType) {
        return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 44, getAddress(), aLoadType);
    }

    public int IsBeingDestroyed(int[] _retval) {
        return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 45, getAddress(), _retval);
    }

    public int GetIsExecutingOnLoadHandler(int[] aIsExecutingOnLoadHandler) {
        return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 46, getAddress(), aIsExecutingOnLoadHandler);
    }

    public int GetLayoutHistoryState(int /*long*/[] aLayoutHistoryState) {
        return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 47, getAddress(), aLayoutHistoryState);
    }

    public int SetLayoutHistoryState(int /*long*/ aLayoutHistoryState) {
        return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 48, getAddress(), aLayoutHistoryState);
    }

    public int GetShouldSaveLayoutState(int[] aShouldSaveLayoutState) {
        return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 49, getAddress(), aShouldSaveLayoutState);
    }

    public int GetSecurityUI(int /*long*/[] aSecurityUI) {
        return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 50, getAddress(), aSecurityUI);
    }

    public int SetSecurityUI(int /*long*/ aSecurityUI) {
        return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 51, getAddress(), aSecurityUI);
    }

    public int SuspendRefreshURIs() {
        return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 52, getAddress());
    }

    public int ResumeRefreshURIs() {
        return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 53, getAddress());
    }

    public int BeginRestore(int /*long*/ viewer, int top) {
        return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 54, getAddress(), viewer, top);
    }

    public int FinishRestore() {
        return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 55, getAddress());
    }

    public int GetRestoringDocument(int[] aRestoringDocument) {
        return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 56, getAddress(), aRestoringDocument);
    }

    public int GetUseErrorPages(int[] aUseErrorPages) {
        return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 57, getAddress(), aUseErrorPages);
    }

    public int SetUseErrorPages(int aUseErrorPages) {
        return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 58, getAddress(), aUseErrorPages);
    }

    public int GetPreviousTransIndex(int[] aPreviousTransIndex) {
        return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 59, getAddress(), aPreviousTransIndex);
    }

    public int GetLoadedTransIndex(int[] aLoadedTransIndex) {
        return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 60, getAddress(), aLoadedTransIndex);
    }

    public int HistoryPurged(int numEntries) {
        return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 61, getAddress(), numEntries);
    }
}