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

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

Issue 8422006: Adds a bubble that asks a user whether to integrate the Spelling service. (Closed) Base URL: svn://chrome-svn/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
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(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_
OLDNEW
« no previous file with comments | « chrome/browser/tab_contents/spellchecker_submenu_observer.cc ('k') | chrome/browser/tab_contents/spelling_bubble_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698