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

Unified Diff: chrome/browser/views/location_bar_view.h

Issue 20011: Improved OTR avatar and popup window rendering. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 11 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
« no previous file with comments | « chrome/browser/views/frame/browser_view.cc ('k') | chrome/browser/views/location_bar_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/views/location_bar_view.h
===================================================================
--- chrome/browser/views/location_bar_view.h (revision 9107)
+++ chrome/browser/views/location_bar_view.h (working copy)
@@ -121,7 +121,7 @@
virtual void FocusSearch();
virtual void SaveStateToContents(TabContents* contents);
- static const int kTextVertMargin;
+ static const int kVertMargin;
static const COLORREF kBackgroundColorByLevel[];
protected:
@@ -283,6 +283,16 @@
// to necessitate a layout, layout occurs as well.
void DoLayout(bool force_layout);
+ // Returns the number of pixels to clip off the top edge of the background
+ // graphics. With the Vista frame, the DWM draws a dark border around the
+ // content, so we clip the single dark pixel on the popup background image,
+ // which otherwise looks redundant.
+ int TopOffset() const;
+
+ // Returns the height in pixels of the margin at the top of the bar, after
+ // TopOffset() pixels have been clipped off.
+ int TopMargin() const;
+
// Returns the width in pixels of the contents of the edit.
int TextDisplayWidth();
« no previous file with comments | « chrome/browser/views/frame/browser_view.cc ('k') | chrome/browser/views/location_bar_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698