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

Unified Diff: public/web/WebFrame.h

Issue 217543005: Move dispatchBeforeUnloadEvent to WebFrame, part 1/3. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: fix 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/WebViewImpl.cpp ('k') | public/web/WebView.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/web/WebFrame.h
diff --git a/public/web/WebFrame.h b/public/web/WebFrame.h
index 8ff1fe27f58c25b50c59dde30094250c64de3e40..9155e084f11488892c0f9a3825a98c742684e1ed 100644
--- a/public/web/WebFrame.h
+++ b/public/web/WebFrame.h
@@ -241,6 +241,13 @@ public:
virtual WebPerformance performance() const = 0;
+ // Closing -------------------------------------------------------------
+
+ // Runs beforeunload handlers for this frame, returning false if a
+ // handler suppressed unloading.
+ virtual bool dispatchBeforeUnloadEvent() = 0;
+
+
// Scripting ----------------------------------------------------------
// Returns a NPObject corresponding to this frame's DOMWindow.
« no previous file with comments | « Source/web/WebViewImpl.cpp ('k') | public/web/WebView.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698