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

Unified Diff: public/web/WebFrameClient.h

Issue 874283003: Have WebFrameClient::suddenTerminationDisablerChanged return a boolean (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed nits 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
« no previous file with comments | « Source/web/FrameLoaderClientImpl.cpp ('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 6306ce3209c06bd256b31647469325c43fe9c04a..943fffb8c5b960b0b50700f19480df174976fa47 100644
--- a/public/web/WebFrameClient.h
+++ b/public/web/WebFrameClient.h
@@ -617,15 +617,14 @@ public:
// 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).
+ // Called when elements preventing the sudden termination of the frame
+ // become present or stop being present. |type| is the type of element
+ // (BeforeUnload handler, Unload handler).
enum SuddenTerminationDisablerType {
BeforeUnloadHandler,
UnloadHandler,
};
- virtual void suddenTerminationDisablerChanged(int variation, SuddenTerminationDisablerType) { }
+ virtual void suddenTerminationDisablerChanged(bool present, SuddenTerminationDisablerType) { }
protected:
virtual ~WebFrameClient() { }
« no previous file with comments | « Source/web/FrameLoaderClientImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698