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

Unified Diff: third_party/WebKit/Source/core/dom/Document.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/Source/core/dom/Document.h
diff --git a/third_party/WebKit/Source/core/dom/Document.h b/third_party/WebKit/Source/core/dom/Document.h
index dedff943c98acf93cda3678cece0d3ac70e6a1ae..da2cb77461943bd9220f1f092f6b8e84c696c16a 100644
--- a/third_party/WebKit/Source/core/dom/Document.h
+++ b/third_party/WebKit/Source/core/dom/Document.h
@@ -367,9 +367,21 @@ class CORE_EXPORT Document : public ContainerNode,
void setMimeType(const AtomicString&);
AtomicString contentType() const; // DOM 4 document.contentType
+ // Content language indicates the language understood by the intended
+ // audience of a page and is specified inside the Content-Language HTTP
+ // header.
const AtomicString& contentLanguage() const { return m_contentLanguage; }
void setContentLanguage(const AtomicString&);
+ // Document language indicates the language of the document and is set in the
+ // lang attribute of the <html> tag
+ const AtomicString& documentLanguage() const;
+
+ // Returns the values of all <meta> children whose name is a case-insensitive
+ // match for |name|, in order. The standard "content" attribute is preferred
+ // over the non-standard "value"
+ Vector<AtomicString> getMetaValues(const AtomicString& name) const;
+
String xmlEncoding() const { return m_xmlEncoding; }
String xmlVersion() const { return m_xmlVersion; }
enum StandaloneStatus { StandaloneUnspecified, Standalone, NotStandalone };

Powered by Google App Engine
This is Rietveld 408576698