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