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

Unified 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, 2 months 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/tab_contents/spelling_bubble_model.h
===================================================================
--- chrome/browser/tab_contents/spelling_bubble_model.h (revision 0)
+++ chrome/browser/tab_contents/spelling_bubble_model.h (revision 0)
@@ -0,0 +1,34 @@
+// 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;
+
+ private:
+ Profile* profile_;
+};
+
+#endif // CHROME_BROWSER_TAB_CONTENTS_SPELLING_BUBBLE_MODEL_H_
Property changes on: chrome\browser\tab_contents\spelling_bubble_model.h
___________________________________________________________________
Added: svn:eol-style
+ LF
« 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