| 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 | |
| 217 WebReferrerPolicy WebDocument::referrerPolicy() const { | 209 WebReferrerPolicy WebDocument::referrerPolicy() const { |
| 218 return static_cast<WebReferrerPolicy>( | 210 return static_cast<WebReferrerPolicy>( |
| 219 constUnwrap<Document>()->getReferrerPolicy()); | 211 constUnwrap<Document>()->getReferrerPolicy()); |
| 220 } | 212 } |
| 221 | 213 |
| 222 WebString WebDocument::outgoingReferrer() { | 214 WebString WebDocument::outgoingReferrer() { |
| 223 return WebString(unwrap<Document>()->outgoingReferrer()); | 215 return WebString(unwrap<Document>()->outgoingReferrer()); |
| 224 } | 216 } |
| 225 | 217 |
| 226 WebAXObject WebDocument::accessibilityObject() const { | 218 WebAXObject WebDocument::accessibilityObject() const { |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 309 WebDocument& WebDocument::operator=(Document* elem) { | 301 WebDocument& WebDocument::operator=(Document* elem) { |
| 310 m_private = elem; | 302 m_private = elem; |
| 311 return *this; | 303 return *this; |
| 312 } | 304 } |
| 313 | 305 |
| 314 WebDocument::operator Document*() const { | 306 WebDocument::operator Document*() const { |
| 315 return toDocument(m_private.get()); | 307 return toDocument(m_private.get()); |
| 316 } | 308 } |
| 317 | 309 |
| 318 } // namespace blink | 310 } // namespace blink |
| OLD | NEW |