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 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 255 if (exceptionState.hadException()) | 255 if (exceptionState.hadException()) |
| 256 return WebDOMEvent(); | 256 return WebDOMEvent(); |
| 257 return event; | 257 return event; |
| 258 } | 258 } |
| 259 | 259 |
| 260 WebReferrerPolicy WebDocument::referrerPolicy() const | 260 WebReferrerPolicy WebDocument::referrerPolicy() const |
| 261 { | 261 { |
| 262 return static_cast<WebReferrerPolicy>(constUnwrap<Document>()->referrerPolic y()); | 262 return static_cast<WebReferrerPolicy>(constUnwrap<Document>()->referrerPolic y()); |
| 263 } | 263 } |
| 264 | 264 |
| 265 WebString WebDocument::outgoingReferrer() | |
| 266 { | |
| 267 return WebString(unwrap<Document>()->outgoingReferrer()); | |
|
Mike West
2015/08/20 20:07:25
Nit: Can this be `constUnwrap`?
| |
| 268 } | |
| 269 | |
| 265 WebElement WebDocument::createElement(const WebString& tagName) | 270 WebElement WebDocument::createElement(const WebString& tagName) |
| 266 { | 271 { |
| 267 TrackExceptionState exceptionState; | 272 TrackExceptionState exceptionState; |
| 268 WebElement element(unwrap<Document>()->createElement(tagName, exceptionState )); | 273 WebElement element(unwrap<Document>()->createElement(tagName, exceptionState )); |
| 269 if (exceptionState.hadException()) | 274 if (exceptionState.hadException()) |
| 270 return WebElement(); | 275 return WebElement(); |
| 271 return element; | 276 return element; |
| 272 } | 277 } |
| 273 | 278 |
| 274 WebAXObject WebDocument::accessibilityObject() const | 279 WebAXObject WebDocument::accessibilityObject() const |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 345 m_private = elem; | 350 m_private = elem; |
| 346 return *this; | 351 return *this; |
| 347 } | 352 } |
| 348 | 353 |
| 349 WebDocument::operator PassRefPtrWillBeRawPtr<Document>() const | 354 WebDocument::operator PassRefPtrWillBeRawPtr<Document>() const |
| 350 { | 355 { |
| 351 return toDocument(m_private.get()); | 356 return toDocument(m_private.get()); |
| 352 } | 357 } |
| 353 | 358 |
| 354 } // namespace blink | 359 } // namespace blink |
| OLD | NEW |