Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGrant Gayed2013-09-24 16:04:15 +0000
committerGrant Gayed2013-09-24 16:04:15 +0000
commit45277ac03e376d6677c11327ab12d6efe72ca07b (patch)
tree8255c3de45ac2cd7bcc794c1bf52358bd3a44ff5 /bundles/org.eclipse.swt/Eclipse SWT Mozilla/carbon/org/eclipse/swt/browser/MozillaDelegate.java
parent53bf555c9df4a93484137843f94aabb1d0196929 (diff)
downloadeclipse.platform.swt-45277ac03e376d6677c11327ab12d6efe72ca07b.tar.gz
eclipse.platform.swt-45277ac03e376d6677c11327ab12d6efe72ca07b.tar.xz
eclipse.platform.swt-45277ac03e376d6677c11327ab12d6efe72ca07b.zip
fix XULRunner on retina displays
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT Mozilla/carbon/org/eclipse/swt/browser/MozillaDelegate.java')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Mozilla/carbon/org/eclipse/swt/browser/MozillaDelegate.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Mozilla/carbon/org/eclipse/swt/browser/MozillaDelegate.java b/bundles/org.eclipse.swt/Eclipse SWT Mozilla/carbon/org/eclipse/swt/browser/MozillaDelegate.java
index a3c97e4e04..d287d8dbce 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT Mozilla/carbon/org/eclipse/swt/browser/MozillaDelegate.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Mozilla/carbon/org/eclipse/swt/browser/MozillaDelegate.java
@@ -14,6 +14,7 @@ import java.util.Hashtable;
import org.eclipse.swt.SWT;
import org.eclipse.swt.browser.Browser;
+import org.eclipse.swt.graphics.Point;
import org.eclipse.swt.internal.*;
import org.eclipse.swt.internal.carbon.*;
import org.eclipse.swt.internal.cocoa.*;
@@ -58,6 +59,10 @@ static String getJSLibraryName_Pre4 () {
return "libmozjs.dylib"; //$NON-NLS-1$
}
+Point getNativeSize (int width, int height) {
+ return new Point (width, height);
+}
+
static String getProfilePath () {
String baseDir = System.getProperty ("user.home"); //$NON-NLS-1$
return baseDir + Mozilla.SEPARATOR_OS + ".mozilla" + Mozilla.SEPARATOR_OS + "eclipse"; //$NON-NLS-1$ //$NON-NLS-2$

Back to the top