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

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

Issue 7981045: Make infobars ignore button clicks when closing. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 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/gtk/infobars/infobar_gtk.h
===================================================================
--- chrome/browser/ui/gtk/infobars/infobar_gtk.h (revision 102206)
+++ chrome/browser/ui/gtk/infobars/infobar_gtk.h (working copy)
@@ -60,12 +60,14 @@
GtkWidget* CreateLabel(const std::string& text);
// Creates a link button with the appropriate current gtk-theme state.
+ // NOTE: Subclasses must ignore link clicks if we're unowned.
GtkWidget* CreateLinkButton(const std::string& text);
// 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|. If a link is
// supplied, |link_callback| must not be null. It will be invoked on click.
+ // NOTE: Subclasses must ignore link clicks if we're unowned.
void AddLabelWithInlineLink(const string16& display_text,
const string16& link_text,
size_t link_offset,

Powered by Google App Engine
This is Rietveld 408576698