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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 class Value; | 50 class Value; |
51 template <class T> class Handle; | 51 template <class T> class Handle; |
52 } | 52 } |
53 | 53 |
54 namespace blink { | 54 namespace blink { |
55 class WebAXObject; | 55 class WebAXObject; |
56 class WebDocumentType; | 56 class WebDocumentType; |
57 class WebElement; | 57 class WebElement; |
58 class WebFormElement; | 58 class WebFormElement; |
59 class WebFrame; | 59 class WebFrame; |
60 class WebNodeCollection; | 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 // FIXME: Stop using this from Chromium code and get rid of this enum. | 68 // FIXME: Stop using this from Chromium code and get rid of this enum. |
69 enum UserStyleLevel { | 69 enum UserStyleLevel { |
70 UserStyleAuthorLevel | 70 UserStyleAuthorLevel |
(...skipping 29 matching lines...) Expand all Loading... |
100 | 100 |
101 // The firstPartyForCookies is used to compute whether this document | 101 // The firstPartyForCookies is used to compute whether this document |
102 // appears in a "third-party" context for the purpose of third-party | 102 // appears in a "third-party" context for the purpose of third-party |
103 // cookie blocking. | 103 // cookie blocking. |
104 BLINK_EXPORT WebURL firstPartyForCookies() const; | 104 BLINK_EXPORT WebURL firstPartyForCookies() const; |
105 | 105 |
106 BLINK_EXPORT WebElement documentElement() const; | 106 BLINK_EXPORT WebElement documentElement() const; |
107 BLINK_EXPORT WebElement body() const; | 107 BLINK_EXPORT WebElement body() const; |
108 BLINK_EXPORT WebElement head(); | 108 BLINK_EXPORT WebElement head(); |
109 BLINK_EXPORT WebString title() const; | 109 BLINK_EXPORT WebString title() const; |
110 BLINK_EXPORT WebNodeCollection all(); | 110 BLINK_EXPORT WebElementCollection all(); |
111 BLINK_EXPORT void forms(WebVector<WebFormElement>&) const; | 111 BLINK_EXPORT void forms(WebVector<WebFormElement>&) const; |
112 BLINK_EXPORT void images(WebVector<WebElement>&); | 112 BLINK_EXPORT void images(WebVector<WebElement>&); |
113 BLINK_EXPORT WebURL completeURL(const WebString&) const; | 113 BLINK_EXPORT WebURL completeURL(const WebString&) const; |
114 BLINK_EXPORT WebElement getElementById(const WebString&) const; | 114 BLINK_EXPORT WebElement getElementById(const WebString&) const; |
115 BLINK_EXPORT WebNode focusedNode() const; | 115 BLINK_EXPORT WebNode focusedNode() const; |
116 BLINK_EXPORT WebDocumentType doctype() const; | 116 BLINK_EXPORT WebDocumentType doctype() const; |
117 BLINK_EXPORT void cancelFullScreen(); | 117 BLINK_EXPORT void cancelFullScreen(); |
118 BLINK_EXPORT WebElement fullScreenElement() const; | 118 BLINK_EXPORT WebElement fullScreenElement() const; |
119 BLINK_EXPORT WebDOMEvent createEvent(const WebString& eventType); | 119 BLINK_EXPORT WebDOMEvent createEvent(const WebString& eventType); |
120 BLINK_EXPORT WebReferrerPolicy referrerPolicy() const; | 120 BLINK_EXPORT WebReferrerPolicy referrerPolicy() const; |
(...skipping 25 matching lines...) Expand all Loading... |
146 #if BLINK_IMPLEMENTATION | 146 #if BLINK_IMPLEMENTATION |
147 WebDocument(const WTF::PassRefPtr<WebCore::Document>&); | 147 WebDocument(const WTF::PassRefPtr<WebCore::Document>&); |
148 WebDocument& operator=(const WTF::PassRefPtr<WebCore::Document>&); | 148 WebDocument& operator=(const WTF::PassRefPtr<WebCore::Document>&); |
149 operator WTF::PassRefPtr<WebCore::Document>() const; | 149 operator WTF::PassRefPtr<WebCore::Document>() const; |
150 #endif | 150 #endif |
151 }; | 151 }; |
152 | 152 |
153 } // namespace blink | 153 } // namespace blink |
154 | 154 |
155 #endif | 155 #endif |
OLD | NEW |