#ifndef CHROME_BROWSER_UI_VIEWS_INFOBARS_CONFIRM_INFOBAR_H_
#define CHROME_BROWSER_UI_VIEWS_INFOBARS_CONFIRM_INFOBAR_H_
#include "base/basictypes.h"
#include "base/compiler_specific.h"
#include "chrome/browser/ui/views/infobars/infobar_view.h"
#include "ui/views/controls/link_listener.h"
class ConfirmInfoBarDelegate;
namespace views {
class Label;
}
class ConfirmInfoBar : public InfoBarView,
public views::LinkListener {
public:
explicit ConfirmInfoBar(scoped_ptr<ConfirmInfoBarDelegate> delegate);
private:
virtual ~ConfirmInfoBar();
virtual void Layout() OVERRIDE;
virtual void ViewHierarchyChanged(
const ViewHierarchyChangedDetails& details) OVERRIDE;
virtual void ButtonPressed(views::Button* sender,
const ui::Event& event) OVERRIDE;
virtual int ContentMinimumWidth() OVERRIDE;
virtual void LinkClicked(views::Link* source, int event_flags) OVERRIDE;
ConfirmInfoBarDelegate* GetDelegate();
int NonLabelWidth() const;
views::Label* label_;
views::LabelButton* ok_button_;
views::LabelButton* cancel_button_;
views::Link* link_;
DISALLOW_COPY_AND_ASSIGN(ConfirmInfoBar);
};
#endif