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

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

Issue 10537090: TabContentsWrapper -> TabContents, part 32. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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
diff --git a/chrome/browser/translate/translate_manager.h b/chrome/browser/translate/translate_manager.h
index 2b9c9b2f4cbff2a704d02ceaa17a384294606555..ef473e03aa778202ffa1d17183e241930c14331f 100644
--- a/chrome/browser/translate/translate_manager.h
+++ b/chrome/browser/translate/translate_manager.h
@@ -94,7 +94,7 @@ class TranslateManager : public content::NotificationObserver,
}
// Convenience method to know if a tab is showing a translate infobar.
- static bool IsShowingTranslateInfobar(content::WebContents* tab);
+ static bool IsShowingTranslateInfobar(content::WebContents* web_contents);
// Returns true if the URL can be translated.
static bool IsTranslatableURL(const GURL& url);
@@ -142,7 +142,7 @@ class TranslateManager : public content::NotificationObserver,
// Starts the translation process on |tab| containing the page in the
// |page_lang| language.
- void InitiateTranslation(content::WebContents* tab,
+ void InitiateTranslation(content::WebContents* web_contents,
const std::string& page_lang);
// If the tab identified by |process_id| and |render_id| has been closed, this
@@ -158,12 +158,13 @@ class TranslateManager : public content::NotificationObserver,
const std::string& target_lang);
// Shows the after translate or error infobar depending on the details.
- void PageTranslated(content::WebContents* tab,
+ void PageTranslated(content::WebContents* web_contents,
PageTranslatedDetails* details);
// Returns true if the passed language has been configured by the user as an
// accept language.
- bool IsAcceptLanguage(content::WebContents* tab, const std::string& language);
+ bool IsAcceptLanguage(content::WebContents* web_contents,
+ const std::string& language);
// Initializes the |accept_languages_| language table based on the associated
// preference in |prefs|.
@@ -175,7 +176,7 @@ class TranslateManager : public content::NotificationObserver,
// 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* tab,
+ void ShowInfoBar(content::WebContents* web_contents,
TranslateInfoBarDelegate* infobar);
// Returns the language to translate to. The language returned is the
@@ -188,7 +189,7 @@ class TranslateManager : public content::NotificationObserver,
// Returns the translate info bar showing in |tab| or NULL if none is showing.
static TranslateInfoBarDelegate* GetTranslateInfoBarDelegate(
- content::WebContents* tab);
+ content::WebContents* web_contents);
content::NotificationRegistrar notification_registrar_;
« 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