summaryrefslogtreecommitdiffstats
path: root/chrome/browser/gtk/tabs/tab_renderer_gtk.h
diff options
context:
space:
mode:
authorjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-27 22:48:34 +0000
committerjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-27 22:48:34 +0000
commit8f271d57db27a0f347f8ef8841591f12c74ca83c (patch)
treeb4fe265e866fcff2c6666c778e7b59c1d347fe79 /chrome/browser/gtk/tabs/tab_renderer_gtk.h
parent1fa4759b59723399e67a2debe6d92168c3bc71e1 (diff)
downloadchromium_src-8f271d57db27a0f347f8ef8841591f12c74ca83c.zip
chromium_src-8f271d57db27a0f347f8ef8841591f12c74ca83c.tar.gz
chromium_src-8f271d57db27a0f347f8ef8841591f12c74ca83c.tar.bz2
gtk: Use the requested window bounds when determining the location of the source tab. This is necessary because we move the hidden source tab during a drag, and gtk does not update the allocation of hidden widgets.
BUG=16918,17712 TEST=Extensive tab dragging. Review URL: http://codereview.chromium.org/159436 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21729 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk/tabs/tab_renderer_gtk.h')
-rw-r--r--chrome/browser/gtk/tabs/tab_renderer_gtk.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/chrome/browser/gtk/tabs/tab_renderer_gtk.h b/chrome/browser/gtk/tabs/tab_renderer_gtk.h
index 5669658..72f2382 100644
--- a/chrome/browser/gtk/tabs/tab_renderer_gtk.h
+++ b/chrome/browser/gtk/tabs/tab_renderer_gtk.h
@@ -163,6 +163,9 @@ class TabRendererGtk : public AnimationDelegate {
// Returns the non-mirrored (LTR) bounds of this tab.
gfx::Rect GetNonMirroredBounds(GtkWidget* parent) const;
+ // Returns the requested bounds of the tab.
+ gfx::Rect GetRequisition() const;
+
// Sets the bounds of the tab.
void SetBounds(const gfx::Rect& bounds);
@@ -325,6 +328,10 @@ class TabRendererGtk : public AnimationDelegate {
// The bounds of this Tab.
gfx::Rect bounds_;
+ // The requested bounds of this tab. These bounds are relative to the
+ // tabstrip.
+ gfx::Rect requisition_;
+
// Hover animation.
scoped_ptr<SlideAnimation> hover_animation_;