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

Unified Diff: Source/core/dom/Event.h

Issue 22893051: Add support for BeforeUnloadEvent (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix test failures Created 7 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/dom/Document.cpp ('k') | Source/core/dom/Event.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Event.h
diff --git a/Source/core/dom/Event.h b/Source/core/dom/Event.h
index 7f705c42d7eb92af109a4f0c66cf63e374db1870..967c934465fde761adecbbb0a0291fb1751ed0f1 100644
--- a/Source/core/dom/Event.h
+++ b/Source/core/dom/Event.h
@@ -124,8 +124,8 @@ public:
// IE Extensions
EventTarget* srcElement() const { return target(); } // MSIE extension - "the object that fired the event"
- bool returnValue() const { return !defaultPrevented(); }
- void setReturnValue(bool returnValue) { setDefaultPrevented(!returnValue); }
+ bool legacyReturnValue() const { return !defaultPrevented(); }
+ void setLegacyReturnValue(bool returnValue) { setDefaultPrevented(!returnValue); }
Clipboard* clipboardData() const { return isClipboardEvent() ? clipboard() : 0; }
@@ -146,6 +146,8 @@ public:
virtual bool isClipboardEvent() const;
virtual bool isBeforeTextInsertedEvent() const;
+ virtual bool isBeforeUnloadEvent() const;
+
bool propagationStopped() const { return m_propagationStopped || m_immediatePropagationStopped; }
bool immediatePropagationStopped() const { return m_immediatePropagationStopped; }
@@ -169,9 +171,6 @@ public:
EventPath& eventPath() { return m_eventPath; }
PassRefPtr<NodeList> path() const;
- virtual bool storesResultAsString() const;
- virtual void storeResult(const String&);
-
virtual Clipboard* clipboard() const { return 0; }
bool isBeingDispatched() const { return eventPhase(); }
« no previous file with comments | « Source/core/dom/Document.cpp ('k') | Source/core/dom/Event.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698