WebKitCookieStorageAcceptPolicyOnlyFromMainDocumentDomain
} WebKitCookieStorageAcceptPolicy;
-/*!
- @class WebPreferences
+typedef enum WebCacheModel {
+ WebCacheModelDocumentViewer = 0,
+ WebCacheModelDocumentBrowser = 1,
+ WebCacheModelPrimaryWebBrowser = 2
+} WebCacheModel;
- @interface WebPreferences: NSObject <NSCoding>
-*/
[
object,
oleautomation,
]
interface IWebPreferences : IUnknown
{
- /*!
- @method standardPreferences
- + (WebPreferences *)standardPreferences;
- */
HRESULT standardPreferences([out, retval] IWebPreferences** standardPreferences);
- /*!
- @method initWithIdentifier:
- @param anIdentifier A string used to identify the WebPreferences.
- @discussion WebViews can share instances of WebPreferences by using an instance of WebPreferences with
- the same identifier. Typically, instance are not created directly. Instead you set the preferences
- identifier on a WebView. The identifier is used as a prefix that is added to the user defaults keys
- for the WebPreferences.
- @result Returns a new instance of WebPreferences or a previously allocated instance with the same identifier.
- - (id)initWithIdentifier:(NSString *)anIdentifier;
- */
HRESULT initWithIdentifier([in] BSTR anIdentifier, [out, retval] IWebPreferences** preferences);
-
- /*!
- @method identifier
- @result Returns the identifier for this WebPreferences.
- - (NSString *)identifier;
- */
HRESULT identifier([out, retval] BSTR* ident);
- /*!
- @method standardFontFamily
- - (NSString *)standardFontFamily;
- */
HRESULT standardFontFamily([out, retval] BSTR* family);
-
- /*!
- @method setStandardFontFamily:
- @param family
- - (void)setStandardFontFamily:(NSString *)family;
- */
HRESULT setStandardFontFamily([in] BSTR family);
- /*!
- @method fixedFontFamily
- - (NSString *)fixedFontFamily;
- */
HRESULT fixedFontFamily([out, retval] BSTR* family);
-
- /*!
- @method setFixedFontFamily:
- @param family
- - (void)setFixedFontFamily:(NSString *)family;
- */
HRESULT setFixedFontFamily([in] BSTR family);
- /*!
- @method serifFontFamily
- - (NSString *)serifFontFamily;
- */
HRESULT serifFontFamily([out, retval] BSTR* fontFamily);
-
- /*!
- @method setSerifFontFamily:
- @param family
- - (void)setSerifFontFamily:(NSString *)family;
- */
HRESULT setSerifFontFamily([in] BSTR family);
- /*!
- @method sansSerifFontFamily
- - (NSString *)sansSerifFontFamily;
- */
HRESULT sansSerifFontFamily([out, retval] BSTR* family);
-
- /*!
- @method setSansSerifFontFamily:
- @param family
- - (void)setSansSerifFontFamily:(NSString *)family;
- */
HRESULT setSansSerifFontFamily([in] BSTR family);
- /*!
- @method cursiveFontFamily
- - (NSString *)cursiveFontFamily;
- */
HRESULT cursiveFontFamily([out, retval] BSTR* family);
-
- /*!
- @method setCursiveFontFamily:
- @param family
- - (void)setCursiveFontFamily:(NSString *)family;
- */
HRESULT setCursiveFontFamily([in] BSTR family);
- /*!
- @method fantasyFontFamily
- - (NSString *)fantasyFontFamily;
- */
HRESULT fantasyFontFamily([out, retval] BSTR* family);
-
- /*!
- @method setFantasyFontFamily:
- @param family
- - (void)setFantasyFontFamily:(NSString *)family;
- */
HRESULT setFantasyFontFamily([in] BSTR family);
- /*!
- @method defaultFontSize
- - (int)defaultFontSize;
- */
HRESULT defaultFontSize([out, retval] int* fontSize);
-
- /*!
- @method setDefaultFontSize:
- @param size
- - (void)setDefaultFontSize:(int)size;
- */
HRESULT setDefaultFontSize([in] int fontSize);
- /*!
- @method defaultFixedFontSize
- - (int)defaultFixedFontSize;
- */
HRESULT defaultFixedFontSize([out, retval] int* fontSize);
-
- /*!
- @method setDefaultFixedFontSize:
- @param size
- - (void)setDefaultFixedFontSize:(int)size;
- */
HRESULT setDefaultFixedFontSize([in] int fontSize);
- /*!
- @method minimumFontSize
- - (int)minimumFontSize;
- */
HRESULT minimumFontSize([out, retval] int* fontSize);
-
- /*!
- @method setMinimumFontSize:
- @param size
- - (void)setMinimumFontSize:(int)size;
- */
HRESULT setMinimumFontSize([in] int fontSize);
- /*!
- @method minimumLogicalFontSize
- - (int)minimumLogicalFontSize;
- */
HRESULT minimumLogicalFontSize([out, retval] int* fontSize);
-
- /*!
- @method setMinimumLogicalFontSize:
- @param size
- - (void)setMinimumLogicalFontSize:(int)size;
- */
HRESULT setMinimumLogicalFontSize([in] int fontSize);
- /*!
- @method defaultTextEncodingName
- - (NSString *)defaultTextEncodingName;
- */
HRESULT defaultTextEncodingName([out, retval] BSTR* name);
-
- /*!
- @method setDefaultTextEncodingName:
- @param encoding
- - (void)setDefaultTextEncodingName:(NSString *)encoding;
- */
HRESULT setDefaultTextEncodingName([in] BSTR name);
- /*!
- @method userStyleSheetEnabled
- - (BOOL)userStyleSheetEnabled;
- */
HRESULT userStyleSheetEnabled([out, retval] BOOL* enabled);
-
- /*!
- @method setUserStyleSheetEnabled:
- @param flag
- - (void)setUserStyleSheetEnabled:(BOOL)flag;
- */
HRESULT setUserStyleSheetEnabled([in] BOOL enabled);
- /*!
- @method userStyleSheetLocation
- @discussion The location of the user style sheet.
- - (NSURL *)userStyleSheetLocation;
- */
HRESULT userStyleSheetLocation([out, retval] BSTR* location);
-
- /*!
- @method setUserStyleSheetLocation:
- @param URL The location of the user style sheet.
- - (void)setUserStyleSheetLocation:(NSURL *)URL;
- */
HRESULT setUserStyleSheetLocation([in] BSTR location);
- /*!
- @method isJavaEnabled
- - (BOOL)isJavaEnabled;
- */
HRESULT isJavaEnabled([out, retval] BOOL* enabled);
-
- /*!
- @method setJavaEnabled:
- @param flag
- - (void)setJavaEnabled:(BOOL)flag;
- */
HRESULT setJavaEnabled([in] BOOL enabled);
- /*!
- @method isJavaScriptEnabled
- - (BOOL)isJavaScriptEnabled;
- */
HRESULT isJavaScriptEnabled([out, retval] BOOL* enabled);
-
- /*!
- @method setJavaScriptEnabled:
- @param flag
- - (void)setJavaScriptEnabled:(BOOL)flag;
- */
HRESULT setJavaScriptEnabled([in] BOOL enabled);
- /*!
- @method JavaScriptCanOpenWindowsAutomatically
- - (BOOL)javaScriptCanOpenWindowsAutomatically;
- */
HRESULT javaScriptCanOpenWindowsAutomatically([out, retval] BOOL* enabled);
-
- /*!
- @method setJavaScriptCanOpenWindowsAutomatically:
- @param flag
- - (void)setJavaScriptCanOpenWindowsAutomatically:(BOOL)flag;
- */
HRESULT setJavaScriptCanOpenWindowsAutomatically([in] BOOL enabled);
- /*!
- @method arePlugInsEnabled
- - (BOOL)arePlugInsEnabled;
- */
HRESULT arePlugInsEnabled([out, retval] BOOL* enabled);
-
- /*!
- @method setPlugInsEnabled:
- @param flag
- - (void)setPlugInsEnabled:(BOOL)flag;
- */
HRESULT setPlugInsEnabled([in] BOOL enabled);
- /*!
- @method allowAnimatedImages
- - (BOOL)allowsAnimatedImages;
- */
HRESULT allowsAnimatedImages([out, retval] BOOL* enabled);
-
- /*!
- @method setAllowAnimatedImages:
- @param flag
- - (void)setAllowsAnimatedImages:(BOOL)flag;
- */
HRESULT setAllowsAnimatedImages([in] BOOL enabled);
-
- /*!
- @method allowAnimatedImageLooping
- - (BOOL)allowsAnimatedImageLooping;
- */
HRESULT allowAnimatedImageLooping([out, retval] BOOL* enabled);
-
- /*!
- @method setAllowAnimatedImageLooping:
- @param flag
- - (void)setAllowsAnimatedImageLooping: (BOOL)flag;
- */
HRESULT setAllowAnimatedImageLooping([in] BOOL enabled);
- /*!
- @method setWillLoadImagesAutomatically:
- @param flag
- - (void)setLoadsImagesAutomatically: (BOOL)flag;
- */
HRESULT setLoadsImagesAutomatically([in] BOOL enabled);
-
- /*!
- @method willLoadImagesAutomatically
- - (BOOL)loadsImagesAutomatically;
- */
HRESULT loadsImagesAutomatically([out, retval] BOOL* enabled);
- /*!
- @method setAutosaves:
- @param flag
- @discussion If autosave preferences is YES the settings represented by
- WebPreferences will be stored in the user defaults database.
- - (void)setAutosaves:(BOOL)flag;
- */
HRESULT setAutosaves([in] BOOL enabled);
-
- /*!
- @method autosaves
- @result The value of the autosave preferences flag.
- - (BOOL)autosaves;
- */
HRESULT autosaves([out, retval] BOOL* enabled);
- /*!
- @method setShouldPrintBackgrounds:
- @param flag
- - (void)setShouldPrintBackgrounds:(BOOL)flag;
- */
HRESULT setShouldPrintBackgrounds([in] BOOL enabled);
-
- /*!
- @method shouldPrintBackgrounds
- @result The value of the shouldPrintBackgrounds preferences flag
- - (BOOL)shouldPrintBackgrounds;
- */
HRESULT shouldPrintBackgrounds([out, retval] BOOL* enabled);
- /*!
- @method setPrivateBrowsingEnabled:
- @param flag
- @abstract If private browsing is enabled, WebKit will not store information
- about sites the user visits.
- - (void)setPrivateBrowsingEnabled:(BOOL)flag;
- */
HRESULT setPrivateBrowsingEnabled([in] BOOL enabled);
-
- /*!
- @method privateBrowsingEnabled
- - (BOOL)privateBrowsingEnabled;
- */
HRESULT privateBrowsingEnabled([out, retval] BOOL* enabled);
- /*!
- @method setTabsToLinks:
- @param flag
- @abstract If tabsToLinks is YES, the tab key will focus links and form controls.
- The option key temporarily reverses this preference.
- - (void)setTabsToLinks:(BOOL)flag;
- */
HRESULT setTabsToLinks([in] BOOL enabled);
-
- /*!
- @method tabsToLinks
- - (BOOL)tabsToLinks;
- */
HRESULT tabsToLinks([out, retval] BOOL* enabled);
- /*
- - (BOOL)textAreasAreResizable;
- */
HRESULT textAreasAreResizable([out, retval] BOOL* enabled);
-
- /*
- - (void)setTextAreasAreResizable:(BOOL)flag;
- */
HRESULT setTextAreasAreResizable([in] BOOL enabled);
- /*
- - (size_t)_pageCacheSize
- */
HRESULT pageCacheSize([out, retval] unsigned int* enabled);
-
- /*
- - (size_t)_objectCacheSize
- */
HRESULT objectCacheSize([out, retval] unsigned int* enabled);
- /*!
- @method iconDatabaseLocation
- @discussion The location of the icon database
- */
HRESULT iconDatabaseLocation([out, retval] BSTR* location);
-
- /*!
- @method setIconDatabaseLocation:
- @param Set the location of the icon database
- */
HRESULT setIconDatabaseLocation([in] BSTR location);
- /*!
- @method iconDatabaseEnabled:
- @discussion Whether or not the icon database is enabled
- */
HRESULT iconDatabaseEnabled([out, retval] BOOL* enabled);
-
- /*!
- @method setIconDatabaseEnabled:
- @param Enable/disable the icon database
- */
HRESULT setIconDatabaseEnabled([in] BOOL enabled);
HRESULT fontSmoothing([out, retval] FontSmoothingType* smoothingType);
HRESULT setFontSmoothing([in] FontSmoothingType smoothingType);
- /*
- - (WebKitEditableLinkBehavior)editableLinkBehavior;
- */
HRESULT editableLinkBehavior([out, retval] WebKitEditableLinkBehavior* editableLinkBehavior);
-
- /*
- - (void)setEditableLinkBehavior:(WebKitEditableLinkBehavior)behavior;
- */
HRESULT setEditableLinkBehavior([in] WebKitEditableLinkBehavior behavior);
HRESULT cookieStorageAcceptPolicy([out, retval] WebKitCookieStorageAcceptPolicy* acceptPolicy);
HRESULT isDOMPasteAllowed([out, retval] BOOL *allowed);
HRESULT setDOMPasteAllowed([in] BOOL allowed);
- /*
- - (BOOL)usesPageCache;
- */
HRESULT usesPageCache([out, retval] BOOL* usesPageCache);
-
- /*
- - (void)setUsesPageCache:(BOOL)flag;
- */
HRESULT setUsesPageCache([in] BOOL usesPageCache);
}