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

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

Issue 240193003: Move Infobars core files to the Infobars component (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
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 {
public:
// 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/translate_browsertest.cc ('k') | chrome/browser/translate/translate_infobar_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698