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 void open(Document* ownerDocument, ExceptionState&); |
| 494 PassRefPtrWillBeRawPtr<DocumentParser> implicitOpen(ParserSynchronizationPol icy); | 494 PassRefPtrWillBeRawPtr<DocumentParser> implicitOpen(ParserSynchronizationPol icy); |
| 495 // This is used for internal purpose and does not handle exceptions. | |
|
philipj_slow
2015/06/24 11:52:19
s/for internal purpose/internally/
I think also m
Habib Virji
2015/06/25 13:09:47
Done.
| |
| 496 void open(); | |
| 495 | 497 |
| 496 // close() is the DOM API document.close() | 498 // close() is the DOM API document.close() |
| 497 void close(ExceptionState& = ASSERT_NO_EXCEPTION); | 499 void close(ExceptionState&); |
| 500 // This is used for internal purpose and does not handle exceptions. | |
| 501 void close(); | |
| 498 // In some situations (see the code), we ignore document.close(). | 502 // In some situations (see the code), we ignore document.close(). |
| 499 // explicitClose() bypass these checks and actually tries to close the | 503 // explicitClose() bypass these checks and actually tries to close the |
| 500 // input stream. | 504 // input stream. |
| 501 void explicitClose(); | 505 void explicitClose(); |
| 502 // implicitClose() actually does the work of closing the input stream. | 506 // implicitClose() actually does the work of closing the input stream. |
| 503 void implicitClose(); | 507 void implicitClose(); |
| 504 | 508 |
| 505 bool dispatchBeforeUnloadEvent(ChromeClient&, bool&); | 509 bool dispatchBeforeUnloadEvent(ChromeClient&, bool&); |
| 506 void dispatchUnloadEvents(); | 510 void dispatchUnloadEvents(); |
| 507 | 511 |
| 508 enum PageDismissalType { | 512 enum PageDismissalType { |
| 509 NoDismissal = 0, | 513 NoDismissal = 0, |
| 510 BeforeUnloadDismissal = 1, | 514 BeforeUnloadDismissal = 1, |
| 511 PageHideDismissal = 2, | 515 PageHideDismissal = 2, |
| 512 UnloadDismissal = 3 | 516 UnloadDismissal = 3 |
| 513 }; | 517 }; |
| 514 PageDismissalType pageDismissalEventBeingDispatched() const; | 518 PageDismissalType pageDismissalEventBeingDispatched() const; |
| 515 | 519 |
| 516 void cancelParsing(); | 520 void cancelParsing(); |
| 517 | 521 |
| 518 void write(const SegmentedString& text, Document* ownerDocument = nullptr, E xceptionState& = ASSERT_NO_EXCEPTION); | 522 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); | 523 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); | 524 void writeln(const String& text, Document* ownerDocument = nullptr, Exceptio nState& = ASSERT_NO_EXCEPTION); |
| 525 void write(LocalDOMWindow*, const Vector<String>& text, ExceptionState& = AS SERT_NO_EXCEPTION); | |
| 526 void writeln(LocalDOMWindow*, const Vector<String>& text, ExceptionState& = ASSERT_NO_EXCEPTION); | |
| 521 | 527 |
| 522 bool wellFormed() const { return m_wellFormed; } | 528 bool wellFormed() const { return m_wellFormed; } |
| 523 | 529 |
| 524 const KURL& url() const { return m_url; } | 530 const KURL& url() const { return m_url; } |
| 525 void setURL(const KURL&); | 531 void setURL(const KURL&); |
| 526 | 532 |
| 527 // To understand how these concepts relate to one another, please see the | 533 // To understand how these concepts relate to one another, please see the |
| 528 // comments surrounding their declaration. | 534 // comments surrounding their declaration. |
| 529 const KURL& baseURL() const { return m_baseURL; } | 535 const KURL& baseURL() const { return m_baseURL; } |
| 530 void setBaseURLOverride(const KURL&); | 536 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); | 1448 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); |
| 1443 | 1449 |
| 1444 } // namespace blink | 1450 } // namespace blink |
| 1445 | 1451 |
| 1446 #ifndef NDEBUG | 1452 #ifndef NDEBUG |
| 1447 // Outside the WebCore namespace for ease of invocation from gdb. | 1453 // Outside the WebCore namespace for ease of invocation from gdb. |
| 1448 CORE_EXPORT void showLiveDocumentInstances(); | 1454 CORE_EXPORT void showLiveDocumentInstances(); |
| 1449 #endif | 1455 #endif |
| 1450 | 1456 |
| 1451 #endif // Document_h | 1457 #endif // Document_h |
| OLD | NEW |