X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.eclipse.swt.win32.win32.x86_64%2Fsrc%2Forg%2Feclipse%2Fswt%2Finternal%2Fwebkit%2FIWebPreferences.java;fp=bundles%2Forg.eclipse.swt.win32.win32.x86_64%2Fsrc%2Forg%2Feclipse%2Fswt%2Finternal%2Fwebkit%2FIWebPreferences.java;h=36c9b0d32883e22ab28423e27467c2b057936a1e;hb=6b98970d0458754dd67f789afbd0a39e1e7ac6eb;hp=0000000000000000000000000000000000000000;hpb=56a61575ce0d27b340cb12438c8a7f303842095e;p=simantics%2Fplatform.git diff --git a/bundles/org.eclipse.swt.win32.win32.x86_64/src/org/eclipse/swt/internal/webkit/IWebPreferences.java b/bundles/org.eclipse.swt.win32.win32.x86_64/src/org/eclipse/swt/internal/webkit/IWebPreferences.java new file mode 100644 index 000000000..36c9b0d32 --- /dev/null +++ b/bundles/org.eclipse.swt.win32.win32.x86_64/src/org/eclipse/swt/internal/webkit/IWebPreferences.java @@ -0,0 +1,49 @@ +/******************************************************************************* + * Copyright (c) 2010, 2017 IBM Corporation and others. + * + * This program and the accompanying materials + * are made available under the terms of the Eclipse Public License 2.0 + * which accompanies this distribution, and is available at + * https://www.eclipse.org/legal/epl-2.0/ + * + * SPDX-License-Identifier: EPL-2.0 + * + * Contributors: + * IBM Corporation - initial API and implementation + *******************************************************************************/ +package org.eclipse.swt.internal.webkit; + + +import org.eclipse.swt.internal.ole.win32.*; + +public class IWebPreferences extends IUnknown { + +public IWebPreferences (long address) { + super (address); +} + +public int initWithIdentifier (long identifier, long[] preferences) { + return COM.VtblCall (4, getAddress (), identifier, preferences); +} + +public int setJavaEnabled (int enabled) { + return COM.VtblCall (33, getAddress (), enabled); +} + +public int setJavaScriptEnabled (int enabled) { + return COM.VtblCall (35, getAddress (), enabled); +} + +public int setJavaScriptCanOpenWindowsAutomatically (int enabled) { + return COM.VtblCall (37, getAddress (), enabled); +} + +public int setTabsToLinks (int enabled) { + return COM.VtblCall (52, getAddress (), enabled); +} + +public int setFontSmoothing (int smoothingType) { + return COM.VtblCall (63, getAddress (), smoothingType); +} + +}