summaryrefslogtreecommitdiffstats
path: root/chrome/browser/gtk/browser_titlebar.h
diff options
context:
space:
mode:
authortc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-22 18:42:29 +0000
committertc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-22 18:42:29 +0000
commit359a5bf69945cfe2cc0fce78e851bf50f48b270b (patch)
treecfd2aab36c7e63226fff23330b39e94907238755 /chrome/browser/gtk/browser_titlebar.h
parentc57a65632f3e4cabc45f380b77d7141c7f9b0a27 (diff)
downloadchromium_src-359a5bf69945cfe2cc0fce78e851bf50f48b270b.zip
chromium_src-359a5bf69945cfe2cc0fce78e851bf50f48b270b.tar.gz
chromium_src-359a5bf69945cfe2cc0fce78e851bf50f48b270b.tar.bz2
Add the ability to resize the window when over the custom frame.
I also switched from 3px borders to 4px borders because that's what they are on windows. On linux, the borders look bigger because our webcontent area doesn't drop a shadow. For this to work for resizing on top, I had to remove the event box from the browser titlebar and move the mouse event handling to the window. BUG=14645 Review URL: http://codereview.chromium.org/140026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18927 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk/browser_titlebar.h')
-rw-r--r--chrome/browser/gtk/browser_titlebar.h14
1 files changed, 5 insertions, 9 deletions
diff --git a/chrome/browser/gtk/browser_titlebar.h b/chrome/browser/gtk/browser_titlebar.h
index c937f85..b491625 100644
--- a/chrome/browser/gtk/browser_titlebar.h
+++ b/chrome/browser/gtk/browser_titlebar.h
@@ -34,6 +34,11 @@ class BrowserTitlebar : public MenuGtk::Delegate {
// tall titlebar and the min/max/close buttons.
void UpdateCustomFrame(bool use_custom_frame);
+ // On Windows, right clicking in the titlebar background brings up the system
+ // menu. There's no such thing on linux, so we just show the menu items we
+ // add to the menu.
+ void ShowContextMenu();
+
private:
// Build the titlebar, the space above the tab
// strip, and (maybe) the min, max, close buttons. |container| is the gtk
@@ -51,11 +56,6 @@ class BrowserTitlebar : public MenuGtk::Delegate {
static gboolean OnExpose(GtkWidget* widget, GdkEventExpose* e,
BrowserTitlebar* window);
- // Callback for when the titlebar (include the background of the tab strip)
- // needs to be redrawn.
- static gboolean OnMouseButtonPress(GtkWidget* widget, GdkEventButton* e,
- BrowserTitlebar* window);
-
// Callback for changes to window state. This includes
// maximizing/restoring/minimizing the window.
static gboolean OnWindowStateChanged(GtkWindow* window,
@@ -67,10 +67,6 @@ class BrowserTitlebar : public MenuGtk::Delegate {
// -- Context Menu -----------------------------------------------------------
- // On Windows, right clicking in the titlebar background brings up the system
- // menu. There's no such thing on linux, so we just show the menu items we
- // add to the menu.
- void ShowContextMenu();
// MenuGtk::Delegate implementation:
virtual bool IsCommandEnabled(int command_id) const;
virtual bool IsItemChecked(int command_id) const;