#ifndef CHROME_BROWSER_UI_VIEWS_AUTOFILL_GENERATED_CREDIT_CARD_BUBBLE_VIEWS_H_
#define CHROME_BROWSER_UI_VIEWS_AUTOFILL_GENERATED_CREDIT_CARD_BUBBLE_VIEWS_H_
#include "base/basictypes.h"
#include "base/compiler_specific.h"
#include "base/memory/weak_ptr.h"
#include "chrome/browser/ui/autofill/generated_credit_card_bubble_view.h"
#include "ui/views/bubble/bubble_delegate.h"
#include "ui/views/controls/styled_label_listener.h"
namespace autofill {
class GeneratedCreditCardBubbleController;
class GeneratedCreditCardBubbleViews : public GeneratedCreditCardBubbleView,
public views::BubbleDelegateView,
public views::StyledLabelListener {
public:
virtual ~GeneratedCreditCardBubbleViews();
virtual void Show() OVERRIDE;
virtual void Hide() OVERRIDE;
virtual bool IsHiding() const OVERRIDE;
virtual gfx::Size GetPreferredSize() OVERRIDE;
virtual base::string16 GetWindowTitle() const OVERRIDE;
virtual void Init() OVERRIDE;
virtual void StyledLabelLinkClicked(const gfx::Range& range, int event_flags)
OVERRIDE;
private:
friend base::WeakPtr<GeneratedCreditCardBubbleView>
GeneratedCreditCardBubbleView::Create(
const base::WeakPtr<GeneratedCreditCardBubbleController>& controller);
explicit GeneratedCreditCardBubbleViews(
const base::WeakPtr<GeneratedCreditCardBubbleController>& controller);
base::WeakPtr<GeneratedCreditCardBubbleController> controller_;
base::WeakPtrFactory<GeneratedCreditCardBubbleViews> weak_ptr_factory_;
DISALLOW_COPY_AND_ASSIGN(GeneratedCreditCardBubbleViews);
};
}
#endif