Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(253)

Side by Side Diff: Source/core/dom/Document.h

Issue 1176013002: Move attributes and methods from HTMLDocument to Document (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Updated to latest master Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/bindings/core/v8/custom/custom.gypi ('k') | Source/core/dom/Document.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 474 matching lines...) Expand 10 before | Expand all | Expand 10 after
485 Document& axObjectCacheOwner() const; 485 Document& axObjectCacheOwner() const;
486 AXObjectCache* existingAXObjectCache() const; 486 AXObjectCache* existingAXObjectCache() const;
487 AXObjectCache* axObjectCache() const; 487 AXObjectCache* axObjectCache() const;
488 void clearAXObjectCache(); 488 void clearAXObjectCache();
489 489
490 // to get visually ordered hebrew and arabic pages right 490 // to get visually ordered hebrew and arabic pages right
491 bool visuallyOrdered() const { return m_visuallyOrdered; } 491 bool visuallyOrdered() const { return m_visuallyOrdered; }
492 492
493 DocumentLoader* loader() const; 493 DocumentLoader* loader() const;
494 494
495 void open(Document* ownerDocument = nullptr, ExceptionState& = ASSERT_NO_EXC EPTION); 495 // This is the DOM API document.open()
496 void open(Document* ownerDocument, ExceptionState&);
497 // This is used internally and does not handle exceptions.
498 void open();
496 PassRefPtrWillBeRawPtr<DocumentParser> implicitOpen(ParserSynchronizationPol icy); 499 PassRefPtrWillBeRawPtr<DocumentParser> implicitOpen(ParserSynchronizationPol icy);
497 500
498 // close() is the DOM API document.close() 501 // This is the DOM API document.close()
499 void close(ExceptionState& = ASSERT_NO_EXCEPTION); 502 void close(ExceptionState&);
503 // This is used internally and does not handle exceptions.
504 void close();
500 // In some situations (see the code), we ignore document.close(). 505 // In some situations (see the code), we ignore document.close().
501 // explicitClose() bypass these checks and actually tries to close the 506 // explicitClose() bypass these checks and actually tries to close the
502 // input stream. 507 // input stream.
503 void explicitClose(); 508 void explicitClose();
504 // implicitClose() actually does the work of closing the input stream. 509 // implicitClose() actually does the work of closing the input stream.
505 void implicitClose(); 510 void implicitClose();
506 511
507 bool dispatchBeforeUnloadEvent(ChromeClient&, bool&); 512 bool dispatchBeforeUnloadEvent(ChromeClient&, bool&);
508 void dispatchUnloadEvents(); 513 void dispatchUnloadEvents();
509 514
510 enum PageDismissalType { 515 enum PageDismissalType {
511 NoDismissal = 0, 516 NoDismissal = 0,
512 BeforeUnloadDismissal = 1, 517 BeforeUnloadDismissal = 1,
513 PageHideDismissal = 2, 518 PageHideDismissal = 2,
514 UnloadDismissal = 3 519 UnloadDismissal = 3
515 }; 520 };
516 PageDismissalType pageDismissalEventBeingDispatched() const; 521 PageDismissalType pageDismissalEventBeingDispatched() const;
517 522
518 void cancelParsing(); 523 void cancelParsing();
519 524
520 void write(const SegmentedString& text, Document* ownerDocument = nullptr, E xceptionState& = ASSERT_NO_EXCEPTION); 525 void write(const SegmentedString& text, Document* ownerDocument = nullptr, E xceptionState& = ASSERT_NO_EXCEPTION);
521 void write(const String& text, Document* ownerDocument = nullptr, ExceptionS tate& = ASSERT_NO_EXCEPTION); 526 void write(const String& text, Document* ownerDocument = nullptr, ExceptionS tate& = ASSERT_NO_EXCEPTION);
522 void writeln(const String& text, Document* ownerDocument = nullptr, Exceptio nState& = ASSERT_NO_EXCEPTION); 527 void writeln(const String& text, Document* ownerDocument = nullptr, Exceptio nState& = ASSERT_NO_EXCEPTION);
528 void write(LocalDOMWindow*, const Vector<String>& text, ExceptionState&);
529 void writeln(LocalDOMWindow*, const Vector<String>& text, ExceptionState&);
523 530
524 bool wellFormed() const { return m_wellFormed; } 531 bool wellFormed() const { return m_wellFormed; }
525 532
526 const KURL& url() const { return m_url; } 533 const KURL& url() const { return m_url; }
527 void setURL(const KURL&); 534 void setURL(const KURL&);
528 535
529 // To understand how these concepts relate to one another, please see the 536 // To understand how these concepts relate to one another, please see the
530 // comments surrounding their declaration. 537 // comments surrounding their declaration.
531 const KURL& baseURL() const { return m_baseURL; } 538 const KURL& baseURL() const { return m_baseURL; }
532 void setBaseURLOverride(const KURL&); 539 void setBaseURLOverride(const KURL&);
(...skipping 913 matching lines...) Expand 10 before | Expand all | Expand 10 after
1446 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); 1453 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true);
1447 1454
1448 } // namespace blink 1455 } // namespace blink
1449 1456
1450 #ifndef NDEBUG 1457 #ifndef NDEBUG
1451 // Outside the WebCore namespace for ease of invocation from gdb. 1458 // Outside the WebCore namespace for ease of invocation from gdb.
1452 CORE_EXPORT void showLiveDocumentInstances(); 1459 CORE_EXPORT void showLiveDocumentInstances();
1453 #endif 1460 #endif
1454 1461
1455 #endif // Document_h 1462 #endif // Document_h
OLDNEW
« no previous file with comments | « Source/bindings/core/v8/custom/custom.gypi ('k') | Source/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698