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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 template <class T> | 45 template <class T> |
46 class Local; | 46 class Local; |
47 } | 47 } |
48 | 48 |
49 namespace blink { | 49 namespace blink { |
50 | 50 |
51 class Document; | 51 class Document; |
52 class WebAXObject; | 52 class WebAXObject; |
53 class WebElement; | 53 class WebElement; |
54 class WebFormElement; | 54 class WebFormElement; |
| 55 class WebFormElementObserverCallback; |
55 class WebElementCollection; | 56 class WebElementCollection; |
| 57 class WebInputElement; |
56 class WebString; | 58 class WebString; |
57 class WebURL; | 59 class WebURL; |
58 struct WebDistillabilityFeatures; | 60 struct WebDistillabilityFeatures; |
59 | 61 |
60 // Provides readonly access to some properties of a DOM document. | 62 // Provides readonly access to some properties of a DOM document. |
61 class WebDocument : public WebNode { | 63 class WebDocument : public WebNode { |
62 public: | 64 public: |
63 WebDocument() {} | 65 WebDocument() {} |
64 WebDocument(const WebDocument& e) : WebNode(e) {} | 66 WebDocument(const WebDocument& e) : WebNode(e) {} |
65 | 67 |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 | 134 |
133 BLINK_EXPORT v8::Local<v8::Value> RegisterEmbedderCustomElement( | 135 BLINK_EXPORT v8::Local<v8::Value> RegisterEmbedderCustomElement( |
134 const WebString& name, | 136 const WebString& name, |
135 v8::Local<v8::Value> options, | 137 v8::Local<v8::Value> options, |
136 WebExceptionCode&); | 138 WebExceptionCode&); |
137 | 139 |
138 BLINK_EXPORT WebURL ManifestURL() const; | 140 BLINK_EXPORT WebURL ManifestURL() const; |
139 BLINK_EXPORT bool ManifestUseCredentials() const; | 141 BLINK_EXPORT bool ManifestUseCredentials() const; |
140 BLINK_EXPORT WebDistillabilityFeatures DistillabilityFeatures(); | 142 BLINK_EXPORT WebDistillabilityFeatures DistillabilityFeatures(); |
141 | 143 |
| 144 // Autofill support. |
| 145 |
| 146 // Invoke callback once the passed form or input element is either removed |
| 147 // from the DOM tree, or its display class is set to none. Ownership |
| 148 // of the callback is taken by the WebDocument. |
| 149 BLINK_EXPORT void ObserveFormElement( |
| 150 WebFormElement&, |
| 151 std::unique_ptr<WebFormElementObserverCallback>); |
| 152 BLINK_EXPORT void ObserveFormElement( |
| 153 WebInputElement&, |
| 154 std::unique_ptr<WebFormElementObserverCallback>); |
| 155 |
142 #if BLINK_IMPLEMENTATION | 156 #if BLINK_IMPLEMENTATION |
143 BLINK_EXPORT WebDocument(Document*); | 157 BLINK_EXPORT WebDocument(Document*); |
144 BLINK_EXPORT WebDocument& operator=(Document*); | 158 BLINK_EXPORT WebDocument& operator=(Document*); |
145 BLINK_EXPORT operator Document*() const; | 159 BLINK_EXPORT operator Document*() const; |
146 #endif | 160 #endif |
147 }; | 161 }; |
148 | 162 |
149 DECLARE_WEB_NODE_TYPE_CASTS(WebDocument); | 163 DECLARE_WEB_NODE_TYPE_CASTS(WebDocument); |
150 | 164 |
151 } // namespace blink | 165 } // namespace blink |
152 | 166 |
153 #endif | 167 #endif |
OLD | NEW |