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

Unified Diff: chrome/browser/translate/translate_manager.h

Issue 11644059: Change infobar creation to use a public static Create() method on the infobar delegate classes. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 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
Index: chrome/browser/translate/translate_manager.h
===================================================================
--- chrome/browser/translate/translate_manager.h (revision 175396)
+++ chrome/browser/translate/translate_manager.h (working copy)
@@ -93,9 +93,6 @@
base::TimeDelta::FromMilliseconds(delay_ms);
}
- // Convenience method to know if a tab is showing a translate infobar.
- static bool IsShowingTranslateInfobar(content::WebContents* web_contents);
-
// Returns true if the URL can be translated.
static bool IsTranslatableURL(const GURL& url);
@@ -174,11 +171,6 @@
// to translate it).
void RequestTranslateScript();
- // Shows the specified translate |infobar| in the given |tab|. If a current
- // translate infobar is showing, it just replaces it with the new one.
- void ShowInfoBar(content::WebContents* web_contents,
- TranslateInfoBarDelegate* infobar);
-
// Returns the language to translate to. The language returned is the
// first language found in the following list that is supported by the
// translation service:
@@ -187,10 +179,6 @@
// If no language is found then an empty string is returned.
static std::string GetTargetLanguage(PrefService* prefs);
- // Returns the translate info bar showing in |tab| or NULL if none is showing.
- static TranslateInfoBarDelegate* GetTranslateInfoBarDelegate(
- content::WebContents* web_contents);
-
content::NotificationRegistrar notification_registrar_;
// Each PrefChangeRegistrar only tracks a single PrefService, so a map from
« no previous file with comments | « chrome/browser/translate/translate_infobar_delegate.cc ('k') | chrome/browser/translate/translate_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698