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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 | 52 |
53 class Document; | 53 class Document; |
54 class DocumentType; | 54 class DocumentType; |
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 WebElementCollection; | 59 class WebElementCollection; |
60 class WebString; | 60 class WebString; |
61 class WebURL; | 61 class WebURL; |
| 62 struct WebDistillabilityFeatures; |
62 | 63 |
63 // Provides readonly access to some properties of a DOM document. | 64 // Provides readonly access to some properties of a DOM document. |
64 class WebDocument : public WebNode { | 65 class WebDocument : public WebNode { |
65 public: | 66 public: |
66 WebDocument() { } | 67 WebDocument() { } |
67 WebDocument(const WebDocument& e) : WebNode(e) { } | 68 WebDocument(const WebDocument& e) : WebNode(e) { } |
68 | 69 |
69 WebDocument& operator=(const WebDocument& e) | 70 WebDocument& operator=(const WebDocument& e) |
70 { | 71 { |
71 WebNode::assign(e); | 72 WebNode::assign(e); |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 // Each call to this method overrides any previous calls. | 131 // Each call to this method overrides any previous calls. |
131 BLINK_EXPORT void watchCSSSelectors(const WebVector<WebString>& selectors); | 132 BLINK_EXPORT void watchCSSSelectors(const WebVector<WebString>& selectors); |
132 | 133 |
133 BLINK_EXPORT WebVector<WebDraggableRegion> draggableRegions() const; | 134 BLINK_EXPORT WebVector<WebDraggableRegion> draggableRegions() const; |
134 | 135 |
135 BLINK_EXPORT v8::Local<v8::Value> registerEmbedderCustomElement(const WebStr
ing& name, v8::Local<v8::Value> options, WebExceptionCode&); | 136 BLINK_EXPORT v8::Local<v8::Value> registerEmbedderCustomElement(const WebStr
ing& name, v8::Local<v8::Value> options, WebExceptionCode&); |
136 | 137 |
137 BLINK_EXPORT WebURL manifestURL() const; | 138 BLINK_EXPORT WebURL manifestURL() const; |
138 BLINK_EXPORT bool manifestUseCredentials() const; | 139 BLINK_EXPORT bool manifestUseCredentials() const; |
139 | 140 |
| 141 // distillabilityFeatures and isMobileFriendly should only be called on |
| 142 // the main frame. |
| 143 BLINK_EXPORT WebDistillabilityFeatures distillabilityFeatures(); |
| 144 BLINK_EXPORT bool isMobileFriendly(); |
| 145 |
140 #if BLINK_IMPLEMENTATION | 146 #if BLINK_IMPLEMENTATION |
141 WebDocument(const PassRefPtrWillBeRawPtr<Document>&); | 147 WebDocument(const PassRefPtrWillBeRawPtr<Document>&); |
142 WebDocument& operator=(const PassRefPtrWillBeRawPtr<Document>&); | 148 WebDocument& operator=(const PassRefPtrWillBeRawPtr<Document>&); |
143 operator PassRefPtrWillBeRawPtr<Document>() const; | 149 operator PassRefPtrWillBeRawPtr<Document>() const; |
144 #endif | 150 #endif |
145 }; | 151 }; |
146 | 152 |
147 DECLARE_WEB_NODE_TYPE_CASTS(WebDocument); | 153 DECLARE_WEB_NODE_TYPE_CASTS(WebDocument); |
148 | 154 |
149 } // namespace blink | 155 } // namespace blink |
150 | 156 |
151 #endif | 157 #endif |
OLD | NEW |