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-08-05 19:46:29 +0000
committerestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-05 19:46:29 +0000
commitefc3315b53e2c3cc6d6aecfa04738447b701f806 (patch)
tree3c8818d78cc967f788a68a9fc996ee2551c1845e /chrome/browser/gtk/browser_titlebar.h
parentbdbdc8bc11eb6e2e70a758c4fc6953055bab13a8 (diff)
downloadchromium_src-efc3315b53e2c3cc6d6aecfa04738447b701f806.zip
chromium_src-efc3315b53e2c3cc6d6aecfa04738447b701f806.tar.gz
chromium_src-efc3315b53e2c3cc6d6aecfa04738447b701f806.tar.bz2
Add some spacing to titlebar buttons.
Review URL: http://codereview.chromium.org/160593 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@22515 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, 9 insertions, 5 deletions
diff --git a/chrome/browser/gtk/browser_titlebar.h b/chrome/browser/gtk/browser_titlebar.h
index 88e17af..98a56ab 100644
--- a/chrome/browser/gtk/browser_titlebar.h
+++ b/chrome/browser/gtk/browser_titlebar.h
@@ -111,6 +111,10 @@ class BrowserTitlebar : public MenuGtk::Delegate {
// manager decorations, we draw this taller.
GtkWidget* titlebar_alignment_;
+ // Padding between the titlebar buttons and the top of the screen. Only show
+ // when not maximized.
+ GtkWidget* top_padding_;
+
// The favicon and page title used when in app mode or popup mode.
GtkWidget* app_mode_favicon_;
GtkWidget* app_mode_title_;
@@ -118,11 +122,11 @@ 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_;
+ // We change the size of these three buttons when the window is maximized, so
+ // we use these structs to keep track of their original size.
+ GtkRequisition close_button_req_;
+ GtkRequisition minimize_button_req_;
+ GtkRequisition restore_button_req_;
// Maximize and restore widgets in the titlebar.
scoped_ptr<CustomDrawButton> minimize_button_;