webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
WebPreferences.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2003, 2004, 2005, 2012 Apple Inc. All rights reserved.
3  *
4  * Redistribution and use in source and binary forms, with or without
5  * modification, are permitted provided that the following conditions
6  * are met:
7  *
8  * 1. Redistributions of source code must retain the above copyright
9  * notice, this list of conditions and the following disclaimer.
10  * 2. Redistributions in binary form must reproduce the above copyright
11  * notice, this list of conditions and the following disclaimer in the
12  * documentation and/or other materials provided with the distribution.
13  * 3. Neither the name of Apple Inc. ("Apple") nor the names of
14  * its contributors may be used to endorse or promote products derived
15  * from this software without specific prior written permission.
16  *
17  * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY
18  * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
19  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
20  * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
21  * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
22  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
23  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
24  * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27  */
28 
29 #import <Foundation/Foundation.h>
30 
60 typedef NS_ENUM(NSUInteger, WebCacheModel) {
64 };
65 
67 
69 
73 @interface WebPreferences: NSObject <NSCoding>
74 {
75 @package
76  WebPreferencesPrivate *_private;
77 }
78 
83 
93 - (instancetype)initWithIdentifier:(NSString *)anIdentifier;
94 
99 @property (nonatomic, readonly, copy) NSString *identifier;
104 @property (nonatomic, copy) NSString *standardFontFamily;
109 @property (nonatomic, copy) NSString *fixedFontFamily;
114 @property (nonatomic, copy) NSString *serifFontFamily;
119 @property (nonatomic, copy) NSString *sansSerifFontFamily;
124 @property (nonatomic, copy) NSString *cursiveFontFamily;
129 @property (nonatomic, copy) NSString *fantasyFontFamily;
134 @property (nonatomic) int defaultFontSize;
139 @property (nonatomic) int defaultFixedFontSize;
144 @property (nonatomic) int minimumFontSize;
149 @property (nonatomic) int minimumLogicalFontSize;
154 @property (nonatomic, copy) NSString *defaultTextEncodingName;
159 @property (nonatomic) BOOL userStyleSheetEnabled;
165 @property (nonatomic, strong) NSURL *userStyleSheetLocation;
170 @property (nonatomic, getter=isJavaEnabled) BOOL javaEnabled;
175 @property (nonatomic, getter=isJavaScriptEnabled) BOOL javaScriptEnabled;
180 @property (nonatomic) BOOL javaScriptCanOpenWindowsAutomatically;
185 @property (nonatomic, getter=arePlugInsEnabled) BOOL plugInsEnabled;
190 @property (nonatomic) BOOL allowsAnimatedImages;
195 @property (nonatomic) BOOL allowsAnimatedImageLooping;
200 @property (nonatomic) BOOL loadsImagesAutomatically;
207 @property (nonatomic) BOOL autosaves;
209 #if !TARGET_OS_IPHONE
210 
213 @property (nonatomic) BOOL shouldPrintBackgrounds;
214 #endif
215 
221 @property (nonatomic) BOOL privateBrowsingEnabled;
223 #if !TARGET_OS_IPHONE
224 
229 @property (nonatomic) BOOL tabsToLinks;
230 #endif
231 
241 @property (nonatomic) BOOL usesPageCache;
263 @property (nonatomic) WebCacheModel cacheModel;
268 @property (nonatomic) BOOL suppressesIncrementalRendering;
273 @property (nonatomic) BOOL allowsAirPlayForMediaPlayback;
275 @end
BOOL
Definition: PlatformScreenIOS.mm:46
NSString * standardFontFamily
Definition: WebPreferences.h:105
virtual HRESULT STDMETHODCALLTYPE isJavaScriptEnabled(_Out_ BOOL *)
Definition: WebPreferences.cpp:836
NSURL * userStyleSheetLocation
Definition: WebPreferences.h:166
NSString * identifier
Definition: WebPreferences.h:100
int defaultFixedFontSize
Definition: WebPreferences.h:140
WebPreferences * standardPreferences()
Definition: WebPreferences.mm:367
BOOL javaScriptCanOpenWindowsAutomatically
Definition: WebPreferences.h:181
BOOL allowsAnimatedImages
Definition: WebPreferences.h:191
NSString * WebPreferencesChangedNotification
Definition: WebPreferences.mm:66
NSString * cursiveFontFamily
Definition: WebPreferences.h:125
BOOL usesPageCache
Definition: WebPreferences.h:242
BOOL allowsAnimatedImageLooping
Definition: WebPreferences.h:196
int defaultFontSize
Definition: WebPreferences.h:135
WebCacheModel cacheModel
Definition: WebPreferences.h:264
virtual HRESULT STDMETHODCALLTYPE initWithIdentifier(_In_ BSTR, _COM_Outptr_opt_ IWebPreferences **)
Definition: WebPreferences.cpp:594
BOOL allowsAirPlayForMediaPlayback
Definition: WebPreferences.h:274
typedef NS_ENUM(NSUInteger, WebCacheModel)
Definition: WebPreferences.h:60
int minimumLogicalFontSize
Definition: WebPreferences.h:150
NSString * defaultTextEncodingName
Definition: WebPreferences.h:155
Definition: WebPreferences.h:73
Definition: IWebPreferences.idl:57
int minimumFontSize
Definition: WebPreferences.h:145
OBJC_CLASS NSURL
Definition: WebCoreSystemInterface.h:108
NSString * fantasyFontFamily
Definition: WebPreferences.h:130
BOOL javaEnabled
Definition: WebPreferences.h:171
BOOL javaScriptEnabled
Definition: WebPreferences.h:176
BOOL shouldPrintBackgrounds
Definition: WebPreferences.h:214
Definition: interfaces.idl:200
BOOL plugInsEnabled
Definition: WebPreferences.h:186
Definition: WebPreferences.mm:176
BOOL privateBrowsingEnabled
Definition: WebPreferences.h:222
BOOL userStyleSheetEnabled
Definition: WebPreferences.h:160
Definition: IWebPreferences.idl:58
BOOL loadsImagesAutomatically
Definition: WebPreferences.h:201
BOOL autosaves
Definition: WebPreferences.h:208
struct NSString NSString
Definition: WebCoreNSStringExtras.h:35
Definition: IWebPreferences.idl:59
WebCacheModel
Definition: IWebPreferences.idl:56
BOOL suppressesIncrementalRendering
Definition: WebPreferences.h:269
NSString * fixedFontFamily
Definition: WebPreferences.h:110
virtual HRESULT STDMETHODCALLTYPE isJavaEnabled(_Out_ BOOL *)
Definition: WebPreferences.cpp:822
NSString * serifFontFamily
Definition: WebPreferences.h:115
NSString * sansSerifFontFamily
Definition: WebPreferences.h:120
virtual HRESULT STDMETHODCALLTYPE arePlugInsEnabled(_Out_ BOOL *)
Definition: WebPreferences.cpp:962
BOOL tabsToLinks
Definition: WebPreferences.h:230