OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 17 matching lines...) Expand all Loading... |
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
29 */ | 29 */ |
30 | 30 |
31 #ifndef WebDocument_h | 31 #ifndef WebDocument_h |
32 #define WebDocument_h | 32 #define WebDocument_h |
33 | 33 |
34 #include "../platform/WebReferrerPolicy.h" | 34 #include "../platform/WebReferrerPolicy.h" |
35 #include "../platform/WebVector.h" | 35 #include "../platform/WebVector.h" |
36 #include "WebDraggableRegion.h" | 36 #include "WebDraggableRegion.h" |
37 #include "WebExceptionCode.h" | 37 #include "WebExceptionCode.h" |
| 38 #include "WebFrame.h" |
38 #include "WebNode.h" | 39 #include "WebNode.h" |
39 #include "WebSecurityOrigin.h" | 40 #include "WebSecurityOrigin.h" |
40 | 41 |
41 #if BLINK_IMPLEMENTATION | 42 #if BLINK_IMPLEMENTATION |
42 namespace WebCore { | 43 namespace WebCore { |
43 class Document; | 44 class Document; |
44 class DocumentType; | 45 class DocumentType; |
45 } | 46 } |
46 namespace WTF { template <typename T> class PassRefPtr; } | 47 namespace WTF { template <typename T> class PassRefPtr; } |
47 #endif | 48 #endif |
48 | 49 |
49 namespace v8 { | 50 namespace v8 { |
50 class Value; | 51 class Value; |
51 template <class T> class Handle; | 52 template <class T> class Handle; |
52 } | 53 } |
53 | 54 |
54 namespace blink { | 55 namespace blink { |
55 class WebAXObject; | 56 class WebAXObject; |
56 class WebDocumentType; | 57 class WebDocumentType; |
57 class WebElement; | 58 class WebElement; |
58 class WebFormElement; | 59 class WebFormElement; |
59 class WebFrame; | |
60 class WebElementCollection; | 60 class WebElementCollection; |
61 class WebNodeList; | 61 class WebNodeList; |
62 class WebString; | 62 class WebString; |
63 class WebURL; | 63 class WebURL; |
64 | 64 |
65 // Provides readonly access to some properties of a DOM document. | 65 // Provides readonly access to some properties of a DOM document. |
66 class WebDocument : public WebNode { | 66 class WebDocument : public WebNode { |
67 public: | 67 public: |
68 WebDocument() { } | 68 WebDocument() { } |
69 WebDocument(const WebDocument& e) : WebNode(e) { } | 69 WebDocument(const WebDocument& e) : WebNode(e) { } |
(...skipping 10 matching lines...) Expand all Loading... |
80 BLINK_EXPORT WebSecurityOrigin securityOrigin() const; | 80 BLINK_EXPORT WebSecurityOrigin securityOrigin() const; |
81 | 81 |
82 BLINK_EXPORT WebString encoding() const; | 82 BLINK_EXPORT WebString encoding() const; |
83 BLINK_EXPORT WebString contentLanguage() const; | 83 BLINK_EXPORT WebString contentLanguage() const; |
84 BLINK_EXPORT WebString referrer() const; | 84 BLINK_EXPORT WebString referrer() const; |
85 | 85 |
86 // The url of the OpenSearch Desription Document (if any). | 86 // The url of the OpenSearch Desription Document (if any). |
87 BLINK_EXPORT WebURL openSearchDescriptionURL() const; | 87 BLINK_EXPORT WebURL openSearchDescriptionURL() const; |
88 | 88 |
89 // Returns the frame the document belongs to or 0 if the document is framele
ss. | 89 // Returns the frame the document belongs to or 0 if the document is framele
ss. |
90 BLINK_EXPORT WebFrame* frame() const; | 90 BLINK_EXPORT WebLocalFrame* frame() const; |
91 BLINK_EXPORT bool isHTMLDocument() const; | 91 BLINK_EXPORT bool isHTMLDocument() const; |
92 BLINK_EXPORT bool isXHTMLDocument() const; | 92 BLINK_EXPORT bool isXHTMLDocument() const; |
93 BLINK_EXPORT bool isPluginDocument() const; | 93 BLINK_EXPORT bool isPluginDocument() const; |
94 BLINK_EXPORT WebURL baseURL() const; | 94 BLINK_EXPORT WebURL baseURL() const; |
95 | 95 |
96 // The firstPartyForCookies is used to compute whether this document | 96 // The firstPartyForCookies is used to compute whether this document |
97 // appears in a "third-party" context for the purpose of third-party | 97 // appears in a "third-party" context for the purpose of third-party |
98 // cookie blocking. | 98 // cookie blocking. |
99 BLINK_EXPORT WebURL firstPartyForCookies() const; | 99 BLINK_EXPORT WebURL firstPartyForCookies() const; |
100 | 100 |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 #if BLINK_IMPLEMENTATION | 139 #if BLINK_IMPLEMENTATION |
140 WebDocument(const WTF::PassRefPtr<WebCore::Document>&); | 140 WebDocument(const WTF::PassRefPtr<WebCore::Document>&); |
141 WebDocument& operator=(const WTF::PassRefPtr<WebCore::Document>&); | 141 WebDocument& operator=(const WTF::PassRefPtr<WebCore::Document>&); |
142 operator WTF::PassRefPtr<WebCore::Document>() const; | 142 operator WTF::PassRefPtr<WebCore::Document>() const; |
143 #endif | 143 #endif |
144 }; | 144 }; |
145 | 145 |
146 } // namespace blink | 146 } // namespace blink |
147 | 147 |
148 #endif | 148 #endif |
OLD | NEW |