Chromium Code Reviews (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out

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

Issue 240193003: Move Infobars core files to the Infobars component (Closed) Base URL: svn://
Patch Set: fix nib name on mac Created 6 years, 8 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_infobar_delegate.h
diff --git a/chrome/browser/translate/translate_infobar_delegate.h b/chrome/browser/translate/translate_infobar_delegate.h
index ff55e1fbe13be9e8a8ac84261e3b0a48612a03a9..16bfcd7f98b0cf0e91daa9276dcdbc2b6f689746 100644
--- a/chrome/browser/translate/translate_infobar_delegate.h
+++ b/chrome/browser/translate/translate_infobar_delegate.h
@@ -11,8 +11,8 @@
#include "base/logging.h"
#include "base/memory/scoped_ptr.h"
-#include "chrome/browser/infobars/infobar_delegate.h"
#include "chrome/browser/translate/translate_tab_helper.h"
+#include "components/infobars/core/infobar_delegate.h"
#include "components/translate/core/browser/translate_prefs.h"
#include "components/translate/core/browser/translate_ui_delegate.h"
#include "components/translate/core/common/translate_constants.h"
@@ -20,7 +20,7 @@
class PrefService;
-class TranslateInfoBarDelegate : public InfoBarDelegate {
+class TranslateInfoBarDelegate : public infobars::InfoBarDelegate {
// The types of background color animations.
enum BackgroundAnimationType {
@@ -183,13 +183,13 @@ class TranslateInfoBarDelegate : public InfoBarDelegate {
typedef std::pair<std::string, base::string16> LanguageNamePair;
// Returns a translate infobar that owns |delegate|.
- static scoped_ptr<InfoBar> CreateInfoBar(
+ static scoped_ptr<infobars::InfoBar> CreateInfoBar(
scoped_ptr<TranslateInfoBarDelegate> delegate);
// InfoBarDelegate:
virtual void InfoBarDismissed() OVERRIDE;
virtual int GetIconID() const OVERRIDE;
- virtual InfoBarDelegate::Type GetInfoBarType() const OVERRIDE;
+ virtual infobars::InfoBarDelegate::Type GetInfoBarType() const OVERRIDE;
virtual bool ShouldExpire(const NavigationDetails& details) const OVERRIDE;
virtual TranslateInfoBarDelegate* AsTranslateInfoBarDelegate() OVERRIDE;
« no previous file with comments | « chrome/browser/translate/ ('k') | chrome/browser/translate/ » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698