view dwt/internal/mozilla/nsIContentViewer.d @ 341:942da4b6558a

Ongoing fixup for compile
author John Reimer <terminal.node@gmail.com>
date Sun, 26 Oct 2008 21:19:51 -0700
parents dd63eb078d7a
children 9a4d7706df52
line wrap: on
line source

module dwt.internal.mozilla.nsIContentViewer;

import dwt.internal.mozilla.Common;
import dwt.internal.mozilla.nsID;
import dwt.internal.mozilla.nsISupports;

import dwt.internal.mozilla.nsIDOMDocument;
import dwt.internal.mozilla.nsISHEntry;

/******************************************************************************

******************************************************************************/

const char[] NS_ICONTENTVIEWER_IID_STR = "6a7ddb40-8a9e-4576-8ad1-71c5641d8780";

const nsIID NS_ICONTENTVIEWER_IID= 
  {0x6a7ddb40, 0x8a9e, 0x4576, 
    [ 0x8a, 0xd1, 0x71, 0xc5, 0x64, 0x1d, 0x87, 0x80 ]};

//extern(System)

interface nsIContentViewer : nsISupports {

  static const char[] IID_STR = NS_ICONTENTVIEWER_IID_STR;
  static const nsIID IID = NS_ICONTENTVIEWER_IID;

  nsresult Init(nsIWidget * aParentWidget, nsIDeviceContext * aDeviceContext, nsRect * aBounds);
  nsresult GetContainer(nsISupports  *aContainer);
  nsresult SetContainer(nsISupports  aContainer);
  nsresult LoadStart(nsISupports aDoc);
  nsresult LoadComplete(PRUint32 aStatus);
  nsresult PermitUnload(PRBool *_retval);
  nsresult PageHide(PRBool isUnload);
  nsresult Close(nsISHEntry historyEntry);
  nsresult Destroy();
  nsresult Stop();
  nsresult GetDOMDocument(nsIDOMDocument  *aDOMDocument);
  nsresult SetDOMDocument(nsIDOMDocument  aDOMDocument);
  nsresult GetBounds(nsRect * aBounds);
  nsresult SetBounds(nsRect * aBounds);
  nsresult GetPreviousViewer(nsIContentViewer  *aPreviousViewer);
  nsresult SetPreviousViewer(nsIContentViewer  aPreviousViewer);
  nsresult Move(PRInt32 aX, PRInt32 aY);
  nsresult Show();
  nsresult Hide();
  nsresult GetEnableRendering(PRBool *aEnableRendering);
  nsresult SetEnableRendering(PRBool aEnableRendering);
  nsresult GetSticky(PRBool *aSticky);
  nsresult SetSticky(PRBool aSticky);
  nsresult RequestWindowClose(PRBool *_retval);
  nsresult Open(nsISupports aState);
  nsresult ClearHistoryEntry();

}

/******************************************************************************

******************************************************************************/

const char[] NS_ICONTENTVIEWER_MOZILLA_1_8_BRANCH_IID_STR = "51341ed4-a3bf-4fd5-ae17-5fd3ec59dcab";

const nsIID NS_ICONTENTVIEWER_MOZILLA_1_8_BRANCH_IID= 
  {0x51341ed4, 0xa3bf, 0x4fd5, 
    [ 0xae, 0x17, 0x5f, 0xd3, 0xec, 0x59, 0xdc, 0xab ]};

//extern(System)

interface nsIContentViewer_MOZILLA_1_8_BRANCH : nsISupports {

  static const char[] IID_STR = NS_ICONTENTVIEWER_MOZILLA_1_8_BRANCH_IID_STR;
  static const nsIID IID = NS_ICONTENTVIEWER_MOZILLA_1_8_BRANCH_IID;

  nsresult OpenWithEntry(nsISupports aState, nsISHEntry aSHEntry);

}