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

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

Issue 2577203002: Remove use of WebNode/WebElement in translate_helper (Closed)
Patch Set: Add WebLanguageDetectionDetails Created 4 years 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
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 486e11ce89db1f71cd57620841aa04be6aab420c..aafa95d03413b977af96c8d5a9bb6af33edd1658 100644
--- a/third_party/WebKit/public/web/WebDocument.h
+++ b/third_party/WebKit/public/web/WebDocument.h
@@ -36,6 +36,7 @@
#include "WebFrame.h"
#include "WebNode.h"
#include "public/platform/WebColor.h"
+#include "public/platform/WebLanguageDetectionDetails.h"
#include "public/platform/WebReferrerPolicy.h"
#include "public/platform/WebSecurityOrigin.h"
#include "public/platform/WebVector.h"
@@ -75,7 +76,20 @@ class WebDocument : public WebNode {
BLINK_EXPORT bool isSecureContext() const;
BLINK_EXPORT WebString encoding() const;
+
+ // Content language indicates the language understood by the intended
+ // audience of a page and is specified inside the Content-Language HTTP
+ // header.
BLINK_EXPORT WebString contentLanguage() const;
+
+ // Document language indicates the language of the document and is set in the
+ // lang attribute of the <html> tag
+ BLINK_EXPORT WebString documentLanguage() const;
+
+ BLINK_EXPORT WebVector<WebString> getMetaValues(const WebString& name) const;
+ BLINK_EXPORT WebLanguageDetectionDetails
+ collectLanguageDetectionDetails() const;
+
BLINK_EXPORT WebString referrer() const;
BLINK_EXPORT WebColor themeColor() const;
// The url of the OpenSearch Desription Document (if any).

Powered by Google App Engine
This is Rietveld 408576698