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

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

Issue 2721009: Fix up the Windows omnibox after the recent endcap removal. This fixes most ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 6 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/location_bar/location_bar_view.h
===================================================================
--- chrome/browser/views/location_bar/location_bar_view.h (revision 49713)
+++ chrome/browser/views/location_bar/location_bar_view.h (working copy)
@@ -41,6 +41,10 @@
class SelectedKeywordView;
class StarView;
+namespace views {
+class HorizontalPainter;
+};
+
/////////////////////////////////////////////////////////////////////////////
//
// LocationBarView class
@@ -208,7 +212,9 @@
virtual ExtensionAction* GetVisiblePageAction(size_t index);
virtual void TestPageActionPressed(size_t index);
- static const int kVertMargin;
+ static const int kVertMargin; // Space above and below the edit.
+ static const int kEdgeThickness; // Unavailable space at horizontal edges.
+ static const int kItemPadding; // Space between items within the bar.
protected:
void Focus();
@@ -297,6 +303,9 @@
// Font used by edit and some of the hints.
gfx::Font font_;
+ // An object used to paint the normal-mode background.
+ scoped_ptr<views::HorizontalPainter> painter_;
+
// An icon to the left of the edit field.
LocationIconView* location_icon_view_;

Powered by Google App Engine
This is Rietveld 408576698