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

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

Issue 2602003: Refactored the translate infobars. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Synced Created 10 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
« no previous file with comments | « chrome/browser/translate/languages_menu_model2.cc ('k') | chrome/browser/translate/options_menu_model.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/translate/options_menu_model.h
diff --git a/chrome/browser/translate/options_menu_model.h b/chrome/browser/translate/options_menu_model.h
index c6de2f31a8a755933c9750a6c451d0421e4890aa..b4a5a21b803090859404b93ab797e41ecbb4839b 100644
--- a/chrome/browser/translate/options_menu_model.h
+++ b/chrome/browser/translate/options_menu_model.h
@@ -8,16 +8,24 @@
#include "app/menus/simple_menu_model.h"
class TranslateInfoBarDelegate;
+class TranslateInfoBarDelegate2;
+class String16;
// A menu model that builds the contents of the options menu in the translate
// infobar. This menu has only one level (no submenus).
class OptionsMenuModel : public menus::SimpleMenuModel {
public:
- explicit OptionsMenuModel(menus::SimpleMenuModel::Delegate* menu_delegate,
- TranslateInfoBarDelegate* translate_delegate);
+ // TODO(jcivelli): remove this constructor once we have migrated to the new
+ // translate infobars.
+ OptionsMenuModel(menus::SimpleMenuModel::Delegate* menu_delegate,
+ TranslateInfoBarDelegate* translate_delegate);
+ OptionsMenuModel(menus::SimpleMenuModel::Delegate* menu_delegate,
+ TranslateInfoBarDelegate2* translate_delegate);
virtual ~OptionsMenuModel();
private:
+ void Init(const string16& original_language, const string16& target_language);
+
DISALLOW_COPY_AND_ASSIGN(OptionsMenuModel);
};
« no previous file with comments | « chrome/browser/translate/languages_menu_model2.cc ('k') | chrome/browser/translate/options_menu_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698