#ifndef CHROME_BROWSER_RENDERER_CONTEXT_MENU_SPELLING_BUBBLE_MODEL_H_
#define CHROME_BROWSER_RENDERER_CONTEXT_MENU_SPELLING_BUBBLE_MODEL_H_
#include "base/basictypes.h"
#include "base/compiler_specific.h"
#include "chrome/browser/ui/confirm_bubble_model.h"
class Profile;
namespace content {
class WebContents;
}
class SpellingBubbleModel : public ConfirmBubbleModel {
public:
SpellingBubbleModel(Profile* profile,
content::WebContents* web_contents,
bool include_autocorrect);
virtual ~SpellingBubbleModel();
virtual base::string16 GetTitle() const OVERRIDE;
virtual base::string16 GetMessageText() const OVERRIDE;
virtual gfx::Image* GetIcon() const OVERRIDE;
virtual base::string16 GetButtonLabel(BubbleButton button) const OVERRIDE;
virtual void Accept() OVERRIDE;
virtual void Cancel() OVERRIDE;
virtual base::string16 GetLinkText() const OVERRIDE;
virtual void LinkClicked() OVERRIDE;
private:
void SetPref(bool enabled);
Profile* profile_;
content::WebContents* web_contents_;
bool include_autocorrect_;
DISALLOW_COPY_AND_ASSIGN(SpellingBubbleModel);
};
#endif