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

Unified Diff: public/web/WebFrameClient.h

Issue 861773003: Inform the WebFrameClient of BeforeUnload/Unload handlers (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Addressed Nate's comments Created 5 years, 11 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
« public/platform/Platform.h ('K') | « public/platform/Platform.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/web/WebFrameClient.h
diff --git a/public/web/WebFrameClient.h b/public/web/WebFrameClient.h
index 62641d2a76f6e397b5b148989bc3f621fb8c0ce5..0aa6f892a9849891e0b3d6763e96b4b654160dce 100644
--- a/public/web/WebFrameClient.h
+++ b/public/web/WebFrameClient.h
@@ -611,6 +611,19 @@ public:
virtual bool enterFullscreen() { return false; }
virtual bool exitFullscreen() { return false; }
+
+ // Sudden termination --------------------------------------------------
+
+ // Called when an element preventing the sudden termination of the frame is
+ // added or removed. |variation| is the number of elements added, removed if
+ // it is negative. |type| is the type of element (BeforeUnload handler,
+ // Unload handler).
+ enum SuddenTerminationDisablerType {
+ BeforeUnloadHandler,
+ UnloadHandler,
+ };
+ virtual void suddenTerminationDisablerChanged(int variation, SuddenTerminationDisablerType) { }
+
protected:
virtual ~WebFrameClient() { }
};
« public/platform/Platform.h ('K') | « public/platform/Platform.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698