Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(49)

Side by Side Diff: third_party/WebKit/public/web/WebDocument.h

Issue 1419033004: Add feature extraction for distillability to Blink (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: stricter test Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 // the selectors matches or stops matching an element in this document. 130 // the selectors matches or stops matching an element in this document.
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;
140 BLINK_EXPORT WebDistillabilityFeatures distillabilityFeatures();
139 141
140 #if BLINK_IMPLEMENTATION 142 #if BLINK_IMPLEMENTATION
141 WebDocument(const PassRefPtrWillBeRawPtr<Document>&); 143 WebDocument(const PassRefPtrWillBeRawPtr<Document>&);
142 WebDocument& operator=(const PassRefPtrWillBeRawPtr<Document>&); 144 WebDocument& operator=(const PassRefPtrWillBeRawPtr<Document>&);
143 operator PassRefPtrWillBeRawPtr<Document>() const; 145 operator PassRefPtrWillBeRawPtr<Document>() const;
144 #endif 146 #endif
145 }; 147 };
146 148
147 DECLARE_WEB_NODE_TYPE_CASTS(WebDocument); 149 DECLARE_WEB_NODE_TYPE_CASTS(WebDocument);
148 150
149 } // namespace blink 151 } // namespace blink
150 152
151 #endif 153 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/public/platform/WebDistillability.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698