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

Unified Diff: Source/core/dom/BeforeUnloadEvent.cpp

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/BeforeUnloadEvent.h ('k') | Source/core/dom/BeforeUnloadEvent.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/BeforeUnloadEvent.cpp
diff --git a/Source/core/dom/BeforeUnloadEvent.cpp b/Source/core/dom/BeforeUnloadEvent.cpp
index 25f7b0e99c1be90f85edfd7b23aab1c806b84555..a22374c0619eae43160e3d6f50a2538d86996c4f 100644
--- a/Source/core/dom/BeforeUnloadEvent.cpp
+++ b/Source/core/dom/BeforeUnloadEvent.cpp
@@ -1,8 +1,9 @@
-/**
+/*
* Copyright (C) 2001 Peter Kelly (pmk@post.com)
* Copyright (C) 2001 Tobias Anton (anton@stud.fbi.fh-darmstadt.de)
* Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com)
* Copyright (C) 2003, 2005, 2006 Apple Computer, Inc.
+ * Copyright (C) 2013 Samsung Electronics.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
@@ -30,20 +31,16 @@ namespace WebCore {
BeforeUnloadEvent::BeforeUnloadEvent()
: Event(eventNames().beforeunloadEvent, false, true)
{
+ ScriptWrappable::init(this);
}
BeforeUnloadEvent::~BeforeUnloadEvent()
{
}
-bool BeforeUnloadEvent::storesResultAsString() const
+bool BeforeUnloadEvent::isBeforeUnloadEvent() const
{
return true;
}
-void BeforeUnloadEvent::storeResult(const String& s)
-{
- m_result = s;
-}
-
} // namespace WebCore
« no previous file with comments | « Source/core/dom/BeforeUnloadEvent.h ('k') | Source/core/dom/BeforeUnloadEvent.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698