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

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

Issue 1361253002: Separate the URL of an infobar link with clicking on it. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: pkasting Created 5 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_RENDERER_CONTEXT_MENU_SPELLING_BUBBLE_MODEL_H_ 5 #ifndef CHROME_BROWSER_RENDERER_CONTEXT_MENU_SPELLING_BUBBLE_MODEL_H_
6 #define CHROME_BROWSER_RENDERER_CONTEXT_MENU_SPELLING_BUBBLE_MODEL_H_ 6 #define CHROME_BROWSER_RENDERER_CONTEXT_MENU_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 13 matching lines...) Expand all
24 bool include_autocorrect); 24 bool include_autocorrect);
25 ~SpellingBubbleModel() override; 25 ~SpellingBubbleModel() override;
26 26
27 // ConfirmBubbleModel implementation. 27 // ConfirmBubbleModel implementation.
28 base::string16 GetTitle() const override; 28 base::string16 GetTitle() const override;
29 base::string16 GetMessageText() const override; 29 base::string16 GetMessageText() const override;
30 base::string16 GetButtonLabel(BubbleButton button) const override; 30 base::string16 GetButtonLabel(BubbleButton button) const override;
31 void Accept() override; 31 void Accept() override;
32 void Cancel() override; 32 void Cancel() override;
33 base::string16 GetLinkText() const override; 33 base::string16 GetLinkText() const override;
34 GURL GetLinkURL() const override;
34 void LinkClicked() override; 35 void LinkClicked() override;
35 36
36 private: 37 private:
37 // Set the profile preferences to enable or disable the feature. 38 // Set the profile preferences to enable or disable the feature.
38 void SetPref(bool enabled); 39 void SetPref(bool enabled);
39 40
40 Profile* profile_; 41 Profile* profile_;
41 content::WebContents* web_contents_; 42 content::WebContents* web_contents_;
42 bool include_autocorrect_; 43 bool include_autocorrect_;
43 44
44 DISALLOW_COPY_AND_ASSIGN(SpellingBubbleModel); 45 DISALLOW_COPY_AND_ASSIGN(SpellingBubbleModel);
45 }; 46 };
46 47
47 #endif // CHROME_BROWSER_RENDERER_CONTEXT_MENU_SPELLING_BUBBLE_MODEL_H_ 48 #endif // CHROME_BROWSER_RENDERER_CONTEXT_MENU_SPELLING_BUBBLE_MODEL_H_
OLDNEW
« no previous file with comments | « chrome/browser/plugins/plugin_infobar_delegates.cc ('k') | chrome/browser/renderer_context_menu/spelling_bubble_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698