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

Unified Diff: components/translate/core/browser/translate_infobar_delegate.h

Issue 284313008: Move TranslateInfoBarDelegate and OptionsMenuModel to the Translate component. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase + review comments Created 6 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: components/translate/core/browser/translate_infobar_delegate.h
diff --git a/chrome/browser/translate/translate_infobar_delegate.h b/components/translate/core/browser/translate_infobar_delegate.h
similarity index 94%
rename from chrome/browser/translate/translate_infobar_delegate.h
rename to components/translate/core/browser/translate_infobar_delegate.h
index 5248e32bf467c364deb56fd6b899212a74c1987e..cc6ca2d8f442ff510d5fe8ca9db386171311a768 100644
--- a/chrome/browser/translate/translate_infobar_delegate.h
+++ b/components/translate/core/browser/translate_infobar_delegate.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_TRANSLATE_TRANSLATE_INFOBAR_DELEGATE_H_
-#define CHROME_BROWSER_TRANSLATE_TRANSLATE_INFOBAR_DELEGATE_H_
+#ifndef COMPONENTS_TRANSLATE_CORE_BROWSER_TRANSLATE_INFOBAR_DELEGATE_H_
+#define COMPONENTS_TRANSLATE_CORE_BROWSER_TRANSLATE_INFOBAR_DELEGATE_H_
#include <string>
#include <utility>
@@ -189,14 +189,6 @@ class TranslateInfoBarDelegate : public infobars::InfoBarDelegate {
friend class TranslationInfoBarTest;
typedef std::pair<std::string, base::string16> LanguageNamePair;
- // Returns a translate infobar that owns |delegate|.
- static scoped_ptr<infobars::InfoBar> CreateInfoBar(
- scoped_ptr<TranslateInfoBarDelegate> delegate);
-
- // Gets the TranslateClient associated with this object.
- // May return NULL if the client has been destroyed.
- TranslateClient* GetTranslateClient();
-
// InfoBarDelegate:
virtual void InfoBarDismissed() OVERRIDE;
virtual int GetIconID() const OVERRIDE;
@@ -226,4 +218,4 @@ class TranslateInfoBarDelegate : public infobars::InfoBarDelegate {
DISALLOW_COPY_AND_ASSIGN(TranslateInfoBarDelegate);
};
-#endif // CHROME_BROWSER_TRANSLATE_TRANSLATE_INFOBAR_DELEGATE_H_
+#endif // COMPONENTS_TRANSLATE_CORE_BROWSER_TRANSLATE_INFOBAR_DELEGATE_H_
« no previous file with comments | « components/translate/core/browser/translate_client.h ('k') | components/translate/core/browser/translate_infobar_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698