Index: chrome/browser/views/frame/browser_view.h |
=================================================================== |
--- chrome/browser/views/frame/browser_view.h (revision 56452) |
+++ chrome/browser/views/frame/browser_view.h (working copy) |
@@ -116,7 +116,10 @@ |
// initiated. |
void WindowMoveOrResizeStarted(); |
- // Returns the bounds of the toolbar, in BrowserView coordinates. |
+ // Returns the apparent bounds of the toolbar, in BrowserView coordinates. |
+ // These differ from |toolbar_.bounds()| in that they match where the toolbar |
+ // background image is drawn -- slightly outside the "true" bounds |
+ // horizontally, and, when using vertical tabs, behind the tab column. |
gfx::Rect GetToolbarBounds() const; |
// Returns the bounds of the content area, in the coordinates of the |
@@ -140,9 +143,11 @@ |
// avatar icon. |
int GetTabStripHeight() const; |
- // Returns the bounds of the TabStrip. Used by themed views to determine the |
- // offset of IDR_THEME_TOOLBAR. |
- gfx::Rect GetTabStripBounds() const; |
+ // Takes some view's origin (relative to this BrowserView) and offsets it such |
+ // that it can be used as the source origin for seamlessly tiling the toolbar |
+ // background image over that view. |
+ gfx::Point OffsetPointForToolbarBackgroundImage( |
+ const gfx::Point& point) const; |
// Accessor for the TabStrip. |
BaseTabStrip* tabstrip() const { return tabstrip_; } |