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

Unified Diff: chrome/browser/gtk/infobar_gtk.h

Issue 1081007: Implement ConfirmInfoBar link support on GTK... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 9 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 | « no previous file | chrome/browser/gtk/infobar_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/gtk/infobar_gtk.h
===================================================================
--- chrome/browser/gtk/infobar_gtk.h (revision 41980)
+++ chrome/browser/gtk/infobar_gtk.h (working copy)
@@ -65,6 +65,17 @@
// (Will lead to this InfoBar being closed).
void RemoveInfoBar() const;
+ // Adds |display_text| to the infobar. If |link_text| is not empty, it is
+ // rendered as a hyperlink and inserted into |display_text| at |link_offset|,
+ // or right aligned in the infobar if |link_offset| is |npos|. |link_padding|
+ // pixels are inserted around the link (pass 0 for not padding). If a link
+ // is supplied, |link_callback| must not be null. It will be invoked on click.
+ void AddLabelAndLink(const std::wstring& display_text,
+ const std::wstring& link,
+ size_t link_offset,
+ guint link_padding,
+ GCallback link_callback);
+
// The top level widget of the infobar.
scoped_ptr<SlideAnimatorGtk> slide_widget_;
« no previous file with comments | « no previous file | chrome/browser/gtk/infobar_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698