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

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: 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 472 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 // This is the DOM API document.open()
494 void open(Document* ownerDocument, ExceptionState&);
495 // This is used internally and does not handle exceptions.
496 void open();
494 PassRefPtrWillBeRawPtr<DocumentParser> implicitOpen(ParserSynchronizationPol icy); 497 PassRefPtrWillBeRawPtr<DocumentParser> implicitOpen(ParserSynchronizationPol icy);
495 498
496 // close() is the DOM API document.close() 499 // This close() is based on the DOM API document.close()
philipj_slow 2015/06/29 19:39:32 "This is the DOM API document.close()" for consist
497 void close(ExceptionState& = ASSERT_NO_EXCEPTION); 500 void close(ExceptionState&);
501 // This is used internally and does not handle exceptions.
502 void close();
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&);
527 void writeln(LocalDOMWindow*, const Vector<String>& text, ExceptionState&);
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
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
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