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

Unified Diff: Source/web/WebFrameImpl.cpp

Issue 217543005: Move dispatchBeforeUnloadEvent to WebFrame, part 1/3. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 9 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/web/WebFrameImpl.h ('k') | Source/web/WebViewImpl.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebFrameImpl.cpp
diff --git a/Source/web/WebFrameImpl.cpp b/Source/web/WebFrameImpl.cpp
index b77f1206377c41769aa70062332ad392838b994e..b94aeae5a34f132a6105fa7f27b09aa4700e78c2 100644
--- a/Source/web/WebFrameImpl.cpp
+++ b/Source/web/WebFrameImpl.cpp
@@ -777,6 +777,14 @@ WebPerformance WebFrameImpl::performance() const
return WebPerformance(&frame()->domWindow()->performance());
}
+bool WebFrameImpl::dispatchBeforeUnloadEvent()
+{
+ if (!frame())
+ return true;
+ return frame()->loader().shouldClose();
+}
+
+
abarth-chromium 2014/03/28 22:42:51 You've got an extra blank line here.
Avi (use Gerrit) 2014/03/29 01:30:24 Oops. Fixed.
NPObject* WebFrameImpl::windowObject() const
{
if (!frame())
« no previous file with comments | « Source/web/WebFrameImpl.h ('k') | Source/web/WebViewImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698