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-06-30 00:20:18 +0000
committerestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-30 00:20:18 +0000
commitc3c01eeaf88116a3f114a46ec2a900936be56bde (patch)
tree2f4c03d7a9c19405140dcaeada21c7c2a7bfe776 /chrome/browser/gtk/browser_titlebar.h
parent7c6334b2b3201324bfc6efeefecfdf8003fbcb59 (diff)
downloadchromium_src-c3c01eeaf88116a3f114a46ec2a900936be56bde.zip
chromium_src-c3c01eeaf88116a3f114a46ec2a900936be56bde.tar.gz
chromium_src-c3c01eeaf88116a3f114a46ec2a900936be56bde.tar.bz2
GTK custom frame: Don't show the border when maximized. Enlarge the close button's clickable area when maximized.
BUG= http://crbug.com/14646 and http://crbug.com/15628 TEST=maximize, turn on custom frame. The top right most pixel on the screen should be clickable and should close the window. There should be no border around the web contents. Review URL: http://codereview.chromium.org/150078 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@19567 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk/browser_titlebar.h')
-rw-r--r--chrome/browser/gtk/browser_titlebar.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/browser/gtk/browser_titlebar.h b/chrome/browser/gtk/browser_titlebar.h
index 3d141d4..3a88f80 100644
--- a/chrome/browser/gtk/browser_titlebar.h
+++ b/chrome/browser/gtk/browser_titlebar.h
@@ -85,6 +85,12 @@ class BrowserTitlebar : public MenuGtk::Delegate {
// Whether we are using a custom frame.
bool using_custom_frame_;
+ // The normal width of the close button (the width it appears to the user)
+ // which is determined by the width of the bitmap we use to paint it. Its
+ // actual clickable width may differ if we are showing a custom frame and the
+ // window is maximized.
+ int close_button_default_width_;
+
// Maximize and restore widgets in the titlebar.
scoped_ptr<CustomDrawButton> minimize_button_;
scoped_ptr<CustomDrawButton> maximize_button_;