Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(853)

Unified Diff: chrome/browser/views/frame/browser_view.h

Issue 3167027: Merge 56737 - Fix numerous alignment problems, both horizontal and vertical, ... (Closed) Base URL: svn://svn.chromium.org/chrome/branches/472/src/
Patch Set: Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/views/frame/browser_view.h
===================================================================
--- chrome/browser/views/frame/browser_view.h (revision 56738)
+++ chrome/browser/views/frame/browser_view.h (working copy)
@@ -120,7 +120,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
@@ -144,9 +147,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 big icon used with TYPE_EXTENSION_APP, or NULL if this
// browser isn't TYPE_EXTENSION_APP.
« no previous file with comments | « chrome/browser/views/frame/browser_non_client_frame_view.h ('k') | chrome/browser/views/frame/browser_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698