webengine/osswebengine/WebKit/win/Interfaces/DOMHTML.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 
       
    55 interface IDOMHTMLElement;
       
    56 interface IDOMHTMLFormElement;
       
    57 interface IDOMHTMLTableCaptionElement;
       
    58 interface IDOMHTMLTableSectionElement;
       
    59 interface IDOMDocument;
       
    60 interface IDOMElement;
       
    61 
       
    62 /*
       
    63     @interface DOMHTMLCollection : DOMObject
       
    64 */
       
    65 [
       
    66     object,
       
    67     oleautomation,
       
    68     uuid(DD8E4E33-D1D4-48e7-BB23-6DC3D7CCEC42),
       
    69     pointer_default(unique)
       
    70 ]
       
    71 interface IDOMHTMLCollection : IDOMObject
       
    72 {
       
    73     /*
       
    74         - (unsigned)length;
       
    75     */
       
    76     HRESULT length([out, retval] UINT* result);
       
    77 
       
    78     /*
       
    79         - (DOMNode *)item:(unsigned)index;
       
    80     */
       
    81     HRESULT item([in] UINT index, [out, retval] IDOMNode** node);
       
    82 
       
    83     /*
       
    84         - (DOMNode *)namedItem:(NSString *)name;
       
    85     */
       
    86     HRESULT namedItem([in] BSTR name, [out, retval] IDOMNode** node);
       
    87 }
       
    88 
       
    89 /*
       
    90     @interface DOMHTMLOptionsCollection : DOMObject
       
    91 */
       
    92 [
       
    93     object,
       
    94     oleautomation,
       
    95     uuid(1AD98D99-163C-4c04-B6EE-85A3DD31F5C4),
       
    96     pointer_default(unique)
       
    97 ]
       
    98 interface IDOMHTMLOptionsCollection : IDOMObject
       
    99 {
       
   100     /*
       
   101         - (unsigned)length;
       
   102     */
       
   103     HRESULT length([out, retval] unsigned int* result);
       
   104 
       
   105     /*
       
   106         - (void)setLength:(unsigned)length;
       
   107     */
       
   108     HRESULT setLength([in] unsigned int length);
       
   109 
       
   110     /*
       
   111         - (DOMNode *)item:(unsigned)index;
       
   112     */
       
   113     HRESULT item([in] unsigned int index, [out, retval] IDOMNode** result);
       
   114 
       
   115     /*
       
   116         - (DOMNode *)namedItem:(NSString *)name;
       
   117     */
       
   118     HRESULT namedItem([in] BSTR name, [out, retval] IDOMNode** result);
       
   119 }
       
   120 
       
   121 /*
       
   122     @interface DOMHTMLDocument : DOMDocument
       
   123 */
       
   124 [
       
   125     object,
       
   126     oleautomation,
       
   127     uuid(A7DF8485-25B7-4a98-B70C-1E29CAA00597),
       
   128     pointer_default(unique)
       
   129 ]
       
   130 interface IDOMHTMLDocument : IDOMDocument
       
   131 {
       
   132     /*
       
   133         - (NSString *)title;
       
   134     */
       
   135     HRESULT title([out, retval] BSTR* result);
       
   136 
       
   137     /*
       
   138         - (void)setTitle:(NSString *)title;
       
   139     */
       
   140     HRESULT setTitle([in] BSTR title);
       
   141 
       
   142     /*
       
   143         - (NSString *)referrer;
       
   144     */
       
   145     HRESULT referrer([out, retval] BSTR* result);
       
   146 
       
   147     /*
       
   148         - (NSString *)domain;
       
   149     */
       
   150     HRESULT domain([out, retval] BSTR* result);
       
   151 
       
   152     /*
       
   153         - (NSString *)URL;
       
   154     */
       
   155     HRESULT URL([out, retval] BSTR* result);
       
   156 
       
   157     /*
       
   158         - (DOMHTMLElement *)body;
       
   159     */
       
   160     HRESULT body([out, retval] IDOMHTMLElement** bodyElement);
       
   161 
       
   162     /*
       
   163         - (void)setBody:(DOMHTMLElement *)body;
       
   164     */
       
   165     HRESULT setBody([in] IDOMHTMLElement* body);
       
   166 
       
   167     /*
       
   168         - (DOMHTMLCollection *)images;
       
   169     */
       
   170     HRESULT images([out, retval] IDOMHTMLCollection** collection);
       
   171 
       
   172     /*
       
   173         - (DOMHTMLCollection *)applets;
       
   174     */
       
   175     HRESULT applets([out, retval] IDOMHTMLCollection** collection);
       
   176 
       
   177     /*
       
   178         - (DOMHTMLCollection *)links;
       
   179     */
       
   180     HRESULT links([out, retval] IDOMHTMLCollection** collection);
       
   181 
       
   182     /*
       
   183         - (DOMHTMLCollection *)forms;
       
   184     */
       
   185     HRESULT forms([out, retval] IDOMHTMLCollection** collection);
       
   186 
       
   187     /*
       
   188         - (DOMHTMLCollection *)anchors;
       
   189     */
       
   190     HRESULT anchors([out, retval] IDOMHTMLCollection** collection);
       
   191 
       
   192     /*
       
   193         - (NSString *)cookie;
       
   194     */
       
   195     HRESULT cookie([out, retval] BSTR* result);
       
   196 
       
   197     /*
       
   198         - (void)setCookie:(NSString *)cookie;
       
   199     */
       
   200     HRESULT setCookie([in] BSTR cookie);
       
   201 
       
   202     /*
       
   203         - (void)open;
       
   204     */
       
   205     HRESULT open();
       
   206 
       
   207     /*
       
   208         - (void)close;
       
   209     */
       
   210     HRESULT close();
       
   211 
       
   212     /*
       
   213         - (void)write:(NSString *)text;
       
   214     */
       
   215     HRESULT write([in] BSTR text);
       
   216 
       
   217     /*
       
   218         - (void)writeln:(NSString *)text;
       
   219     */
       
   220     HRESULT writeln([in] BSTR text);
       
   221 
       
   222     /*
       
   223         - (DOMElement *)getElementById:(NSString *)elementId;
       
   224     */
       
   225     HRESULT getElementById_([in] BSTR elementId, [out, retval] IDOMElement** element);
       
   226 
       
   227     /*
       
   228         - (DOMNodeList *)getElementsByName:(NSString *)elementName;
       
   229     */
       
   230     HRESULT getElementsByName([in] BSTR elementName, [out, retval] IDOMNodeList** nodeList);
       
   231 }
       
   232 
       
   233 /*
       
   234     @interface DOMHTMLElement : DOMElement
       
   235 */
       
   236 [
       
   237     object,
       
   238     oleautomation,
       
   239     uuid(EBD5F41D-FF65-41d8-97C9-FCE3A3D4CC3E),
       
   240     pointer_default(unique)
       
   241 ]
       
   242 interface IDOMHTMLElement : IDOMElement
       
   243 {
       
   244     /*
       
   245         - (NSString *)idName;
       
   246     */
       
   247     HRESULT idName([out, retval] BSTR* result);
       
   248 
       
   249     /*
       
   250         - (void)setIdName:(NSString *)idName;
       
   251     */
       
   252     HRESULT setIdName([in] BSTR idName);
       
   253 
       
   254     /*
       
   255         - (NSString *)title;
       
   256     */
       
   257     HRESULT title([out, retval] BSTR* result);
       
   258 
       
   259     /*
       
   260         - (void)setTitle:(NSString *)title;
       
   261     */
       
   262     HRESULT setTitle([in] BSTR title);
       
   263 
       
   264     /*
       
   265         - (NSString *)lang;
       
   266     */
       
   267     HRESULT lang([out, retval] BSTR* result);
       
   268 
       
   269     /*
       
   270         - (void)setLang:(NSString *)lang;
       
   271     */
       
   272     HRESULT setLang([in] BSTR lang);
       
   273 
       
   274     /*
       
   275         - (NSString *)dir;
       
   276     */
       
   277     HRESULT dir([out, retval] BSTR* result);
       
   278 
       
   279     /*
       
   280         - (void)setDir:(NSString *)dir;
       
   281     */
       
   282     HRESULT setDir([in] BSTR dir);
       
   283 
       
   284     /*
       
   285         - (NSString *)className;
       
   286     */
       
   287     HRESULT className([out, retval] BSTR* result);
       
   288 
       
   289     /*
       
   290         - (void)setClassName:(NSString *)className;
       
   291     */
       
   292     HRESULT setClassName([in] BSTR className);
       
   293 
       
   294     /*
       
   295         - (NSString *)innerHTML;
       
   296     */
       
   297     HRESULT innerHTML([out, retval] BSTR* result);
       
   298     
       
   299     /*
       
   300         - (void)setInnerHTML:(NSString *)innerHTML;
       
   301     */
       
   302     HRESULT setInnerHTML([in] BSTR html);
       
   303 
       
   304     /*
       
   305         - (NSString *)innerHTML;
       
   306     */
       
   307     HRESULT innerText([out, retval] BSTR* result);
       
   308 
       
   309     /*
       
   310         - (void)setInnerText:(NSString *)innerText;
       
   311     */
       
   312     HRESULT setInnerText([in] BSTR text);
       
   313 }
       
   314 
       
   315 /*
       
   316     @interface DOMHTMLFormElement : DOMHTMLElement
       
   317 */
       
   318 [
       
   319     object,
       
   320     oleautomation,
       
   321     uuid(DF5C0054-DDDB-4888-9198-7A4E4EBF8D69),
       
   322     pointer_default(unique)
       
   323 ]
       
   324 interface IDOMHTMLFormElement : IDOMHTMLElement
       
   325 {
       
   326     /*
       
   327         - (DOMHTMLCollection *)elements;
       
   328     */
       
   329     HRESULT elements([out, retval] IDOMHTMLCollection** result);
       
   330 
       
   331     /*
       
   332         - (int)length;
       
   333     */
       
   334     HRESULT length([out, retval] int* result);
       
   335 
       
   336     /*
       
   337         - (NSString *)name;
       
   338     */
       
   339     HRESULT name([out, retval] BSTR* result);
       
   340 
       
   341     /*
       
   342         - (void)setName:(NSString *)name;
       
   343     */
       
   344     HRESULT setName([in] BSTR name);
       
   345 
       
   346     /*
       
   347         - (NSString *)acceptCharset;
       
   348     */
       
   349     HRESULT acceptCharset([out, retval] BSTR* result);
       
   350     /*
       
   351         - (void)setAcceptCharset:(NSString *)acceptCharset;
       
   352     */
       
   353     HRESULT setAcceptCharset([in] BSTR acceptCharset);
       
   354 
       
   355     /*
       
   356         - (NSString *)action;
       
   357     */
       
   358     HRESULT action([out, retval] BSTR* result);
       
   359 
       
   360     /*
       
   361         - (void)setAction:(NSString *)action;
       
   362     */
       
   363     HRESULT setAction([in] BSTR action);
       
   364 
       
   365     /*
       
   366         - (NSString *)enctype;
       
   367     */
       
   368     HRESULT encType([out, retval] BSTR* result);
       
   369 
       
   370     /*
       
   371         - (void)setEnctype:(NSString *)enctype;
       
   372     */
       
   373     HRESULT setEnctype([out, retval] BSTR* encType);
       
   374 
       
   375     /*
       
   376         - (NSString *)method;
       
   377     */
       
   378     HRESULT method([out, retval] BSTR* method);
       
   379 
       
   380     /*
       
   381         - (void)setMethod:(NSString *)method;
       
   382     */
       
   383     HRESULT setMethod([in] BSTR method);
       
   384 
       
   385     /*
       
   386         - (NSString *)target;
       
   387     */
       
   388     HRESULT target([out, retval] BSTR* result);
       
   389 
       
   390     /*
       
   391         - (void)setTarget:(NSString *)target;
       
   392     */
       
   393     HRESULT setTarget([in] BSTR target);
       
   394 
       
   395     /*
       
   396         - (void)submit;
       
   397     */
       
   398     HRESULT submit();
       
   399 
       
   400     /*
       
   401         - (void)reset;
       
   402     */
       
   403     HRESULT reset();
       
   404 }
       
   405 
       
   406 /*
       
   407     @interface DOMHTMLSelectElement : DOMHTMLElement
       
   408 */
       
   409 [
       
   410     object,
       
   411     oleautomation,
       
   412     uuid(3825AA04-B38F-4399-95BB-F5410B29594A),
       
   413     pointer_default(unique)
       
   414 ]
       
   415 interface IDOMHTMLSelectElement : IDOMHTMLElement
       
   416 {
       
   417     /*
       
   418         - (NSString *)type;
       
   419     */
       
   420     HRESULT type([out, retval] BSTR* result);
       
   421 
       
   422     /*
       
   423         - (int)selectedIndex;
       
   424     */
       
   425     HRESULT selectedIndex([out, retval] int* result);
       
   426 
       
   427     /*
       
   428         - (void)setSelectedIndex:(int)selectedIndex;
       
   429     */
       
   430     HRESULT setSelectedIndx([in] int selectedIndex);
       
   431 
       
   432     /*
       
   433         - (NSString *)value;
       
   434     */
       
   435     HRESULT value([out, retval] BSTR* result);
       
   436 
       
   437     /*
       
   438         - (void)setValue:(NSString *)value;
       
   439     */
       
   440     HRESULT setValue([in] BSTR value);
       
   441 
       
   442     /*
       
   443         - (int)length;
       
   444     */
       
   445     HRESULT length([out, retval] int* result);
       
   446 
       
   447     /*
       
   448         - (DOMHTMLFormElement *)form;
       
   449     */
       
   450     HRESULT form([out, retval] IDOMHTMLFormElement** result);
       
   451 
       
   452     /*
       
   453         - (DOMHTMLOptionsCollection *)options;
       
   454     */
       
   455     HRESULT options([out, retval] IDOMHTMLOptionsCollection** result);
       
   456 
       
   457     /*
       
   458         - (BOOL)disabled;
       
   459     */
       
   460     HRESULT disabled([out, retval] BOOL* result);
       
   461 
       
   462     /*
       
   463         - (void)setDisabled:(BOOL)disabled;
       
   464     */
       
   465     HRESULT setDisabled([in] BOOL disabled);
       
   466 
       
   467     /*
       
   468         - (BOOL)multiple;
       
   469     */
       
   470     HRESULT multiple([out, retval] BOOL* result);
       
   471 
       
   472     /*
       
   473         - (void)setMultiple:(BOOL)multiple;
       
   474     */
       
   475     HRESULT setMultiple([in] BOOL multiple);
       
   476 
       
   477     /*
       
   478         - (NSString *)name;
       
   479     */
       
   480     HRESULT name([out, retval] BSTR* result);
       
   481 
       
   482     /*
       
   483         - (void)setName:(NSString *)name;
       
   484     */
       
   485     HRESULT setName([in] BSTR name);
       
   486 
       
   487     /*
       
   488         - (int)size;
       
   489     */
       
   490     HRESULT size([out, retval] int* size);
       
   491 
       
   492     /*
       
   493         - (void)setSize:(int)size;
       
   494     */
       
   495     HRESULT setSize([in] int size);
       
   496 
       
   497     /*
       
   498         - (int)tabIndex;
       
   499     */
       
   500     HRESULT tabIndex([out, retval] int* result);
       
   501 
       
   502     /*
       
   503         - (void)setTabIndex:(int)tabIndex;
       
   504     */
       
   505     HRESULT setTabIndex([in] int tabIndex);
       
   506 
       
   507     /*
       
   508         - (void)add:(DOMHTMLElement *)element :(DOMHTMLElement *)before;
       
   509     */
       
   510     HRESULT add([in] IDOMHTMLElement* element, [in] IDOMHTMLElement* before);
       
   511 
       
   512     /*
       
   513         - (void)remove:(int)index;
       
   514     */
       
   515     HRESULT remove([in] int index);
       
   516 
       
   517     /*
       
   518         - (void)blur;
       
   519     */
       
   520     HRESULT blur();
       
   521 
       
   522     /*
       
   523         - (void)focus;
       
   524     */
       
   525     HRESULT focus();
       
   526 }
       
   527 
       
   528 /*
       
   529     @interface DOMHTMLOptionElement : DOMHTMLElement
       
   530 */
       
   531 [
       
   532     object,
       
   533     oleautomation,
       
   534     uuid(0E1EF5AB-4008-4d83-9135-D4DC1B4603D4),
       
   535     pointer_default(unique)
       
   536 ]
       
   537 interface IDOMHTMLOptionElement : IDOMHTMLElement
       
   538 {
       
   539     /*
       
   540         - (DOMHTMLFormElement *)form;
       
   541     */
       
   542     HRESULT form([out, retval] IDOMHTMLFormElement** result);
       
   543 
       
   544     /*
       
   545         - (BOOL)defaultSelected;
       
   546     */
       
   547     HRESULT defaultSelected([out, retval] BOOL* result);
       
   548 
       
   549     /*
       
   550         - (void)setDefaultSelected:(BOOL)defaultSelected;
       
   551     */
       
   552     HRESULT setDefaultSelected([in] BOOL defaultSelected);
       
   553 
       
   554     /*
       
   555         - (NSString *)text;
       
   556     */
       
   557     HRESULT text([out, retval] BSTR* result);
       
   558 
       
   559     /*
       
   560         - (int)index;
       
   561     */
       
   562     HRESULT index([out, retval] int* result);
       
   563 
       
   564     /*
       
   565         - (BOOL)disabled;
       
   566     */
       
   567     HRESULT disabled([out, retval] BOOL* result);
       
   568 
       
   569     /*
       
   570         - (void)setDisabled:(BOOL)disabled;
       
   571     */
       
   572     HRESULT setDisabled([in] BOOL disabled);
       
   573 
       
   574     /*
       
   575         - (NSString *)label;
       
   576     */
       
   577     HRESULT label([out, retval] BSTR* result);
       
   578 
       
   579     /*
       
   580         - (void)setLabel:(NSString *)label;
       
   581     */
       
   582     HRESULT setLabel([in] BSTR label);
       
   583 
       
   584     /*
       
   585         - (BOOL)selected;
       
   586     */
       
   587     HRESULT selected([out, retval] BOOL* result);
       
   588 
       
   589     /*
       
   590         - (void)setSelected:(BOOL)selected;
       
   591     */
       
   592     HRESULT setSelected([in] BOOL selected);
       
   593 
       
   594     /*
       
   595         - (NSString *)value;
       
   596     */
       
   597     HRESULT value([out, retval] BSTR* result);
       
   598 
       
   599     /*
       
   600         - (void)setValue:(NSString *)value;
       
   601     */
       
   602     HRESULT setValue([in] BSTR value);
       
   603 }
       
   604 
       
   605 /*
       
   606     @interface DOMHTMLInputElement : DOMHTMLElement
       
   607 */
       
   608 [
       
   609     object,
       
   610     oleautomation,
       
   611     uuid(80C40AC5-1755-4894-812F-479269C262A2),
       
   612     pointer_default(unique)
       
   613 ]
       
   614 /* FIXME: The Safari app currently relies on IDOMHTMLInputElement inheriting from
       
   615    IDOMElement. This can't be changed until a version of SafariWin which no longer 
       
   616    makes this assumption is released.
       
   617 */
       
   618 interface IDOMHTMLInputElement : IDOMElement
       
   619 {
       
   620     /*
       
   621         - (NSString *)defaultValue;
       
   622     */
       
   623     HRESULT defaultValue([out, retval] BSTR* result);
       
   624 
       
   625     /*
       
   626         - (void)setDefaultValue:(NSString *)defaultValue;
       
   627     */
       
   628     HRESULT setDefaultValue([in] BSTR val);
       
   629 
       
   630     /*
       
   631         - (BOOL)defaultChecked;
       
   632     */
       
   633     HRESULT defaultChecked([out, retval] BOOL* result);
       
   634 
       
   635     /*
       
   636         - (void)setDefaultChecked:(BOOL)defaultChecked;
       
   637     */
       
   638     HRESULT setDefaultChecked([in] BSTR checked);
       
   639 
       
   640     /*
       
   641         - (DOMHTMLFormElement *)form;
       
   642     */
       
   643     HRESULT form([out, retval] IDOMHTMLElement** result);
       
   644 
       
   645     /*
       
   646         - (NSString *)accept;
       
   647     */
       
   648     HRESULT accept([out, retval] BSTR* result);
       
   649 
       
   650     /*
       
   651         - (void)setAccept:(NSString *)accept;
       
   652     */
       
   653     HRESULT setAccept([in] BSTR accept);
       
   654 
       
   655     /*
       
   656         - (NSString *)accessKey;
       
   657     */
       
   658     HRESULT accessKey([out, retval] BSTR* result);
       
   659 
       
   660     /*
       
   661         - (void)setAccessKey:(NSString *)accessKey;
       
   662     */
       
   663     HRESULT setAccessKey([in] BSTR key);
       
   664 
       
   665     /*
       
   666         - (NSString *)align;
       
   667     */
       
   668     HRESULT align([out, retval] BSTR* result);
       
   669 
       
   670     /*
       
   671         - (void)setAlign:(NSString *)align;
       
   672     */
       
   673     HRESULT setAlign([in] BSTR align);
       
   674 
       
   675     /*
       
   676         - (NSString *)alt;
       
   677     */
       
   678     HRESULT alt([out, retval] BSTR* result);
       
   679 
       
   680     /*
       
   681         - (void)setAlt:(NSString *)alt;
       
   682     */
       
   683     HRESULT setAlt([in] BSTR alt);
       
   684 
       
   685     /*
       
   686         - (BOOL)checked;
       
   687     */
       
   688     HRESULT checked([out, retval] BOOL* result);
       
   689 
       
   690     /*
       
   691         - (void)setChecked:(BOOL)checked;
       
   692     */
       
   693     HRESULT setChecked([in] BOOL checked);
       
   694 
       
   695     /*
       
   696         - (BOOL)disabled;
       
   697     */
       
   698     HRESULT disabled([out, retval] BOOL* result);
       
   699 
       
   700     /*
       
   701         - (void)setDisabled:(BOOL)disabled;
       
   702     */
       
   703     HRESULT setDisabled([in] BOOL disabled);
       
   704 
       
   705     /*
       
   706         - (int)maxLength;
       
   707     */
       
   708     HRESULT maxLength([out, retval] int* result);
       
   709 
       
   710     /*
       
   711         - (void)setMaxLength:(int)maxLength;
       
   712     */
       
   713     HRESULT setMaxLength([in] int maxLength);
       
   714 
       
   715     /*
       
   716         - (NSString *)name;
       
   717     */
       
   718     HRESULT name([out, retval] BSTR* name);
       
   719 
       
   720     /*
       
   721         - (void)setName:(NSString *)name;
       
   722     */
       
   723     HRESULT setName([in] BSTR name);
       
   724 
       
   725     /*
       
   726         - (BOOL)readOnly;
       
   727     */
       
   728     HRESULT readOnly([out, retval] BOOL* result);
       
   729 
       
   730     /*
       
   731         - (void)setReadOnly:(BOOL)readOnly;
       
   732     */
       
   733     HRESULT setReadOnly([in] BOOL readOnly);
       
   734 
       
   735     /*
       
   736         - (unsigned)size;
       
   737     */
       
   738     HRESULT size([out, retval] unsigned int *result);
       
   739 
       
   740     /*
       
   741         - (void)setSize:(unsigned)size;
       
   742     */
       
   743     HRESULT setSize([in] unsigned int size);
       
   744 
       
   745     /*
       
   746         - (NSString *)src;
       
   747     */
       
   748     HRESULT src([out, retval] BSTR* result);
       
   749 
       
   750     /*
       
   751         - (void)setSrc:(NSString *)src;
       
   752     */
       
   753     HRESULT setSrc([in] BSTR src);
       
   754 
       
   755     /*
       
   756         - (int)tabIndex;
       
   757     */
       
   758     HRESULT tabIndex([out, retval] int* result);
       
   759 
       
   760     /*
       
   761         - (void)setTabIndex:(int)tabIndex;
       
   762     */
       
   763     HRESULT setTabIndex([in] int tabIndex);
       
   764 
       
   765     /*
       
   766         - (NSString *)type;
       
   767     */
       
   768     HRESULT type([out, retval] BSTR* result);
       
   769 
       
   770     /*
       
   771         - (void)setType:(NSString *)type;
       
   772     */
       
   773     HRESULT setType([in] BSTR type);
       
   774 
       
   775     /*
       
   776         - (NSString *)useMap;
       
   777     */
       
   778     HRESULT useMap([out, retval] BSTR* result);
       
   779 
       
   780     /*
       
   781         - (void)setUseMap:(NSString *)useMap;
       
   782     */
       
   783     HRESULT setUseMap([in] BSTR useMap);
       
   784 
       
   785     /*
       
   786         - (NSString *)value;
       
   787     */
       
   788     HRESULT value([out, retval] BSTR* result);
       
   789 
       
   790     /*
       
   791         - (void)setValue:(NSString *)value;
       
   792     */
       
   793     HRESULT setValue([in] BSTR value);
       
   794 
       
   795     /*
       
   796         - (void)blur;
       
   797     */
       
   798     HRESULT blur();
       
   799 
       
   800     /*
       
   801         - (void)focus;
       
   802     */
       
   803     HRESULT focus();
       
   804 
       
   805     /*
       
   806         - (void)select;
       
   807     */
       
   808     HRESULT select();
       
   809 
       
   810     /*
       
   811         - (void)click;
       
   812     */
       
   813     HRESULT click();
       
   814 
       
   815     // FIXME - this is not in objC bindings at the moment
       
   816     // attribute long selectionStart;
       
   817     HRESULT setSelectionStart([in] long start);
       
   818     HRESULT selectionStart([out, retval] long* start);
       
   819 
       
   820     // FIXME - thisis not in the objC bindings at the moment
       
   821     // attribute long selectionEnd;
       
   822     HRESULT setSelectionEnd([in] long end);
       
   823     HRESULT selectionEnd([out, retval] long* end);
       
   824 }
       
   825 
       
   826 /*
       
   827     @interface DOMHTMLTextAreaElement : DOMHTMLElement
       
   828 */
       
   829 [
       
   830     object,
       
   831     oleautomation,
       
   832     uuid(298B02B7-3EB5-4ba4-AD3F-7FA53241AADE),
       
   833     pointer_default(unique)
       
   834 ]
       
   835 interface IDOMHTMLTextAreaElement : IDOMHTMLElement
       
   836 {
       
   837     /*
       
   838         - (NSString *)defaultValue;
       
   839     */
       
   840     HRESULT defaultValue([out, retval] BSTR* result);
       
   841 
       
   842     /*
       
   843         - (void)setDefaultValue:(NSString *)defaultValue;
       
   844     */
       
   845     HRESULT setDefaultValue([in] BSTR val);
       
   846 
       
   847     /*
       
   848         - (DOMHTMLFormElement *)form;
       
   849     */
       
   850     HRESULT form([out, retval] IDOMHTMLElement** result);
       
   851 
       
   852     /*
       
   853         - (NSString *)accessKey;
       
   854     */
       
   855     HRESULT accessKey([out, retval] BSTR* result);
       
   856 
       
   857     /*
       
   858         - (void)setAccessKey:(NSString *)accessKey;
       
   859     */
       
   860     HRESULT setAccessKey([in] BSTR key);
       
   861 
       
   862     /*
       
   863         - (int)cols;
       
   864     */
       
   865     HRESULT cols([out, retval] int* result);
       
   866 
       
   867     /*
       
   868         - (void)setCols:(int)cols;
       
   869     */
       
   870     HRESULT setCols([in] int cols);
       
   871 
       
   872     /*
       
   873         - (BOOL)disabled;
       
   874     */
       
   875     HRESULT disabled([out, retval] BOOL* result);
       
   876 
       
   877     /*
       
   878         - (void)setDisabled:(BOOL)disabled;
       
   879     */
       
   880     HRESULT setDisabled([in] BOOL disabled);
       
   881 
       
   882     /*
       
   883         - (NSString *)name;
       
   884     */
       
   885     HRESULT name([out, retval] BSTR* name);
       
   886 
       
   887     /*
       
   888         - (void)setName:(NSString *)name;
       
   889     */
       
   890     HRESULT setName([in] BSTR name);
       
   891 
       
   892     /*
       
   893         - (BOOL)readOnly;
       
   894     */
       
   895     HRESULT readOnly([out, retval] BOOL* result);
       
   896 
       
   897     /*
       
   898         - (void)setReadOnly:(BOOL)readOnly;
       
   899     */
       
   900     HRESULT setReadOnly([in] BOOL readOnly);
       
   901 
       
   902     /*
       
   903         - (int)rows;
       
   904     */
       
   905     HRESULT rows([out, retval] int* result);
       
   906 
       
   907     /*
       
   908         - (void)setRows:(int)rows;
       
   909     */
       
   910     HRESULT setRows([in] int rows);
       
   911 
       
   912     /*
       
   913         - (int)tabIndex;
       
   914     */
       
   915     HRESULT tabIndex([out, retval] int* result);
       
   916 
       
   917     /*
       
   918         - (void)setTabIndex:(int)tabIndex;
       
   919     */
       
   920     HRESULT setTabIndex([in] int tabIndex);
       
   921 
       
   922     /*
       
   923         - (NSString *)type;
       
   924     */
       
   925     HRESULT type([out, retval] BSTR* result);
       
   926 
       
   927     /*
       
   928         - (NSString *)value;
       
   929     */
       
   930     HRESULT value([out, retval] BSTR* result);
       
   931 
       
   932     /*
       
   933         - (void)setValue:(NSString *)value;
       
   934     */
       
   935     HRESULT setValue([in] BSTR value);
       
   936 
       
   937     /*
       
   938         - (void)blur;
       
   939     */
       
   940     HRESULT blur();
       
   941 
       
   942     /*
       
   943         - (void)focus;
       
   944     */
       
   945     HRESULT focus();
       
   946 
       
   947     /*
       
   948         - (void)select;
       
   949     */
       
   950     HRESULT select();
       
   951 }