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

Unified Diff: third_party/WebKit/public/web/WebDocument.h

Issue 1248643004: Test distillability without JavaScript (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@early
Patch Set: fix browsertest, merge webkit CL, merge http://crrev.com/1403413004 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/public/platform/WebDistillability.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/public/web/WebDocument.h
diff --git a/third_party/WebKit/public/web/WebDocument.h b/third_party/WebKit/public/web/WebDocument.h
index 8b415834b2edb0e155adef6cdbfb4c3f91a55512..8b4ef0ff3cec52deb0086f2d414ee4ab87d172d5 100644
--- a/third_party/WebKit/public/web/WebDocument.h
+++ b/third_party/WebKit/public/web/WebDocument.h
@@ -59,6 +59,7 @@ class WebFormElement;
class WebElementCollection;
class WebString;
class WebURL;
+struct WebDistillabilityFeatures;
// Provides readonly access to some properties of a DOM document.
class WebDocument : public WebNode {
@@ -137,6 +138,11 @@ public:
BLINK_EXPORT WebURL manifestURL() const;
BLINK_EXPORT bool manifestUseCredentials() const;
+ // distillabilityFeatures and isMobileFriendly should only be called on
+ // the main frame.
+ BLINK_EXPORT WebDistillabilityFeatures distillabilityFeatures();
+ BLINK_EXPORT bool isMobileFriendly();
+
#if BLINK_IMPLEMENTATION
WebDocument(const PassRefPtrWillBeRawPtr<Document>&);
WebDocument& operator=(const PassRefPtrWillBeRawPtr<Document>&);
« 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