]>
git.saurik.com Git - iphone-api.git/blob - WebCore/DOMImplementationFront.h
2 * Copyright (C) 2006, 2008 Apple Inc. All rights reserved.
3 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com>
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version.
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Library General Public License for more details.
15 * You should have received a copy of the GNU Library General Public License
16 * along with this library; see the file COPYING.LIB. If not, write to
17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 * Boston, MA 02110-1301, USA.
22 #ifndef DOMImplementationFront_h
23 #define DOMImplementationFront_h
25 // FIXME: This source file exists to work around a problem that occurs trying
26 // to mix DOMImplementation and WebCore::DOMImplementation in DOM.mm.
27 // It seems to affect only older versions of gcc. Once the buildbot is upgraded,
28 // we should consider increasing the minimum required version of gcc to build
29 // WebCore, and rolling the change that introduced this file back.
31 #include <wtf/Forward.h>
39 class JSDOMImplementation
;
42 typedef int ExceptionCode
;
44 class DOMImplementationFront
{
48 bool hasFeature(const String
& feature
, const String
& version
) const;
49 PassRefPtr
<DocumentType
> createDocumentType(const String
& qualifiedName
, const String
& publicId
, const String
& systemId
, ExceptionCode
&);
50 PassRefPtr
<Document
> createDocument(const String
& namespaceURI
, const String
& qualifiedName
, DocumentType
*, ExceptionCode
&);
51 DOMImplementationFront
* getInterface(const String
& feature
);
52 PassRefPtr
<CSSStyleSheet
> createCSSStyleSheet(const String
& title
, const String
& media
, ExceptionCode
&);
53 PassRefPtr
<HTMLDocument
> createHTMLDocument(const String
& title
);
56 DOMImplementationFront
* implementationFront(Document
*);
57 DOMImplementationFront
* implementationFront(JSDOMImplementation
*);
59 } // namespace WebCore
61 #endif // DOMImplementationFront_h