| 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 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 199 void WebDocument::watchCSSSelectors(const WebVector<WebString>& webSelectors) { | 199 void WebDocument::watchCSSSelectors(const WebVector<WebString>& webSelectors) { |
| 200 Document* document = unwrap<Document>(); | 200 Document* document = unwrap<Document>(); |
| 201 CSSSelectorWatch* watch = CSSSelectorWatch::fromIfExists(*document); | 201 CSSSelectorWatch* watch = CSSSelectorWatch::fromIfExists(*document); |
| 202 if (!watch && webSelectors.isEmpty()) | 202 if (!watch && webSelectors.isEmpty()) |
| 203 return; | 203 return; |
| 204 Vector<String> selectors; | 204 Vector<String> selectors; |
| 205 selectors.append(webSelectors.data(), webSelectors.size()); | 205 selectors.append(webSelectors.data(), webSelectors.size()); |
| 206 CSSSelectorWatch::from(*document).watchCSSSelectors(selectors); | 206 CSSSelectorWatch::from(*document).watchCSSSelectors(selectors); |
| 207 } | 207 } |
| 208 | 208 |
| 209 bool WebDocument::unloadStartedDoNotUse() const { |
| 210 return constUnwrap<Document>()->unloadStarted(); |
| 211 } |
| 212 |
| 213 bool WebDocument::processingBeforeUnloadDoNotUse() const { |
| 214 return constUnwrap<Document>()->processingBeforeUnload(); |
| 215 } |
| 216 |
| 209 WebReferrerPolicy WebDocument::referrerPolicy() const { | 217 WebReferrerPolicy WebDocument::referrerPolicy() const { |
| 210 return static_cast<WebReferrerPolicy>( | 218 return static_cast<WebReferrerPolicy>( |
| 211 constUnwrap<Document>()->getReferrerPolicy()); | 219 constUnwrap<Document>()->getReferrerPolicy()); |
| 212 } | 220 } |
| 213 | 221 |
| 214 WebString WebDocument::outgoingReferrer() { | 222 WebString WebDocument::outgoingReferrer() { |
| 215 return WebString(unwrap<Document>()->outgoingReferrer()); | 223 return WebString(unwrap<Document>()->outgoingReferrer()); |
| 216 } | 224 } |
| 217 | 225 |
| 218 WebAXObject WebDocument::accessibilityObject() const { | 226 WebAXObject WebDocument::accessibilityObject() const { |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 301 WebDocument& WebDocument::operator=(Document* elem) { | 309 WebDocument& WebDocument::operator=(Document* elem) { |
| 302 m_private = elem; | 310 m_private = elem; |
| 303 return *this; | 311 return *this; |
| 304 } | 312 } |
| 305 | 313 |
| 306 WebDocument::operator Document*() const { | 314 WebDocument::operator Document*() const { |
| 307 return toDocument(m_private.get()); | 315 return toDocument(m_private.get()); |
| 308 } | 316 } |
| 309 | 317 |
| 310 } // namespace blink | 318 } // namespace blink |
| OLD | NEW |