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

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: pkasting 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
« no previous file with comments | « chrome/browser/ui/cocoa/confirm_bubble_controller.mm ('k') | chrome/browser/ui/confirm_bubble_model.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
+
+ // Called when the link is clicked.
virtual void LinkClicked();
private:
« no previous file with comments | « chrome/browser/ui/cocoa/confirm_bubble_controller.mm ('k') | chrome/browser/ui/confirm_bubble_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698