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

Side by Side 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 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 18 matching lines...) Expand all
29 */ 29 */
30 30
31 #ifndef WebDocument_h 31 #ifndef WebDocument_h
32 #define WebDocument_h 32 #define WebDocument_h
33 33
34 #include "WebDraggableRegion.h" 34 #include "WebDraggableRegion.h"
35 #include "WebExceptionCode.h" 35 #include "WebExceptionCode.h"
36 #include "WebFrame.h" 36 #include "WebFrame.h"
37 #include "WebNode.h" 37 #include "WebNode.h"
38 #include "public/platform/WebColor.h" 38 #include "public/platform/WebColor.h"
39 #include "public/platform/WebLanguageDetectionDetails.h"
39 #include "public/platform/WebReferrerPolicy.h" 40 #include "public/platform/WebReferrerPolicy.h"
40 #include "public/platform/WebSecurityOrigin.h" 41 #include "public/platform/WebSecurityOrigin.h"
41 #include "public/platform/WebVector.h" 42 #include "public/platform/WebVector.h"
42 43
43 namespace v8 { 44 namespace v8 {
44 class Value; 45 class Value;
45 template <class T> 46 template <class T>
46 class Local; 47 class Local;
47 } 48 }
48 49
(...skipping 19 matching lines...) Expand all
68 return *this; 69 return *this;
69 } 70 }
70 void assign(const WebDocument& e) { WebNode::assign(e); } 71 void assign(const WebDocument& e) { WebNode::assign(e); }
71 72
72 BLINK_EXPORT WebURL url() const; 73 BLINK_EXPORT WebURL url() const;
73 // Note: Security checks should use the getSecurityOrigin(), not url(). 74 // Note: Security checks should use the getSecurityOrigin(), not url().
74 BLINK_EXPORT WebSecurityOrigin getSecurityOrigin() const; 75 BLINK_EXPORT WebSecurityOrigin getSecurityOrigin() const;
75 BLINK_EXPORT bool isSecureContext() const; 76 BLINK_EXPORT bool isSecureContext() const;
76 77
77 BLINK_EXPORT WebString encoding() const; 78 BLINK_EXPORT WebString encoding() const;
79
80 // Content language indicates the language understood by the intended
81 // audience of a page and is specified inside the Content-Language HTTP
82 // header.
78 BLINK_EXPORT WebString contentLanguage() const; 83 BLINK_EXPORT WebString contentLanguage() const;
84
85 // Document language indicates the language of the document and is set in the
86 // lang attribute of the <html> tag
87 BLINK_EXPORT WebString documentLanguage() const;
88
89 BLINK_EXPORT WebVector<WebString> getMetaValues(const WebString& name) const;
90 BLINK_EXPORT WebLanguageDetectionDetails
91 collectLanguageDetectionDetails() const;
92
79 BLINK_EXPORT WebString referrer() const; 93 BLINK_EXPORT WebString referrer() const;
80 BLINK_EXPORT WebColor themeColor() const; 94 BLINK_EXPORT WebColor themeColor() const;
81 // The url of the OpenSearch Desription Document (if any). 95 // The url of the OpenSearch Desription Document (if any).
82 BLINK_EXPORT WebURL openSearchDescriptionURL() const; 96 BLINK_EXPORT WebURL openSearchDescriptionURL() const;
83 97
84 // Returns the frame the document belongs to or 0 if the document is 98 // Returns the frame the document belongs to or 0 if the document is
85 // frameless. 99 // frameless.
86 BLINK_EXPORT WebLocalFrame* frame() const; 100 BLINK_EXPORT WebLocalFrame* frame() const;
87 BLINK_EXPORT bool isHTMLDocument() const; 101 BLINK_EXPORT bool isHTMLDocument() const;
88 BLINK_EXPORT bool isXHTMLDocument() const; 102 BLINK_EXPORT bool isXHTMLDocument() const;
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 BLINK_EXPORT WebDocument& operator=(Document*); 158 BLINK_EXPORT WebDocument& operator=(Document*);
145 BLINK_EXPORT operator Document*() const; 159 BLINK_EXPORT operator Document*() const;
146 #endif 160 #endif
147 }; 161 };
148 162
149 DECLARE_WEB_NODE_TYPE_CASTS(WebDocument); 163 DECLARE_WEB_NODE_TYPE_CASTS(WebDocument);
150 164
151 } // namespace blink 165 } // namespace blink
152 166
153 #endif 167 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698