#ifndef CHROME_BROWSER_UI_VIEWS_INFOBARS_BEFORE_TRANSLATE_INFOBAR_H_
#define CHROME_BROWSER_UI_VIEWS_INFOBARS_BEFORE_TRANSLATE_INFOBAR_H_
#include "chrome/browser/ui/views/infobars/translate_infobar_base.h"
#include "ui/views/controls/button/menu_button_listener.h"
class OptionsMenuModel;
class TranslateInfoBarDelegate;
class TranslateLanguageMenuModel;
namespace views {
class MenuButton;
}
class BeforeTranslateInfoBar : public TranslateInfoBarBase,
public views::MenuButtonListener {
public:
explicit BeforeTranslateInfoBar(
scoped_ptr<TranslateInfoBarDelegate> delegate);
private:
virtual ~BeforeTranslateInfoBar();
virtual void Layout() OVERRIDE;
virtual void ButtonPressed(views::Button* sender,
const ui::Event& event) OVERRIDE;
virtual void ViewHierarchyChanged(
const ViewHierarchyChangedDetails& details) OVERRIDE;
virtual int ContentMinimumWidth() OVERRIDE;
virtual void OnMenuButtonClicked(views::View* source,
const gfx::Point& point) OVERRIDE;
int NonLabelWidth() const;
views::Label* label_1_;
views::Label* label_2_;
views::MenuButton* language_menu_button_;
views::LabelButton* accept_button_;
views::LabelButton* deny_button_;
views::LabelButton* never_translate_button_;
views::LabelButton* always_translate_button_;
views::MenuButton* options_menu_button_;
scoped_ptr<TranslateLanguageMenuModel> language_menu_model_;
scoped_ptr<OptionsMenuModel> options_menu_model_;
DISALLOW_COPY_AND_ASSIGN(BeforeTranslateInfoBar);
};
#endif