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

Unified Diff: chrome/browser/tab_contents/spelling_bubble_model.h

Issue 178193005: Move render_view_context_menu.* related files out of tab_contents. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: context_menu->renderer_context_menu for disambiguation Created 6 years, 10 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
diff --git a/chrome/browser/tab_contents/spelling_bubble_model.h b/chrome/browser/tab_contents/spelling_bubble_model.h
deleted file mode 100644
index 149bcaab19042bc9dbcb41a8748dc7ecc0e4794e..0000000000000000000000000000000000000000
--- a/chrome/browser/tab_contents/spelling_bubble_model.h
+++ /dev/null
@@ -1,48 +0,0 @@
-// Copyright (c) 2012 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_
-
-#include "base/basictypes.h"
-#include "base/compiler_specific.h"
-#include "chrome/browser/ui/confirm_bubble_model.h"
-
-class Profile;
-
-namespace content {
-class WebContents;
-}
-
-// 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:
- SpellingBubbleModel(Profile* profile,
- content::WebContents* web_contents,
- bool include_autocorrect);
- virtual ~SpellingBubbleModel();
-
- // ConfirmBubbleModel implementation.
- virtual base::string16 GetTitle() const OVERRIDE;
- virtual base::string16 GetMessageText() const OVERRIDE;
- virtual gfx::Image* GetIcon() const OVERRIDE;
- virtual base::string16 GetButtonLabel(BubbleButton button) const OVERRIDE;
- virtual void Accept() OVERRIDE;
- virtual void Cancel() OVERRIDE;
- virtual base::string16 GetLinkText() const OVERRIDE;
- virtual void LinkClicked() OVERRIDE;
-
- private:
- // Set the profile preferences to enable or disable the feature.
- void SetPref(bool enabled);
-
- Profile* profile_;
- content::WebContents* web_contents_;
- bool include_autocorrect_;
-
- DISALLOW_COPY_AND_ASSIGN(SpellingBubbleModel);
-};
-
-#endif // CHROME_BROWSER_TAB_CONTENTS_SPELLING_BUBBLE_MODEL_H_
« no previous file with comments | « chrome/browser/tab_contents/spellchecker_submenu_observer_mac.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