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

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

Issue 12222003: Rebase ConfirmBubbleViews on DialogDelegateView. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync and rebase to retry CQ. Created 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/tab_contents/spelling_bubble_model.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "chrome/browser/ui/confirm_bubble_model.h" 10 #include "chrome/browser/ui/confirm_bubble_model.h"
(...skipping 17 matching lines...) Expand all
28 virtual string16 GetTitle() const OVERRIDE; 28 virtual string16 GetTitle() const OVERRIDE;
29 virtual string16 GetMessageText() const OVERRIDE; 29 virtual string16 GetMessageText() const OVERRIDE;
30 virtual gfx::Image* GetIcon() const OVERRIDE; 30 virtual gfx::Image* GetIcon() const OVERRIDE;
31 virtual string16 GetButtonLabel(BubbleButton button) const OVERRIDE; 31 virtual string16 GetButtonLabel(BubbleButton button) const OVERRIDE;
32 virtual void Accept() OVERRIDE; 32 virtual void Accept() OVERRIDE;
33 virtual void Cancel() OVERRIDE; 33 virtual void Cancel() OVERRIDE;
34 virtual string16 GetLinkText() const OVERRIDE; 34 virtual string16 GetLinkText() const OVERRIDE;
35 virtual void LinkClicked() OVERRIDE; 35 virtual void LinkClicked() OVERRIDE;
36 36
37 private: 37 private:
38 // Set the profile preferences to enable or disable the feature.
39 void SetPref(bool enabled);
40
38 Profile* profile_; 41 Profile* profile_;
39 content::WebContents* web_contents_; 42 content::WebContents* web_contents_;
40 bool include_autocorrect_; 43 bool include_autocorrect_;
41 44
42 DISALLOW_COPY_AND_ASSIGN(SpellingBubbleModel); 45 DISALLOW_COPY_AND_ASSIGN(SpellingBubbleModel);
43 }; 46 };
44 47
45 #endif // CHROME_BROWSER_TAB_CONTENTS_SPELLING_BUBBLE_MODEL_H_ 48 #endif // CHROME_BROWSER_TAB_CONTENTS_SPELLING_BUBBLE_MODEL_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/tab_contents/spelling_bubble_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698