#ifndef WebDocument_h
#define WebDocument_h
#include "../platform/WebReferrerPolicy.h"
#include "../platform/WebVector.h"
#include "WebDraggableRegion.h"
#include "WebExceptionCode.h"
#include "WebFrame.h"
#include "WebNode.h"
#include "WebSecurityOrigin.h"
#if BLINK_IMPLEMENTATION
namespace WebCore {
class Document;
class DocumentType;
}
namespace WTF { template <typename T> class PassRefPtr; }
#endif
namespace v8 {
class Value;
template <class T> class Handle;
}
namespace blink {
class WebAXObject;
class WebDocumentType;
class WebElement;
class WebFormElement;
class WebElementCollection;
class WebNodeList;
class WebString;
class WebURL;
class WebDocument : public WebNode {
public:
WebDocument() { }
WebDocument(const WebDocument& e) : WebNode(e) { }
WebDocument& operator=(const WebDocument& e)
{
WebNode::assign(e);
return *this;
}
void assign(const WebDocument& e) { WebNode::assign(e); }
BLINK_EXPORT WebURL url() const;
BLINK_EXPORT WebSecurityOrigin securityOrigin() const;
BLINK_EXPORT WebString encoding() const;
BLINK_EXPORT WebString contentLanguage() const;
BLINK_EXPORT WebString referrer() const;
BLINK_EXPORT WebURL openSearchDescriptionURL() const;
BLINK_EXPORT WebLocalFrame* frame() const;
BLINK_EXPORT bool isHTMLDocument() const;
BLINK_EXPORT bool isXHTMLDocument() const;
BLINK_EXPORT bool isPluginDocument() const;
BLINK_EXPORT WebURL baseURL() const;
BLINK_EXPORT WebURL firstPartyForCookies() const;
BLINK_EXPORT WebElement documentElement() const;
BLINK_EXPORT WebElement body() const;
BLINK_EXPORT WebElement head();
BLINK_EXPORT WebString title() const;
BLINK_EXPORT WebElementCollection all();
BLINK_EXPORT void forms(WebVector<WebFormElement>&) const;
BLINK_EXPORT void images(WebVector<WebElement>&);
BLINK_EXPORT WebURL completeURL(const WebString&) const;
BLINK_EXPORT WebElement getElementById(const WebString&) const;
BLINK_EXPORT WebElement focusedElement() const;
BLINK_EXPORT WebDocumentType doctype() const;
BLINK_EXPORT void cancelFullScreen();
BLINK_EXPORT WebElement fullScreenElement() const;
BLINK_EXPORT WebDOMEvent createEvent(const WebString& eventType);
BLINK_EXPORT WebReferrerPolicy referrerPolicy() const;
BLINK_EXPORT WebElement createElement(const WebString& tagName);
BLINK_EXPORT WebAXObject accessibilityObject() const;
BLINK_EXPORT WebAXObject accessibilityObjectFromID(int axID) const;
BLINK_EXPORT void insertStyleSheet(const WebString& sourceCode);
BLINK_EXPORT void watchCSSSelectors(const WebVector<WebString>& selectors);
BLINK_EXPORT WebVector<WebDraggableRegion> draggableRegions() const;
BLINK_EXPORT v8::Handle<v8::Value> registerEmbedderCustomElement(const WebString& name, v8::Handle<v8::Value> options, WebExceptionCode&);
#if BLINK_IMPLEMENTATION
WebDocument(const WTF::PassRefPtr<WebCore::Document>&);
WebDocument& operator=(const WTF::PassRefPtr<WebCore::Document>&);
operator WTF::PassRefPtr<WebCore::Document>() const;
#endif
};
}
#endif