summaryrefslogtreecommitdiffstats
path: root/chrome/common/gtk_util.h
diff options
context:
space:
mode:
authorestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-19 03:28:11 +0000
committerestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-19 03:28:11 +0000
commiteda19d2232e18f89c69ddceedbfdefea3c0c722b (patch)
treeb9882e1c7c1cc0dca9752876b404680d82e75f0e /chrome/common/gtk_util.h
parentc6f2baf134f965f280fa1e1b26c9e225cad58a8f (diff)
downloadchromium_src-eda19d2232e18f89c69ddceedbfdefea3c0c722b.zip
chromium_src-eda19d2232e18f89c69ddceedbfdefea3c0c722b.tar.gz
chromium_src-eda19d2232e18f89c69ddceedbfdefea3c0c722b.tar.bz2
Implement window open disposition for (some) navigation buttons.
still need to do similar for link buttons and such. BUG=14518 Review URL: http://codereview.chromium.org/131071 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18786 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/gtk_util.h')
-rw-r--r--chrome/common/gtk_util.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/common/gtk_util.h b/chrome/common/gtk_util.h
index 92ea54e..b996c07 100644
--- a/chrome/common/gtk_util.h
+++ b/chrome/common/gtk_util.h
@@ -100,6 +100,12 @@ class EnumerateWindowsDelegate {
// Enumerates the top-level gdk windows of the current display.
void EnumerateChildWindows(EnumerateWindowsDelegate* delegate);
+// Set that a button causes a page navigation. In particular, it will accept
+// middle clicks. Warning: only call this *after* you have connected your
+// own handlers for button-press and button-release events, or you will not get
+// those events.
+void SetButtonTriggersNavigation(GtkWidget* button);
+
} // namespace gtk_util
#endif // CHROME_COMMON_GTK_UTIL_H_