summaryrefslogtreecommitdiffstats
path: root/chrome/browser/gtk/browser_titlebar.h
diff options
context:
space:
mode:
authorestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-01 00:35:16 +0000
committerestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-01 00:35:16 +0000
commitbc10d9d99a26a7da6df8e359604bae90fa772e44 (patch)
tree8fd4c70adf1a85d669b0eab4f47679b4c7cb2935 /chrome/browser/gtk/browser_titlebar.h
parent47a4216e91764c7284582112408626ccaf8d9583 (diff)
downloadchromium_src-bc10d9d99a26a7da6df8e359604bae90fa772e44.zip
chromium_src-bc10d9d99a26a7da6df8e359604bae90fa772e44.tar.gz
chromium_src-bc10d9d99a26a7da6df8e359604bae90fa772e44.tar.bz2
GTK: add middle click and right click functionality to maximize button.
If the user right clicks on the maximize button, it will horizontally maximize the window, and if the user middle clicks on the maximize button it will vertically maximize the window. At least on kde, the window manager supports more complicated behavior, e.g. right clicking on a window that is horizontally maximized will return it to its former size. It seems to keep track of multiple restored rects. However, we're not well equipped to replicate this behavior, so I just didn't add it. If the user wants it, they can disable the custom frame. BUG=28881 Review URL: http://codereview.chromium.org/455012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33389 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk/browser_titlebar.h')
-rw-r--r--chrome/browser/gtk/browser_titlebar.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/browser/gtk/browser_titlebar.h b/chrome/browser/gtk/browser_titlebar.h
index a9ace55..d9d75e1 100644
--- a/chrome/browser/gtk/browser_titlebar.h
+++ b/chrome/browser/gtk/browser_titlebar.h
@@ -98,6 +98,10 @@ class BrowserTitlebar : public MenuGtk::Delegate,
// Show the menu that the user gets from left-clicking the favicon.
void ShowFaviconMenu(GdkEventButton* event);
+ // The maximize button was clicked, take an action depending on which mouse
+ // button the user pressed.
+ void MaximizeButtonClicked();
+
// Callback for changes to window state. This includes
// maximizing/restoring/minimizing the window.
static gboolean OnWindowStateChanged(GtkWindow* window,