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-29 23:35:22 +0000
committerestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-29 23:35:22 +0000
commit527082000a090423f4866d6b0f47d9b45e73f0ea (patch)
treea37e4527eea085402bcc2216cd915ee493344fdf /chrome/browser/gtk/browser_titlebar.h
parent2164467ecfc61b98a1422bfa5e0d86b7d5439140 (diff)
downloadchromium_src-527082000a090423f4866d6b0f47d9b45e73f0ea.zip
chromium_src-527082000a090423f4866d6b0f47d9b45e73f0ea.tar.gz
chromium_src-527082000a090423f4866d6b0f47d9b45e73f0ea.tar.bz2
Make tabstrip flush with top of titlebar when custom frame is enabled and browser is maximized.
TEST=maximize and enable custom frame BUG=http://crbug.com/15431 Review URL: http://codereview.chromium.org/150072 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@19551 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 1dc8121..3d141d4 100644
--- a/chrome/browser/gtk/browser_titlebar.h
+++ b/chrome/browser/gtk/browser_titlebar.h
@@ -50,6 +50,9 @@ class BrowserTitlebar : public MenuGtk::Delegate {
int image_hot, GtkWidget* box,
int tooltip);
+ // Update the titlebar spacing based on the custom frame and maximized state.
+ void UpdateTitlebarAlignment();
+
// Callback for changes to window state. This includes
// maximizing/restoring/minimizing the window.
static gboolean OnWindowStateChanged(GtkWindow* window,
@@ -79,6 +82,9 @@ class BrowserTitlebar : public MenuGtk::Delegate {
// manager decorations, we draw this taller.
GtkWidget* titlebar_alignment_;
+ // Whether we are using a custom frame.
+ bool using_custom_frame_;
+
// Maximize and restore widgets in the titlebar.
scoped_ptr<CustomDrawButton> minimize_button_;
scoped_ptr<CustomDrawButton> maximize_button_;