• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (C) 2006, 2007, 2008 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#ifndef DO_NO_IMPORTS
27import "oaidl.idl";
28import "ocidl.idl";
29import "DOMCore.idl";
30import "DOMCSS.idl";
31#endif
32
33interface IDOMCSSRuleList;
34interface IDOMDocument;
35interface IDOMElement;
36
37[
38    object,
39    oleautomation,
40    uuid(19126DDF-E82F-46c0-A2F9-16879D7DADC5),
41    pointer_default(unique)
42]
43interface IDOMWindow : IDOMObject
44{
45    // DOM Level 2 AbstractView Interface
46    //readonly attribute Document document;
47    HRESULT document([out, retval] IDOMDocument** result);
48
49    // DOM Level 2 Style Interface
50    //CSSStyleDeclaration getComputedStyle(in Element element,
51    //                                     in DOMString pseudoElement);
52    HRESULT getComputedStyle([in] IDOMElement* element, [in] BSTR pseudoElement);
53
54    // WebKit extensions
55    //CSSRuleList getMatchedCSSRules(in Element element,
56    //                               in DOMString pseudoElement,
57    //                               in [Optional] boolean authorOnly);
58    HRESULT getMatchedCSSRules([in] IDOMElement* element, [in] BSTR pseudoElement, [in] BOOL authorOnly, [out, retval] IDOMCSSRuleList** result);
59
60    //readonly attribute double devicePixelRatio;
61    HRESULT devicePixelRatio([out, retval] double* result);
62
63    // Global constructors
64    //attribute CSSPrimitiveValueConstructor CSSPrimitiveValue;
65    //attribute CSSRuleConstructor CSSRule;
66    //attribute CSSStyleDeclarationConstructor CSSStyleDeclaration;
67    //attribute CSSValueConstructor CSSValue;
68    //attribute DocumentConstructor Document;
69    //attribute DocumentFragmentConstructor DocumentFragment;
70    //attribute DOMParserConstructor DOMParser;
71    //attribute ElementConstructor Element;
72    //attribute EventConstructor Event;
73    //attribute HTMLElementConstructor HTMLElement;
74    //attribute HTMLDocumentConstructor HTMLDocument;
75    //attribute MutationEventConstructor MutationEvent;
76    //attribute NodeConstructor Node;
77    //attribute NodeFilterConstructor NodeFilter;
78    //attribute RangeConstructor Range;
79    //attribute RangeExceptionConstructor RangeException;
80
81    // Mozilla has a separate XMLDocument object for XML documents.
82    // We just use Document for this.
83    //attribute DocumentConstructor XMLDocument;
84
85    //attribute XMLSerializerConstructor XMLSerializer;
86
87    //#ifdef XPATH_SUPPORT
88    //attribute XPathEvaluatorConstructor XPathEvaluator;
89    //attribute XPathResultConstructor XPathResult;
90    //#endif
91}
92