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 466 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
477 // This is the DOM API document.close() | 477 // This is the DOM API document.close() |
478 void close(ExceptionState&); | 478 void close(ExceptionState&); |
479 // This is used internally and does not handle exceptions. | 479 // This is used internally and does not handle exceptions. |
480 void close(); | 480 void close(); |
481 // implicitClose() actually does the work of closing the input stream. | 481 // implicitClose() actually does the work of closing the input stream. |
482 void implicitClose(); | 482 void implicitClose(); |
483 | 483 |
484 bool dispatchBeforeUnloadEvent(ChromeClient&, bool isReload, bool& didAllowN
avigation); | 484 bool dispatchBeforeUnloadEvent(ChromeClient&, bool isReload, bool& didAllowN
avigation); |
485 void dispatchUnloadEvents(); | 485 void dispatchUnloadEvents(); |
486 | 486 |
| 487 // This enum must be kept consistent with kDismissals in |
| 488 // ChromeClientImpl::shouldOpenModalDialogDuringPageDismissal. |
487 enum PageDismissalType { | 489 enum PageDismissalType { |
488 NoDismissal = 0, | 490 NoDismissal, |
489 BeforeUnloadDismissal = 1, | 491 BeforeUnloadDismissal, |
490 PageHideDismissal = 2, | 492 PageHideDismissal, |
491 UnloadDismissal = 3 | 493 UnloadVisibilityChangeDismissal, |
| 494 UnloadDismissal |
492 }; | 495 }; |
493 PageDismissalType pageDismissalEventBeingDispatched() const; | 496 PageDismissalType pageDismissalEventBeingDispatched() const; |
494 | 497 |
495 void cancelParsing(); | 498 void cancelParsing(); |
496 | 499 |
497 void write(const SegmentedString& text, Document* enteredDocument = nullptr,
ExceptionState& = ASSERT_NO_EXCEPTION); | 500 void write(const SegmentedString& text, Document* enteredDocument = nullptr,
ExceptionState& = ASSERT_NO_EXCEPTION); |
498 void write(const String& text, Document* enteredDocument = nullptr, Exceptio
nState& = ASSERT_NO_EXCEPTION); | 501 void write(const String& text, Document* enteredDocument = nullptr, Exceptio
nState& = ASSERT_NO_EXCEPTION); |
499 void writeln(const String& text, Document* enteredDocument = nullptr, Except
ionState& = ASSERT_NO_EXCEPTION); | 502 void writeln(const String& text, Document* enteredDocument = nullptr, Except
ionState& = ASSERT_NO_EXCEPTION); |
500 void write(LocalDOMWindow*, const Vector<String>& text, ExceptionState&); | 503 void write(LocalDOMWindow*, const Vector<String>& text, ExceptionState&); |
501 void writeln(LocalDOMWindow*, const Vector<String>& text, ExceptionState&); | 504 void writeln(LocalDOMWindow*, const Vector<String>& text, ExceptionState&); |
(...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
867 | 870 |
868 void statePopped(PassRefPtr<SerializedScriptValue>); | 871 void statePopped(PassRefPtr<SerializedScriptValue>); |
869 | 872 |
870 enum LoadEventProgress { | 873 enum LoadEventProgress { |
871 LoadEventNotRun, | 874 LoadEventNotRun, |
872 LoadEventInProgress, | 875 LoadEventInProgress, |
873 LoadEventCompleted, | 876 LoadEventCompleted, |
874 BeforeUnloadEventInProgress, | 877 BeforeUnloadEventInProgress, |
875 BeforeUnloadEventCompleted, | 878 BeforeUnloadEventCompleted, |
876 PageHideInProgress, | 879 PageHideInProgress, |
| 880 UnloadVisibilityChangeInProgress, |
877 UnloadEventInProgress, | 881 UnloadEventInProgress, |
878 UnloadEventHandled | 882 UnloadEventHandled |
879 }; | 883 }; |
880 bool loadEventStillNeeded() const { return m_loadEventProgress == LoadEventN
otRun; } | 884 bool loadEventStillNeeded() const { return m_loadEventProgress == LoadEventN
otRun; } |
881 bool processingLoadEvent() const { return m_loadEventProgress == LoadEventIn
Progress; } | 885 bool processingLoadEvent() const { return m_loadEventProgress == LoadEventIn
Progress; } |
882 bool loadEventFinished() const { return m_loadEventProgress >= LoadEventComp
leted; } | 886 bool loadEventFinished() const { return m_loadEventProgress >= LoadEventComp
leted; } |
883 bool unloadStarted() const { return m_loadEventProgress >= PageHideInProgres
s; } | 887 bool unloadStarted() const { return m_loadEventProgress >= PageHideInProgres
s; } |
884 bool processingBeforeUnload() const { return m_loadEventProgress == BeforeUn
loadEventInProgress; } | 888 bool processingBeforeUnload() const { return m_loadEventProgress == BeforeUn
loadEventInProgress; } |
885 void suppressLoadEvent(); | 889 void suppressLoadEvent(); |
886 | 890 |
(...skipping 562 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1449 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); | 1453 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); |
1450 | 1454 |
1451 } // namespace blink | 1455 } // namespace blink |
1452 | 1456 |
1453 #ifndef NDEBUG | 1457 #ifndef NDEBUG |
1454 // Outside the WebCore namespace for ease of invocation from gdb. | 1458 // Outside the WebCore namespace for ease of invocation from gdb. |
1455 CORE_EXPORT void showLiveDocumentInstances(); | 1459 CORE_EXPORT void showLiveDocumentInstances(); |
1456 #endif | 1460 #endif |
1457 | 1461 |
1458 #endif // Document_h | 1462 #endif // Document_h |
OLD | NEW |