view dwt/internal/mozilla/nsIWebProgress.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.nsIWebProgress;

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

import dwt.internal.mozilla.nsIDOMWindow; 
import dwt.internal.mozilla.nsIWebProgressListener; 

const char[] NS_IWEBPROGRESS_IID_STR = "570f39d0-efd0-11d3-b093-00a024ffc08c";

const nsIID NS_IWEBPROGRESS_IID= 
  {0x570f39d0, 0xefd0, 0x11d3, 
    [ 0xb0, 0x93, 0x00, 0xa0, 0x24, 0xff, 0xc0, 0x8c ]};

//extern(System)

interface nsIWebProgress : nsISupports {

  static const char[] IID_STR = NS_IWEBPROGRESS_IID_STR;
  static const nsIID IID = NS_IWEBPROGRESS_IID;

  enum { NOTIFY_STATE_REQUEST = 1U };
  enum { NOTIFY_STATE_DOCUMENT = 2U };
  enum { NOTIFY_STATE_NETWORK = 4U };
  enum { NOTIFY_STATE_WINDOW = 8U };
  enum { NOTIFY_STATE_ALL = 15U };
  enum { NOTIFY_PROGRESS = 16U };
  enum { NOTIFY_STATUS = 32U };
  enum { NOTIFY_SECURITY = 64U };
  enum { NOTIFY_LOCATION = 128U };
  enum { NOTIFY_ALL = 255U };

  nsresult AddProgressListener(nsIWebProgressListener aListener, PRUint32 aNotifyMask);
  nsresult RemoveProgressListener(nsIWebProgressListener aListener);
  nsresult GetDOMWindow(nsIDOMWindow  *aDOMWindow);
  nsresult GetIsLoadingDocument(PRBool *aIsLoadingDocument);

}