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

Unified Diff: third_party/WebKit/Source/core/dom/Document.h

Issue 1778753003: Fire visibilitychange event on unload (behind the flag) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix tests Created 4 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
Index: third_party/WebKit/Source/core/dom/Document.h
diff --git a/third_party/WebKit/Source/core/dom/Document.h b/third_party/WebKit/Source/core/dom/Document.h
index c13baa73ea10ee32bdfa423596af15c784038257..6e6040015b3c9e699f7cf16a4c113a5facf8e083 100644
--- a/third_party/WebKit/Source/core/dom/Document.h
+++ b/third_party/WebKit/Source/core/dom/Document.h
@@ -485,10 +485,11 @@ public:
void dispatchUnloadEvents();
enum PageDismissalType {
- NoDismissal = 0,
- BeforeUnloadDismissal = 1,
- PageHideDismissal = 2,
- UnloadDismissal = 3
+ NoDismissal,
+ BeforeUnloadDismissal,
+ PageHideDismissal,
+ UnloadVisibilityChangeDismissal,
+ UnloadDismissal
};
PageDismissalType pageDismissalEventBeingDispatched() const;
@@ -874,6 +875,7 @@ public:
BeforeUnloadEventInProgress,
BeforeUnloadEventCompleted,
PageHideInProgress,
+ UnloadVisibilityChangeInProgress,
UnloadEventInProgress,
UnloadEventHandled
};

Powered by Google App Engine
This is Rietveld 408576698