summaryrefslogtreecommitdiffstats
path: root/WebCore/dom/ActiveDOMObject.h
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/dom/ActiveDOMObject.h')
-rw-r--r--WebCore/dom/ActiveDOMObject.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/WebCore/dom/ActiveDOMObject.h b/WebCore/dom/ActiveDOMObject.h
index 73b52d5..a6ec7d3 100644
--- a/WebCore/dom/ActiveDOMObject.h
+++ b/WebCore/dom/ActiveDOMObject.h
@@ -48,8 +48,13 @@ namespace WebCore {
// However, 'suspend' can be called even if canSuspend() would return 'false'. That
// happens in step-by-step JS debugging for example - in this case it would be incorrect
// to stop the object. Exact semantics of suspend is up to the object then.
+ enum ReasonForSuspension {
+ JavaScriptDebuggerPaused,
+ WillShowDialog,
+ DocumentWillBecomeInactive
+ };
virtual bool canSuspend() const;
- virtual void suspend();
+ virtual void suspend(ReasonForSuspension);
virtual void resume();
virtual void stop();