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

Unified Diff: chrome/browser/ui/confirm_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: fit Created 5 years, 3 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/ui/confirm_bubble_model.h
diff --git a/chrome/browser/ui/confirm_bubble_model.h b/chrome/browser/ui/confirm_bubble_model.h
index 3406016c7de0276c755c7f9e77e323fd52de91a3..33405eb0d1c38becefe94d92cbc2e1300bcb4167 100644
--- a/chrome/browser/ui/confirm_bubble_model.h
+++ b/chrome/browser/ui/confirm_bubble_model.h
@@ -7,6 +7,7 @@
#include "base/basictypes.h"
#include "base/strings/string16.h"
+#include "url/gurl.h"
namespace gfx {
class Image;
@@ -49,10 +50,13 @@ class ConfirmBubbleModel {
virtual void Cancel();
// Returns the text of the link to be displayed, if any. Otherwise returns
- // and empty string.
+ // an empty string.
virtual base::string16 GetLinkText() const;
- // Called when the Link is clicked.
+ // Returns the URL of the link to be displayed.
+ virtual GURL GetLinkURL() const;
Peter Kasting 2015/09/24 21:18:27 I don't think you should be modifying this class o
Avi (use Gerrit) 2015/09/30 22:58:33 This interface is identical to the toolbar interfa
Peter Kasting 2015/10/01 00:10:58 I'm not objecting to the fix, I just would have pr
+
+ // Called when the link is clicked.
virtual void LinkClicked();
private:

Powered by Google App Engine
This is Rietveld 408576698