webengine/osswebengine/WebKit/win/Interfaces/IWebPreferences.idl
changeset 0 dd21522fd290
equal deleted inserted replaced
-1:000000000000 0:dd21522fd290
       
     1 /*
       
     2  * Copyright (C) 2006, 2007 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  * 1. Redistributions of source code must retain the above copyright
       
     8  *    notice, this list of conditions and the following disclaimer.
       
     9  * 2. Redistributions in binary form must reproduce the above copyright
       
    10  *    notice, this list of conditions and the following disclaimer in the
       
    11  *    documentation and/or other materials provided with the distribution.
       
    12  *
       
    13  * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
       
    14  * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
       
    15  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
       
    16  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL APPLE COMPUTER, INC. OR
       
    17  * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
       
    18  * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
       
    19  * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
       
    20  * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
       
    21  * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
       
    22  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
       
    23  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
       
    24  */
       
    25 
       
    26 cpp_quote("/*")
       
    27 cpp_quote(" * Copyright (C) 2006, 2007 Apple Inc.  All rights reserved.")
       
    28 cpp_quote(" *")
       
    29 cpp_quote(" * Redistribution and use in source and binary forms, with or without")
       
    30 cpp_quote(" * modification, are permitted provided that the following conditions")
       
    31 cpp_quote(" * are met:")
       
    32 cpp_quote(" * 1. Redistributions of source code must retain the above copyright")
       
    33 cpp_quote(" *    notice, this list of conditions and the following disclaimer.")
       
    34 cpp_quote(" * 2. Redistributions in binary form must reproduce the above copyright")
       
    35 cpp_quote(" *    notice, this list of conditions and the following disclaimer in the")
       
    36 cpp_quote(" *    documentation and/or other materials provided with the distribution.")
       
    37 cpp_quote(" *")
       
    38 cpp_quote(" * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY")
       
    39 cpp_quote(" * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE")
       
    40 cpp_quote(" * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR")
       
    41 cpp_quote(" * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL APPLE COMPUTER, INC. OR")
       
    42 cpp_quote(" * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,")
       
    43 cpp_quote(" * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,")
       
    44 cpp_quote(" * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR")
       
    45 cpp_quote(" * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY")
       
    46 cpp_quote(" * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT")
       
    47 cpp_quote(" * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE")
       
    48 cpp_quote(" * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ")
       
    49 cpp_quote(" */")
       
    50 
       
    51 cpp_quote("#define WebPreferencesChangedNotification TEXT(\"WebPreferencesChangedNotification\")")
       
    52 
       
    53 import "oaidl.idl";
       
    54 import "ocidl.idl";
       
    55 
       
    56 typedef enum FontSmoothingType {
       
    57     FontSmoothingTypeStandard=0,
       
    58     FontSmoothingTypeLight,
       
    59     FontSmoothingTypeMedium,
       
    60     FontSmoothingTypeStrong
       
    61 } FontSmoothingType;
       
    62 
       
    63 typedef enum WebKitEditableLinkBehavior {
       
    64     WebKitEditableLinkDefaultBehavior = 0,
       
    65     WebKitEditableLinkAlwaysLive,
       
    66     WebKitEditableLinkOnlyLiveWithShiftKey,
       
    67     WebKitEditableLinkLiveWhenNotFocused,
       
    68     WebKitEditableLinkNeverLive
       
    69 } WebKitEditableLinkBehavior;
       
    70 
       
    71 typedef enum WebKitCookieStorageAcceptPolicy {
       
    72     WebKitCookieStorageAcceptPolicyAlways = 0,
       
    73     WebKitCookieStorageAcceptPolicyNever,
       
    74     WebKitCookieStorageAcceptPolicyOnlyFromMainDocumentDomain
       
    75 } WebKitCookieStorageAcceptPolicy;
       
    76 
       
    77 typedef enum WebCacheModel {
       
    78     WebCacheModelDocumentViewer = 0,
       
    79     WebCacheModelDocumentBrowser = 1,
       
    80     WebCacheModelPrimaryWebBrowser = 2
       
    81 } WebCacheModel;
       
    82 
       
    83 [
       
    84     object,
       
    85     oleautomation,
       
    86     hidden,
       
    87     uuid(0930D594-A5A3-46e1-858E-AB17A13CD28E),
       
    88     pointer_default(unique)
       
    89 ]
       
    90 interface IWebPreferences : IUnknown
       
    91 {
       
    92     HRESULT standardPreferences([out, retval] IWebPreferences** standardPreferences);
       
    93 
       
    94     HRESULT initWithIdentifier([in] BSTR anIdentifier, [out, retval] IWebPreferences** preferences);
       
    95     HRESULT identifier([out, retval] BSTR* ident);
       
    96 
       
    97     HRESULT standardFontFamily([out, retval] BSTR* family);
       
    98     HRESULT setStandardFontFamily([in] BSTR family);
       
    99 
       
   100     HRESULT fixedFontFamily([out, retval] BSTR* family);
       
   101     HRESULT setFixedFontFamily([in] BSTR family);
       
   102 
       
   103     HRESULT serifFontFamily([out, retval] BSTR* fontFamily);
       
   104     HRESULT setSerifFontFamily([in] BSTR family);
       
   105 
       
   106     HRESULT sansSerifFontFamily([out, retval] BSTR* family);
       
   107     HRESULT setSansSerifFontFamily([in] BSTR family);
       
   108 
       
   109     HRESULT cursiveFontFamily([out, retval] BSTR* family);
       
   110     HRESULT setCursiveFontFamily([in] BSTR family);
       
   111 
       
   112     HRESULT fantasyFontFamily([out, retval] BSTR* family);
       
   113     HRESULT setFantasyFontFamily([in] BSTR family);
       
   114 
       
   115     HRESULT defaultFontSize([out, retval] int* fontSize);
       
   116     HRESULT setDefaultFontSize([in] int fontSize);
       
   117 
       
   118     HRESULT defaultFixedFontSize([out, retval] int* fontSize);
       
   119     HRESULT setDefaultFixedFontSize([in] int fontSize);
       
   120 
       
   121     HRESULT minimumFontSize([out, retval] int* fontSize);
       
   122     HRESULT setMinimumFontSize([in] int fontSize);
       
   123 
       
   124     HRESULT minimumLogicalFontSize([out, retval] int* fontSize);
       
   125     HRESULT setMinimumLogicalFontSize([in] int fontSize);
       
   126 
       
   127     HRESULT defaultTextEncodingName([out, retval] BSTR* name);
       
   128     HRESULT setDefaultTextEncodingName([in] BSTR name);
       
   129 
       
   130     HRESULT userStyleSheetEnabled([out, retval] BOOL* enabled);
       
   131     HRESULT setUserStyleSheetEnabled([in] BOOL enabled);
       
   132 
       
   133     HRESULT userStyleSheetLocation([out, retval] BSTR* location);
       
   134     HRESULT setUserStyleSheetLocation([in] BSTR location);
       
   135 
       
   136     HRESULT isJavaEnabled([out, retval] BOOL* enabled);
       
   137     HRESULT setJavaEnabled([in] BOOL enabled);
       
   138 
       
   139     HRESULT isJavaScriptEnabled([out, retval] BOOL* enabled);
       
   140     HRESULT setJavaScriptEnabled([in] BOOL enabled);
       
   141 
       
   142     HRESULT javaScriptCanOpenWindowsAutomatically([out, retval] BOOL* enabled);
       
   143     HRESULT setJavaScriptCanOpenWindowsAutomatically([in] BOOL enabled);
       
   144 
       
   145     HRESULT arePlugInsEnabled([out, retval] BOOL* enabled);
       
   146     HRESULT setPlugInsEnabled([in] BOOL enabled);
       
   147 
       
   148     HRESULT allowsAnimatedImages([out, retval] BOOL* enabled);
       
   149     HRESULT setAllowsAnimatedImages([in] BOOL enabled);
       
   150     HRESULT allowAnimatedImageLooping([out, retval] BOOL* enabled);
       
   151     HRESULT setAllowAnimatedImageLooping([in] BOOL enabled);
       
   152 
       
   153     HRESULT setLoadsImagesAutomatically([in] BOOL enabled);
       
   154     HRESULT loadsImagesAutomatically([out, retval] BOOL* enabled);
       
   155 
       
   156     HRESULT setAutosaves([in] BOOL enabled);
       
   157     HRESULT autosaves([out, retval] BOOL* enabled);
       
   158 
       
   159     HRESULT setShouldPrintBackgrounds([in] BOOL enabled);
       
   160     HRESULT shouldPrintBackgrounds([out, retval] BOOL* enabled);
       
   161 
       
   162     HRESULT setPrivateBrowsingEnabled([in] BOOL enabled);
       
   163     HRESULT privateBrowsingEnabled([out, retval] BOOL* enabled);
       
   164 
       
   165     HRESULT setTabsToLinks([in] BOOL enabled);
       
   166     HRESULT tabsToLinks([out, retval] BOOL* enabled);
       
   167 
       
   168     HRESULT textAreasAreResizable([out, retval] BOOL* enabled);
       
   169     HRESULT setTextAreasAreResizable([in] BOOL enabled);
       
   170 
       
   171     HRESULT pageCacheSize([out, retval] unsigned int* enabled);
       
   172     HRESULT objectCacheSize([out, retval] unsigned int* enabled);
       
   173 
       
   174     HRESULT iconDatabaseLocation([out, retval] BSTR* location);
       
   175     HRESULT setIconDatabaseLocation([in] BSTR location);
       
   176 
       
   177     HRESULT iconDatabaseEnabled([out, retval] BOOL* enabled);
       
   178     HRESULT setIconDatabaseEnabled([in] BOOL enabled);
       
   179 
       
   180     HRESULT fontSmoothing([out, retval] FontSmoothingType* smoothingType);
       
   181     HRESULT setFontSmoothing([in] FontSmoothingType smoothingType);
       
   182 
       
   183     HRESULT editableLinkBehavior([out, retval] WebKitEditableLinkBehavior* editableLinkBehavior);
       
   184     HRESULT setEditableLinkBehavior([in] WebKitEditableLinkBehavior behavior);
       
   185 
       
   186     HRESULT cookieStorageAcceptPolicy([out, retval] WebKitCookieStorageAcceptPolicy* acceptPolicy);
       
   187     HRESULT setCookieStorageAcceptPolicy([in] WebKitCookieStorageAcceptPolicy acceptPolicy);
       
   188 
       
   189     HRESULT continuousSpellCheckingEnabled([out, retval] BOOL* enabled);
       
   190     HRESULT setContinuousSpellCheckingEnabled([in] BOOL enabled);
       
   191     HRESULT grammarCheckingEnabled([out, retval] BOOL* enabled);
       
   192     HRESULT setGrammarCheckingEnabled([in] BOOL enabled);
       
   193     HRESULT allowContinuousSpellChecking([out, retval] BOOL *allowed);
       
   194     HRESULT setAllowContinuousSpellChecking([in] BOOL allowed);
       
   195 
       
   196     HRESULT isDOMPasteAllowed([out, retval] BOOL *allowed);
       
   197     HRESULT setDOMPasteAllowed([in] BOOL allowed);
       
   198 
       
   199     HRESULT usesPageCache([out, retval] BOOL* usesPageCache);
       
   200     HRESULT setUsesPageCache([in] BOOL usesPageCache);
       
   201 }