Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(222)

Side by Side Diff: chrome/browser/tab_contents/spelling_bubble_model.h

Issue 8561024: Add a "Learn More" link to the Spelling bubble. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_TAB_CONTENTS_SPELLING_BUBBLE_MODEL_H_ 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_SPELLING_BUBBLE_MODEL_H_
6 #define CHROME_BROWSER_TAB_CONTENTS_SPELLING_BUBBLE_MODEL_H_ 6 #define CHROME_BROWSER_TAB_CONTENTS_SPELLING_BUBBLE_MODEL_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/string16.h" 10 #include "base/string16.h"
11 #include "chrome/browser/ui/confirm_bubble_model.h" 11 #include "chrome/browser/ui/confirm_bubble_model.h"
12 12
13 class Profile; 13 class Profile;
14 14
15 // A class that implements a bubble menu shown when we confirm a user allows 15 // A class that implements a bubble menu shown when we confirm a user allows
16 // integrating the spelling service of Google to Chrome. 16 // integrating the spelling service of Google to Chrome.
17 class SpellingBubbleModel : public ConfirmBubbleModel { 17 class SpellingBubbleModel : public ConfirmBubbleModel {
18 public: 18 public:
19 explicit SpellingBubbleModel(Profile* profile); 19 explicit SpellingBubbleModel(Profile* profile);
20 virtual ~SpellingBubbleModel(); 20 virtual ~SpellingBubbleModel();
21 21
22 // ConfirmBubbleModel implementation. 22 // ConfirmBubbleModel implementation.
23 virtual string16 GetTitle() const OVERRIDE; 23 virtual string16 GetTitle() const OVERRIDE;
24 virtual string16 GetMessageText() const OVERRIDE; 24 virtual string16 GetMessageText() const OVERRIDE;
25 virtual gfx::Image* GetIcon() const OVERRIDE; 25 virtual gfx::Image* GetIcon() const OVERRIDE;
26 virtual string16 GetButtonLabel(BubbleButton button) const OVERRIDE; 26 virtual string16 GetButtonLabel(BubbleButton button) const OVERRIDE;
27 virtual void Accept() OVERRIDE; 27 virtual void Accept() OVERRIDE;
28 virtual void Cancel() OVERRIDE; 28 virtual void Cancel() OVERRIDE;
29 virtual string16 GetLinkText() const OVERRIDE;
30 virtual void LinkClicked() OVERRIDE;
29 31
30 private: 32 private:
31 Profile* profile_; 33 Profile* profile_;
32 }; 34 };
33 35
34 #endif // CHROME_BROWSER_TAB_CONTENTS_SPELLING_BUBBLE_MODEL_H_ 36 #endif // CHROME_BROWSER_TAB_CONTENTS_SPELLING_BUBBLE_MODEL_H_
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/tab_contents/spelling_bubble_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698