Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 69 } | 69 } |
| 70 void assign(const WebDocument& e) { WebNode::assign(e); } | 70 void assign(const WebDocument& e) { WebNode::assign(e); } |
| 71 | 71 |
| 72 BLINK_EXPORT WebURL url() const; | 72 BLINK_EXPORT WebURL url() const; |
| 73 // Note: Security checks should use the getSecurityOrigin(), not url(). | 73 // Note: Security checks should use the getSecurityOrigin(), not url(). |
| 74 BLINK_EXPORT WebSecurityOrigin getSecurityOrigin() const; | 74 BLINK_EXPORT WebSecurityOrigin getSecurityOrigin() const; |
| 75 BLINK_EXPORT bool isSecureContext() const; | 75 BLINK_EXPORT bool isSecureContext() const; |
| 76 | 76 |
| 77 BLINK_EXPORT WebString encoding() const; | 77 BLINK_EXPORT WebString encoding() const; |
| 78 BLINK_EXPORT WebString contentLanguage() const; | 78 BLINK_EXPORT WebString contentLanguage() const; |
| 79 BLINK_EXPORT WebString documentLanguage() const; | |
|
jbroman
2016/12/16 16:17:42
Please add comments clarifying the difference betw
adithyas
2016/12/16 21:57:17
Added comments here and to Document.h.
| |
| 80 BLINK_EXPORT WebVector<WebString> getMetaValues(WebString name) const; | |
|
jbroman
2016/12/16 16:17:42
prefer "const WebString&" as an argument type
adithyas
2016/12/16 21:57:17
Done.
| |
| 79 BLINK_EXPORT WebString referrer() const; | 81 BLINK_EXPORT WebString referrer() const; |
| 80 BLINK_EXPORT WebColor themeColor() const; | 82 BLINK_EXPORT WebColor themeColor() const; |
| 81 // The url of the OpenSearch Desription Document (if any). | 83 // The url of the OpenSearch Desription Document (if any). |
| 82 BLINK_EXPORT WebURL openSearchDescriptionURL() const; | 84 BLINK_EXPORT WebURL openSearchDescriptionURL() const; |
| 83 | 85 |
| 84 // Returns the frame the document belongs to or 0 if the document is | 86 // Returns the frame the document belongs to or 0 if the document is |
| 85 // frameless. | 87 // frameless. |
| 86 BLINK_EXPORT WebLocalFrame* frame() const; | 88 BLINK_EXPORT WebLocalFrame* frame() const; |
| 87 BLINK_EXPORT bool isHTMLDocument() const; | 89 BLINK_EXPORT bool isHTMLDocument() const; |
| 88 BLINK_EXPORT bool isXHTMLDocument() const; | 90 BLINK_EXPORT bool isXHTMLDocument() const; |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 144 BLINK_EXPORT WebDocument& operator=(Document*); | 146 BLINK_EXPORT WebDocument& operator=(Document*); |
| 145 BLINK_EXPORT operator Document*() const; | 147 BLINK_EXPORT operator Document*() const; |
| 146 #endif | 148 #endif |
| 147 }; | 149 }; |
| 148 | 150 |
| 149 DECLARE_WEB_NODE_TYPE_CASTS(WebDocument); | 151 DECLARE_WEB_NODE_TYPE_CASTS(WebDocument); |
| 150 | 152 |
| 151 } // namespace blink | 153 } // namespace blink |
| 152 | 154 |
| 153 #endif | 155 #endif |
| OLD | NEW |