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

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

Issue 6883299: Hide translate infobar on programmatic navigation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Less invasive change Created 9 years, 7 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: chrome/browser/tab_contents/infobar_delegate.h
diff --git a/chrome/browser/tab_contents/infobar_delegate.h b/chrome/browser/tab_contents/infobar_delegate.h
index ea56a1e3cd55b9ccd2305d15b02b89ee2a8fe887..c26c747cb36d5a2619ef1bfa1b82c55c794ce6e9 100644
--- a/chrome/browser/tab_contents/infobar_delegate.h
+++ b/chrome/browser/tab_contents/infobar_delegate.h
@@ -57,6 +57,10 @@ class InfoBarDelegate {
virtual bool ShouldExpire(
const NavigationController::LoadCommittedDetails& details) const;
+ // Returning true indicates that this InfoBar should not be closed if the
+ // navigation is programmatic and not user-intiated.
+ virtual bool DoNotCloseOnProgrammaticNavigation() const;
+
// Called when the user clicks on the close button to dismiss the infobar.
virtual void InfoBarDismissed();
@@ -91,11 +95,11 @@ class InfoBarDelegate {
// be expired from |contents_|.
void StoreActiveEntryUniqueID(TabContents* contents);
- private:
// The unique id of the active NavigationEntry of the TabContents that we were
// opened for. Used to help expire on navigations.
int contents_unique_id_;
+ private:
DISALLOW_COPY_AND_ASSIGN(InfoBarDelegate);
};
« no previous file with comments | « no previous file | chrome/browser/tab_contents/infobar_delegate.cc » ('j') | chrome/browser/tab_contents/infobar_delegate.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698