Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
| 4 * (C) 2001 Dirk Mueller (mueller@kde.org) | 4 * (C) 2001 Dirk Mueller (mueller@kde.org) |
| 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) | 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) |
| 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All r ights reserved. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All r ights reserved. |
| 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) | 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) |
| 8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) | 8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) |
| 9 * Copyright (C) 2011 Google Inc. All rights reserved. | 9 * Copyright (C) 2011 Google Inc. All rights reserved. |
| 10 * | 10 * |
| (...skipping 472 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 483 Document& axObjectCacheOwner() const; | 483 Document& axObjectCacheOwner() const; |
| 484 AXObjectCache* existingAXObjectCache() const; | 484 AXObjectCache* existingAXObjectCache() const; |
| 485 AXObjectCache* axObjectCache() const; | 485 AXObjectCache* axObjectCache() const; |
| 486 void clearAXObjectCache(); | 486 void clearAXObjectCache(); |
| 487 | 487 |
| 488 // to get visually ordered hebrew and arabic pages right | 488 // to get visually ordered hebrew and arabic pages right |
| 489 bool visuallyOrdered() const { return m_visuallyOrdered; } | 489 bool visuallyOrdered() const { return m_visuallyOrdered; } |
| 490 | 490 |
| 491 DocumentLoader* loader() const; | 491 DocumentLoader* loader() const; |
| 492 | 492 |
| 493 void open(Document* ownerDocument = nullptr, ExceptionState& = ASSERT_NO_EXC EPTION); | 493 // The open and close are used internally for dynamic insertion and does not handle exceptions. |
|
philipj_slow
2015/06/29 15:02:38
Sorry for the churn, but I meant this order of thi
Habib Virji
2015/06/29 15:25:21
Sorry for not getting the order.. Updates now as s
| |
| 494 void open(); | |
| 495 void close(); | |
| 496 | |
| 497 // This open() is based on the DOM API document.open() | |
| 498 void open(Document* ownerDocument, ExceptionState&); | |
| 494 PassRefPtrWillBeRawPtr<DocumentParser> implicitOpen(ParserSynchronizationPol icy); | 499 PassRefPtrWillBeRawPtr<DocumentParser> implicitOpen(ParserSynchronizationPol icy); |
| 495 | 500 |
| 496 // close() is the DOM API document.close() | 501 // This close() is based on the DOM API document.close() |
| 497 void close(ExceptionState& = ASSERT_NO_EXCEPTION); | 502 void close(ExceptionState&); |
| 498 // In some situations (see the code), we ignore document.close(). | 503 // In some situations (see the code), we ignore document.close(). |
| 499 // explicitClose() bypass these checks and actually tries to close the | 504 // explicitClose() bypass these checks and actually tries to close the |
| 500 // input stream. | 505 // input stream. |
| 501 void explicitClose(); | 506 void explicitClose(); |
| 502 // implicitClose() actually does the work of closing the input stream. | 507 // implicitClose() actually does the work of closing the input stream. |
| 503 void implicitClose(); | 508 void implicitClose(); |
| 504 | 509 |
| 505 bool dispatchBeforeUnloadEvent(ChromeClient&, bool&); | 510 bool dispatchBeforeUnloadEvent(ChromeClient&, bool&); |
| 506 void dispatchUnloadEvents(); | 511 void dispatchUnloadEvents(); |
| 507 | 512 |
| 508 enum PageDismissalType { | 513 enum PageDismissalType { |
| 509 NoDismissal = 0, | 514 NoDismissal = 0, |
| 510 BeforeUnloadDismissal = 1, | 515 BeforeUnloadDismissal = 1, |
| 511 PageHideDismissal = 2, | 516 PageHideDismissal = 2, |
| 512 UnloadDismissal = 3 | 517 UnloadDismissal = 3 |
| 513 }; | 518 }; |
| 514 PageDismissalType pageDismissalEventBeingDispatched() const; | 519 PageDismissalType pageDismissalEventBeingDispatched() const; |
| 515 | 520 |
| 516 void cancelParsing(); | 521 void cancelParsing(); |
| 517 | 522 |
| 518 void write(const SegmentedString& text, Document* ownerDocument = nullptr, E xceptionState& = ASSERT_NO_EXCEPTION); | 523 void write(const SegmentedString& text, Document* ownerDocument = nullptr, E xceptionState& = ASSERT_NO_EXCEPTION); |
| 519 void write(const String& text, Document* ownerDocument = nullptr, ExceptionS tate& = ASSERT_NO_EXCEPTION); | 524 void write(const String& text, Document* ownerDocument = nullptr, ExceptionS tate& = ASSERT_NO_EXCEPTION); |
| 520 void writeln(const String& text, Document* ownerDocument = nullptr, Exceptio nState& = ASSERT_NO_EXCEPTION); | 525 void writeln(const String& text, Document* ownerDocument = nullptr, Exceptio nState& = ASSERT_NO_EXCEPTION); |
| 526 void write(LocalDOMWindow*, const Vector<String>& text, ExceptionState& = AS SERT_NO_EXCEPTION); | |
|
philipj_slow
2015/06/29 15:02:38
I don't think these are ever called without the Ex
Habib Virji
2015/06/29 15:25:20
Done.
| |
| 527 void writeln(LocalDOMWindow*, const Vector<String>& text, ExceptionState& = ASSERT_NO_EXCEPTION); | |
| 521 | 528 |
| 522 bool wellFormed() const { return m_wellFormed; } | 529 bool wellFormed() const { return m_wellFormed; } |
| 523 | 530 |
| 524 const KURL& url() const { return m_url; } | 531 const KURL& url() const { return m_url; } |
| 525 void setURL(const KURL&); | 532 void setURL(const KURL&); |
| 526 | 533 |
| 527 // To understand how these concepts relate to one another, please see the | 534 // To understand how these concepts relate to one another, please see the |
| 528 // comments surrounding their declaration. | 535 // comments surrounding their declaration. |
| 529 const KURL& baseURL() const { return m_baseURL; } | 536 const KURL& baseURL() const { return m_baseURL; } |
| 530 void setBaseURLOverride(const KURL&); | 537 void setBaseURLOverride(const KURL&); |
| (...skipping 911 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1442 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); | 1449 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); |
| 1443 | 1450 |
| 1444 } // namespace blink | 1451 } // namespace blink |
| 1445 | 1452 |
| 1446 #ifndef NDEBUG | 1453 #ifndef NDEBUG |
| 1447 // Outside the WebCore namespace for ease of invocation from gdb. | 1454 // Outside the WebCore namespace for ease of invocation from gdb. |
| 1448 CORE_EXPORT void showLiveDocumentInstances(); | 1455 CORE_EXPORT void showLiveDocumentInstances(); |
| 1449 #endif | 1456 #endif |
| 1450 | 1457 |
| 1451 #endif // Document_h | 1458 #endif // Document_h |
| OLD | NEW |