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

Unified Diff: chrome/browser/tab_contents/tab_contents_delegate.h

Issue 5610005: Makes instant run before unload listeners. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/chrome
Patch Set: Better comments Created 10 years 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: chrome/browser/tab_contents/tab_contents_delegate.h
diff --git a/chrome/browser/tab_contents/tab_contents_delegate.h b/chrome/browser/tab_contents/tab_contents_delegate.h
index 4f240982092d8dddd86b84883acead5aff87d2e6..162a120ab042db385d8b829551841541cd320f42 100644
--- a/chrome/browser/tab_contents/tab_contents_delegate.h
+++ b/chrome/browser/tab_contents/tab_contents_delegate.h
@@ -154,6 +154,9 @@ class TabContentsDelegate : public AutomationResourceRoutingDelegate {
virtual void ShowHtmlDialog(HtmlDialogUIDelegate* delegate,
gfx::NativeWindow parent_window);
+ // Invoked prior to showing before unload handler confirmation dialog.
Charlie Reis 2010/12/08 01:26:12 What about unload handlers? Or is that a TODO?
sky 2010/12/08 03:04:22 No, this is only invoked for 'before unload' handl
+ virtual void WillRunBeforeUnloadConfirm();
+
// Returns true if javascript dialogs and unload alerts are suppressed.
// Default is false.
virtual bool ShouldSuppressDialogs();

Powered by Google App Engine
This is Rietveld 408576698