summaryrefslogtreecommitdiffstats
path: root/chrome/browser/gtk/gtk_chrome_link_button.h
diff options
context:
space:
mode:
authorestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-22 23:18:48 +0000
committerestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-22 23:18:48 +0000
commitf5766101a857448e277290f0f665efef509e72f7 (patch)
tree429c45ef186cb0396e4cb8df5e72d2d0f88034fa /chrome/browser/gtk/gtk_chrome_link_button.h
parent8f90afd7751345b1b86e15355dffb35aae76110e (diff)
downloadchromium_src-f5766101a857448e277290f0f665efef509e72f7.zip
chromium_src-f5766101a857448e277290f0f665efef509e72f7.tar.gz
chromium_src-f5766101a857448e277290f0f665efef509e72f7.tar.bz2
Support middle click navigation with infobar links.
http://crbug.com/14518 TEST=middle click on an infobar link, it should open in a new tab Review URL: http://codereview.chromium.org/145013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18978 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk/gtk_chrome_link_button.h')
-rw-r--r--chrome/browser/gtk/gtk_chrome_link_button.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/chrome/browser/gtk/gtk_chrome_link_button.h b/chrome/browser/gtk/gtk_chrome_link_button.h
index 214b142..30f4d61 100644
--- a/chrome/browser/gtk/gtk_chrome_link_button.h
+++ b/chrome/browser/gtk/gtk_chrome_link_button.h
@@ -41,6 +41,7 @@ struct _GtkChromeLinkButton {
char* red_markup;
gboolean is_blue;
GdkCursor* hand_cursor;
+ GdkEventButton* click_button_event;
};
struct _GtkChromeLinkButtonClass {
@@ -49,6 +50,12 @@ struct _GtkChromeLinkButtonClass {
GtkWidget* gtk_chrome_link_button_new(const char* text);
+// Call this from within a "clicked" handler to get the release event that
+// triggered the click. It will return NULL if the click was triggered by a
+// keyboard event.
+const GdkEventButton* gtk_chrome_link_button_get_event_for_click(
+ GtkChromeLinkButton* button);
+
GType gtk_chrome_link_button_get_type();
G_END_DECLS