diff options
author | Grant Gayed | 2013-09-24 16:04:15 +0000 |
---|---|---|
committer | Grant Gayed | 2013-09-24 16:04:15 +0000 |
commit | 45277ac03e376d6677c11327ab12d6efe72ca07b (patch) | |
tree | 8255c3de45ac2cd7bcc794c1bf52358bd3a44ff5 /bundles/org.eclipse.swt/Eclipse SWT Mozilla/carbon/org/eclipse/swt/browser/MozillaDelegate.java | |
parent | 53bf555c9df4a93484137843f94aabb1d0196929 (diff) | |
download | eclipse.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.java | 5 |
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$ |