summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT PI
diff options
context:
space:
mode:
authorGrant Gayed <ggayed>2009-04-17 21:14:37 +0000
committerGrant Gayed <ggayed>2009-04-17 21:14:37 +0000
commit73415b0571f810699ceb8be1dda62144bce14807 (patch)
tree8552eecfce16d230ed509303957dd3cfc3275630 /bundles/org.eclipse.swt/Eclipse SWT PI
parentce138c7e1fb0d889814afbd2a7603dfa7d22605f (diff)
downloadeclipse.platform.swt-73415b0571f810699ceb8be1dda62144bce14807.tar.gz
eclipse.platform.swt-73415b0571f810699ceb8be1dda62144bce14807.tar.xz
eclipse.platform.swt-73415b0571f810699ceb8be1dda62144bce14807.zip
267680 - embedded browser cache does not reset
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT PI')
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT PI/carbon/org/eclipse/swt/internal/cocoa/Cocoa.java4
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/FoundationFull.bridgesupport.extras8
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSMutableURLRequest.java4
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSURL.java4
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/OS.java3
5 files changed, 23 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/carbon/org/eclipse/swt/internal/cocoa/Cocoa.java b/bundles/org.eclipse.swt/Eclipse SWT PI/carbon/org/eclipse/swt/internal/cocoa/Cocoa.java
index 67e89ea7c6..b81d08c0dc 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/carbon/org/eclipse/swt/internal/cocoa/Cocoa.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/carbon/org/eclipse/swt/internal/cocoa/Cocoa.java
@@ -88,12 +88,14 @@ public static final int S_initialRequest = Cocoa.sel_registerName("initialReques
public static final int S_initWithFrame_frameName_groupName = Cocoa.sel_registerName("initWithFrame:frameName:groupName:"); //$NON-NLS-1$
public static final int S_initWithProc = Cocoa.sel_registerName("initWithProc:user_data:"); //$NON-NLS-1$
public static final int S_intValue = Cocoa.sel_registerName("intValue"); //$NON-NLS-1$
+public static final int S_isFileURL = Cocoa.sel_registerName("isFileURL"); //$NON-NLS-1$
public static final int S_isKindOfClass = Cocoa.sel_registerName("isKindOfClass:"); //$NON-NLS-1$
public static final int S_isSessionOnly = Cocoa.sel_registerName("isSessionOnly"); //$NON-NLS-1$
public static final int S_loadHTMLStringbaseURL = Cocoa.sel_registerName("loadHTMLString:baseURL:"); //$NON-NLS-1$
public static final int S_loadRequest = Cocoa.sel_registerName("loadRequest:"); //$NON-NLS-1$
public static final int S_length = Cocoa.sel_registerName("length"); //$NON-NLS-1$
public static final int S_mainFrame = Cocoa.sel_registerName("mainFrame"); //$NON-NLS-1$
+public static final int S_mutableCopy = Cocoa.sel_registerName("mutableCopy"); //$NON-NLS-1$
public static final int S_name = Cocoa.sel_registerName("name"); //$NON-NLS-1$
public static final int S_numberWithBool = Cocoa.sel_registerName("numberWithBool:"); //$NON-NLS-1$
public static final int S_numberWithDouble = Cocoa.sel_registerName("numberWithDouble:"); //$NON-NLS-1$
@@ -119,6 +121,7 @@ public static final int S_request = Cocoa.sel_registerName("request"); //$NON-NL
public static final int S_retainCount = Cocoa.sel_registerName("retainCount"); //$NON-NLS-1$
public static final int S_sender = Cocoa.sel_registerName("sender"); //$NON-NLS-1$
public static final int S_setApplicationNameForUserAgent = Cocoa.sel_registerName("setApplicationNameForUserAgent:"); //$NON-NLS-1$
+public static final int S_setCachePolicy = Cocoa.sel_registerName("setCachePolicy:"); //$NON-NLS-1$
public static final int S_setCookie = Cocoa.sel_registerName("setCookie:"); //$NON-NLS-1$
public static final int S_setDestinationAllowOverwrite = Cocoa.sel_registerName("setDestination:allowOverwrite:"); //$NON-NLS-1$
public static final int S_setDownloadDelegate = Cocoa.sel_registerName("setDownloadDelegate:"); //$NON-NLS-1$
@@ -224,6 +227,7 @@ public static final int NSClosePathBezierPathElement = 3;
public static final int NSOrderedSame = 0;
public static final int NSURLCredentialPersistenceForSession = 1;
+public static final int NSURLRequestReloadIgnoringLocalCacheData = 1;
/* WebKit */
/** @param outView cast=(HIViewRef *) */
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/FoundationFull.bridgesupport.extras b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/FoundationFull.bridgesupport.extras
index 4cbe49dd5c..c95ad9a1d2 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/FoundationFull.bridgesupport.extras
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/FoundationFull.bridgesupport.extras
@@ -32,6 +32,7 @@
<enum name="NSOrderedSame" swt_gen="true"></enum>
<enum name="NSURLCredentialPersistenceForSession" swt_gen="true"></enum>
<enum name="NSURLErrorBadURL" swt_gen="true"></enum>
+ <enum name="NSURLRequestReloadIgnoringLocalCacheData" swt_gen="true"></enum>
<enum name="NSUTF8StringEncoding" swt_gen="true"></enum>
<function name="NSEqualRects" swt_gen="true">
<arg name="aRect" swt_gen="true"></arg>
@@ -530,6 +531,10 @@
</method>
</class>
<class name="NSMutableURLRequest" swt_gen="mixed" swt_superclass="NSURLRequest">
+ <method selector="setCachePolicy:" swt_gen="true">
+ <arg name="policy" swt_gen="true"></arg>
+ <retval swt_gen="true"></retval>
+ </method>
<method selector="setURL:" swt_gen="true">
<arg name="URL" swt_gen="true"></arg>
<retval swt_gen="true"></retval>
@@ -910,6 +915,9 @@
<arg name="path" swt_gen="true"></arg>
<retval swt_gen="true" swt_java_type="NSURL"></retval>
</method>
+ <method selector="isFileURL" swt_gen="true">
+ <retval swt_gen="true"></retval>
+ </method>
</class>
<class name="NSURLAuthenticationChallenge" swt_gen="mixed">
<method selector="previousFailureCount" swt_gen="true">
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSMutableURLRequest.java b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSMutableURLRequest.java
index 3071ad3f8d..23193a8b69 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSMutableURLRequest.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSMutableURLRequest.java
@@ -24,6 +24,10 @@ public NSMutableURLRequest(id id) {
super(id);
}
+public void setCachePolicy(int /*long*/ policy) {
+ OS.objc_msgSend(this.id, OS.sel_setCachePolicy_, policy);
+}
+
public void setURL(NSURL URL) {
OS.objc_msgSend(this.id, OS.sel_setURL_, URL != null ? URL.id : 0);
}
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSURL.java b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSURL.java
index a137b258dc..d28af49d3b 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSURL.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSURL.java
@@ -48,4 +48,8 @@ public static NSURL fileURLWithPath(NSString path) {
return result != 0 ? new NSURL(result) : null;
}
+public boolean isFileURL() {
+ return OS.objc_msgSend_bool(this.id, OS.sel_isFileURL);
+}
+
}
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/OS.java b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/OS.java
index 182edc09ea..3dfd813bc1 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/OS.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/OS.java
@@ -1102,6 +1102,7 @@ public static final int /*long*/ sel_isEqual_ = sel_registerName("isEqual:");
public static final int /*long*/ sel_isEqualTo_ = sel_registerName("isEqualTo:");
public static final int /*long*/ sel_isEqualToString_ = sel_registerName("isEqualToString:");
public static final int /*long*/ sel_isFilePackageAtPath_ = sel_registerName("isFilePackageAtPath:");
+public static final int /*long*/ sel_isFileURL = sel_registerName("isFileURL");
public static final int /*long*/ sel_isFlipped = sel_registerName("isFlipped");
public static final int /*long*/ sel_isHidden = sel_registerName("isHidden");
public static final int /*long*/ sel_isHiddenOrHasHiddenAncestor = sel_registerName("isHiddenOrHasHiddenAncestor");
@@ -1436,6 +1437,7 @@ public static final int /*long*/ sel_setBordered_ = sel_registerName("setBordere
public static final int /*long*/ sel_setBoxType_ = sel_registerName("setBoxType:");
public static final int /*long*/ sel_setButtonType_ = sel_registerName("setButtonType:");
public static final int /*long*/ sel_setCacheMode_ = sel_registerName("setCacheMode:");
+public static final int /*long*/ sel_setCachePolicy_ = sel_registerName("setCachePolicy:");
public static final int /*long*/ sel_setCanChooseDirectories_ = sel_registerName("setCanChooseDirectories:");
public static final int /*long*/ sel_setCanChooseFiles_ = sel_registerName("setCanChooseFiles:");
public static final int /*long*/ sel_setCanCreateDirectories_ = sel_registerName("setCanCreateDirectories:");
@@ -2009,6 +2011,7 @@ public static final int NSNotFound = 2147483647;
public static final int NSOrderedSame = 0;
public static final int NSURLCredentialPersistenceForSession = 1;
public static final int NSURLErrorBadURL = -1000;
+public static final int NSURLRequestReloadIgnoringLocalCacheData = 1;
public static final int NSUTF8StringEncoding = 4;
/** Globals */