DOMImplementation.h [plain text]
#ifndef DOMImplementation_h
#define DOMImplementation_h
#include "Document.h"
#include "MediaPlayer.h"
#include <wtf/Forward.h>
#include <wtf/PassRefPtr.h>
#include <wtf/RefCounted.h>
namespace WebCore {
class CSSStyleSheet;
class Document;
class DocumentType;
class Frame;
class HTMLDocument;
class KURL;
class RegularExpression;
typedef int ExceptionCode;
class DOMImplementation : public ScriptWrappable {
WTF_MAKE_FAST_ALLOCATED;
public:
static PassOwnPtr<DOMImplementation> create(Document* document) { return adoptPtr(new DOMImplementation(document)); }
void ref() { m_document->ref(); }
void deref() { m_document->deref(); }
Document* document() { return m_document; }
static bool hasFeature(const String& feature, const String& version);
PassRefPtr<DocumentType> createDocumentType(const String& qualifiedName, const String& publicId, const String& systemId, ExceptionCode&);
PassRefPtr<Document> createDocument(const String& namespaceURI, const String& qualifiedName, DocumentType*, ExceptionCode&);
DOMImplementation* getInterface(const String& feature);
static PassRefPtr<CSSStyleSheet> createCSSStyleSheet(const String& title, const String& media, ExceptionCode&);
PassRefPtr<HTMLDocument> createHTMLDocument(const String& title);
static PassRefPtr<Document> createDocument(const String& MIMEType, Frame*, const KURL&, bool inViewSourceMode);
static bool isXMLMIMEType(const String& MIMEType);
static bool isTextMIMEType(const String& MIMEType);
private:
explicit DOMImplementation(Document*);
Document* m_document;
};
}
#endif