summaryrefslogtreecommitdiffstats
path: root/chrome/browser/infobar_delegate.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/infobar_delegate.h')
-rw-r--r--chrome/browser/infobar_delegate.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/chrome/browser/infobar_delegate.h b/chrome/browser/infobar_delegate.h
index 33b750a..f23dea6 100644
--- a/chrome/browser/infobar_delegate.h
+++ b/chrome/browser/infobar_delegate.h
@@ -113,11 +113,13 @@ class ConfirmInfoBarDelegate : public AlertInfoBarDelegate {
// returns "OK" for the OK button and "Cancel" for the Cancel button.
virtual std::wstring GetButtonLabel(InfoBarButton button) const;
- // Called when the OK button is pressed.
- virtual void Accept() {}
+ // Called when the OK button is pressed. If the function returns true, the
+ // InfoBarDelegate should be removed from the associated TabContents.
+ virtual bool Accept() { return true; }
- // Called when the Cancel button is pressed.
- virtual void Cancel() {}
+ // Called when the Cancel button is pressed. If the function returns true,
+ // the InfoBarDelegate should be removed from the associated TabContents.
+ virtual bool Cancel() { return true; }
// Overridden from InfoBarDelegate:
virtual InfoBar* CreateInfoBar();