webengine/osswebengine/WebKit/win/Interfaces/DOMCSS.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 import "oaidl.idl";
       
    52 import "ocidl.idl";
       
    53 import "DOMCore.idl";
       
    54 import "IWebScriptObject.idl";
       
    55 
       
    56 interface IDOMObject;
       
    57 interface IDOMCSSValue;
       
    58 interface IDOMCSSStyleDeclaration;
       
    59 interface IDOMCSSStyleSheet;
       
    60 interface IDOMCSSRule;
       
    61 interface IDOMElement;
       
    62 
       
    63 /*
       
    64     @interface DOMDocument (DOMViewCSS)
       
    65 */
       
    66 [
       
    67     object,
       
    68     oleautomation,
       
    69     uuid(43EFE238-A4DF-400a-983D-FCE0C0F56BCD),
       
    70     pointer_default(unique)
       
    71 ]
       
    72 interface IDOMViewCSS : IUnknown
       
    73 {
       
    74     /*
       
    75         - (DOMCSSStyleDeclaration *)getComputedStyle:(DOMElement *)elt :(NSString *)pseudoElt;
       
    76     */
       
    77     HRESULT getComputedStyle([in] IDOMElement* elt, [in] BSTR pseudoElt, [out, retval] IDOMCSSStyleDeclaration** result);
       
    78 }
       
    79 
       
    80 /*
       
    81     @interface DOMCSSRuleList : DOMObject
       
    82 */
       
    83 [
       
    84     object,
       
    85     oleautomation,
       
    86     uuid(D45DA43D-5EDB-4315-A097-3ED3FA089193),
       
    87     pointer_default(unique)
       
    88 ]
       
    89 interface IDOMCSSRuleList : IDOMObject
       
    90 {
       
    91     /*
       
    92         - (unsigned)length;
       
    93     */
       
    94     HRESULT length([out, retval] UINT* result);
       
    95 
       
    96     /*
       
    97         - (DOMCSSRule *)item:(unsigned)index;
       
    98     */
       
    99     HRESULT item([in] UINT index, [out, retval] IDOMCSSRule** result);
       
   100 }
       
   101 
       
   102 /*
       
   103     @interface DOMCSSRule : DOMObject
       
   104 */
       
   105 [
       
   106     object,
       
   107     oleautomation,
       
   108     uuid(05947A31-9E1C-4c98-8608-6688959D6542),
       
   109     pointer_default(unique)
       
   110 ]
       
   111 interface IDOMCSSRule : IDOMObject
       
   112 {
       
   113     /*
       
   114         - (unsigned short)type;
       
   115     */
       
   116     HRESULT type([out, retval] unsigned short* result);
       
   117 
       
   118     /*
       
   119         - (NSString *)cssText;
       
   120     */
       
   121     HRESULT cssText([out, retval] BSTR* text);
       
   122 
       
   123     /*
       
   124         - (void)setCssText:(NSString *)cssText;
       
   125     */
       
   126     HRESULT setCssText([in] BSTR cssText);
       
   127 
       
   128     /*
       
   129         - (DOMCSSStyleSheet *)parentStyleSheet;
       
   130     */
       
   131     HRESULT parentStyleSheet([out, retval] IDOMCSSStyleSheet** sheet);
       
   132 
       
   133     /*
       
   134         - (DOMCSSRule *)parentRule;
       
   135     */
       
   136     HRESULT parentRule([out, retval] IDOMCSSRule** rule);
       
   137 }
       
   138 
       
   139 /*
       
   140     @interface DOMCSSStyleDeclaration : DOMObject
       
   141 */
       
   142 [
       
   143     object,
       
   144     oleautomation,
       
   145     uuid(DBBE9A6B-D505-4647-B4AB-40A7CF3EE63E),
       
   146     pointer_default(unique)
       
   147 ]
       
   148 interface IDOMCSSStyleDeclaration : IDOMObject
       
   149 {
       
   150     /*
       
   151         - (NSString *)cssText;
       
   152     */
       
   153     HRESULT cssText([out, retval] BSTR* result);
       
   154 
       
   155     /*
       
   156         - (void)setCssText:(NSString *)cssText;
       
   157     */
       
   158     HRESULT setCssText([in] BSTR cssText);
       
   159 
       
   160     /*
       
   161         - (NSString *)getPropertyValue:(NSString *)propertyName;
       
   162     */
       
   163     HRESULT getPropertyValue([in] BSTR propertyName, [out, retval] BSTR* result);
       
   164 
       
   165     /*
       
   166         - (DOMCSSValue *)getPropertyCSSValue:(NSString *)propertyName;
       
   167     */
       
   168     HRESULT getPropertyCSSValue([in] BSTR propertyName, [out, retval] IDOMCSSValue** result);
       
   169 
       
   170     /*
       
   171         - (NSString *)removeProperty:(NSString *)propertyName;
       
   172     */
       
   173     HRESULT removeProperty([in] BSTR propertyName, [out, retval] BSTR* result);
       
   174 
       
   175     /*
       
   176         - (NSString *)getPropertyPriority:(NSString *)propertyName;
       
   177     */
       
   178     HRESULT getPropertyPriority([in] BSTR propertyName, [out, retval] BSTR* result);
       
   179 
       
   180     /*
       
   181         - (void)setProperty:(NSString *)propertyName :(NSString *)value :(NSString *)priority;
       
   182     */
       
   183     HRESULT setProperty([in] BSTR propertyName, [in] BSTR value, [in] BSTR priority);
       
   184 
       
   185     /*
       
   186         - (unsigned)length;
       
   187     */
       
   188     HRESULT length([out, retval] UINT* result);
       
   189 
       
   190     /*
       
   191         - (NSString *)item:(unsigned)index;
       
   192     */
       
   193     HRESULT item([in] UINT index, [out, retval] BSTR* result);
       
   194 
       
   195     /*
       
   196         - (DOMCSSRule *)parentRule;
       
   197     */
       
   198     HRESULT parentRule([out, retval] IDOMCSSRule** result);
       
   199 }
       
   200 
       
   201 /*
       
   202     @interface DOMCSSValue : DOMObject
       
   203 */
       
   204 [
       
   205     object,
       
   206     oleautomation,
       
   207     uuid(51D29553-2AF7-4f52-AFE6-3C59196A8BAA),
       
   208     pointer_default(unique)
       
   209 ]
       
   210 interface IDOMCSSValue : IDOMObject
       
   211 {
       
   212     /*
       
   213         - (NSString *)cssText;
       
   214     */
       
   215     HRESULT cssText([out, retval] BSTR* text);
       
   216 
       
   217     /*
       
   218         - (void)setCssText:(NSString *)cssText;
       
   219     */
       
   220     HRESULT setCssText([in] BSTR text);
       
   221 
       
   222     /*
       
   223         - (unsigned short)cssValueType;
       
   224     */
       
   225     HRESULT cssValueType([out, retval] unsigned short *valueType);
       
   226 }
       
   227 
       
   228 /*
       
   229     @interface DOMCSSStyleSheet : DOMStyleSheet
       
   230 */
       
   231 [
       
   232     object,
       
   233     oleautomation,
       
   234     uuid(14B1C213-1458-48a1-AD8F-54BFE64F9ECF),
       
   235     pointer_default(unique)
       
   236 ]
       
   237 interface IDOMCSSStyleSheet : IDOMObject
       
   238 {
       
   239     /*
       
   240         - (DOMCSSRule *)ownerRule;
       
   241     */
       
   242     HRESULT ownerRule([out, retval] IDOMCSSRule** rule);
       
   243 
       
   244     /*
       
   245         - (DOMCSSRuleList *)cssRules;
       
   246     */
       
   247     HRESULT cssRules([out, retval] IDOMCSSRuleList** ruleList);
       
   248 
       
   249     /*
       
   250         - (unsigned)insertRule:(NSString *)rule :(unsigned)index;
       
   251     */
       
   252     HRESULT insertRule([in] BSTR rule, [in] UINT index, [out, retval] UINT* result);
       
   253 
       
   254     /*
       
   255         - (void)deleteRule:(unsigned)index;
       
   256     */
       
   257     HRESULT deleteRule([in] UINT index);
       
   258 }
       
   259 
       
   260 /*
       
   261     @interface DOMElement (DOMElementCSSInlineStyle)
       
   262 */
       
   263 [
       
   264     object,
       
   265     oleautomation,
       
   266     uuid(585127E2-D698-44c4-83EC-4D1E6E07E90D),
       
   267     pointer_default(unique)
       
   268 ]
       
   269 interface IDOMElementCSSInlineStyle : IUnknown
       
   270 {
       
   271     /*
       
   272         - (DOMCSSStyleDeclaration *)style;
       
   273     */
       
   274     HRESULT style([out, retval] IDOMCSSStyleDeclaration** result);
       
   275 }