1 module org.eclipse.swt.internal.mozilla.nsIWebNavigation; 2 3 import java.lang.all; 4 5 import org.eclipse.swt.internal.mozilla.Common; 6 import org.eclipse.swt.internal.mozilla.nsID; 7 import org.eclipse.swt.internal.mozilla.nsISupports; 8 9 import org.eclipse.swt.internal.mozilla.nsIDOMDocument; 10 import org.eclipse.swt.internal.mozilla.nsIInputStream; 11 import org.eclipse.swt.internal.mozilla.nsISHistory; 12 import org.eclipse.swt.internal.mozilla.nsIURI; 13 14 const char[] NS_IWEBNAVIGATION_IID_STR = "f5d9e7b0-d930-11d3-b057-00a024ffc08c"; 15 16 const nsIID NS_IWEBNAVIGATION_IID= 17 {0xf5d9e7b0, 0xd930, 0x11d3, 18 [ 0xb0, 0x57, 0x00, 0xa0, 0x24, 0xff, 0xc0, 0x8c ]}; 19 20 interface nsIWebNavigation : nsISupports { 21 22 static const char[] IID_STR = NS_IWEBNAVIGATION_IID_STR; 23 static const nsIID IID = NS_IWEBNAVIGATION_IID; 24 25 extern(System): 26 nsresult GetCanGoBack(PRBool *aCanGoBack); 27 nsresult GetCanGoForward(PRBool *aCanGoForward); 28 nsresult GoBack(); 29 nsresult GoForward(); 30 nsresult GotoIndex(PRInt32 index); 31 32 enum { LOAD_FLAGS_MASK = 65535U }; 33 enum { LOAD_FLAGS_NONE = 0U }; 34 enum { LOAD_FLAGS_IS_REFRESH = 16U }; 35 enum { LOAD_FLAGS_IS_LINK = 32U }; 36 enum { LOAD_FLAGS_BYPASS_HISTORY = 64U }; 37 enum { LOAD_FLAGS_REPLACE_HISTORY = 128U }; 38 enum { LOAD_FLAGS_BYPASS_CACHE = 256U }; 39 enum { LOAD_FLAGS_BYPASS_PROXY = 512U }; 40 enum { LOAD_FLAGS_CHARSET_CHANGE = 1024U }; 41 enum { LOAD_FLAGS_STOP_CONTENT = 2048U }; 42 enum { LOAD_FLAGS_FROM_EXTERNAL = 4096U }; 43 enum { LOAD_FLAGS_ALLOW_THIRD_PARTY_FIXUP = 8192U }; 44 enum { LOAD_FLAGS_FIRST_LOAD = 16384U }; 45 46 nsresult LoadURI(PRUnichar *aURI, PRUint32 aLoadFlags, nsIURI aReferrer, nsIInputStream aPostData, nsIInputStream aHeaders); 47 nsresult Reload(PRUint32 aReloadFlags); 48 49 enum { STOP_NETWORK = 1U }; 50 enum { STOP_CONTENT = 2U }; 51 enum { STOP_ALL = 3U }; 52 53 nsresult Stop(PRUint32 aStopFlags); 54 nsresult GetDocument(nsIDOMDocument *aDocument); 55 nsresult GetCurrentURI(nsIURI *aCurrentURI); 56 nsresult GetReferringURI(nsIURI *aReferringURI); 57 nsresult GetSessionHistory(nsISHistory *aSessionHistory); 58 nsresult SetSessionHistory(nsISHistory aSessionHistory); 59 60 } 61