blob: 82f1a35c46d0e857a4860361dcbc54da2ebfefc1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_TAB_CONTENTS_SPELLING_BUBBLE_MODEL_H_
#define CHROME_BROWSER_TAB_CONTENTS_SPELLING_BUBBLE_MODEL_H_
#pragma once
#include "base/compiler_specific.h"
#include "base/string16.h"
#include "chrome/browser/ui/confirm_bubble_model.h"
class Profile;
// A class that implements a bubble menu shown when we confirm a user allows
// integrating the spelling service of Google to Chrome.
class SpellingBubbleModel : public ConfirmBubbleModel {
public:
explicit SpellingBubbleModel(Profile* profile);
virtual ~SpellingBubbleModel();
// ConfirmBubbleModel implementation.
virtual string16 GetTitle() const OVERRIDE;
virtual string16 GetMessageText() const OVERRIDE;
virtual gfx::Image* GetIcon() const OVERRIDE;
virtual string16 GetButtonLabel(BubbleButton button) const OVERRIDE;
virtual void Accept() OVERRIDE;
virtual void Cancel() OVERRIDE;
virtual string16 GetLinkText() const OVERRIDE;
virtual void LinkClicked() OVERRIDE;
private:
Profile* profile_;
};
#endif // CHROME_BROWSER_TAB_CONTENTS_SPELLING_BUBBLE_MODEL_H_
|