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

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

Issue 10957010: alternate ntp: focus border of omnibox in ntp (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased, merged conflicts Created 8 years, 3 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/app/theme/theme_resources.grd ('k') | chrome/browser/ui/views/location_bar/location_bar_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/location_bar/location_bar_view.h
diff --git a/chrome/browser/ui/views/location_bar/location_bar_view.h b/chrome/browser/ui/views/location_bar/location_bar_view.h
index aa68e21bd9fd59546bb4b700c473b7ab20d07074..098b3fc37ba4678d58bcc60c4af03437e10627ff 100644
--- a/chrome/browser/ui/views/location_bar/location_bar_view.h
+++ b/chrome/browser/ui/views/location_bar/location_bar_view.h
@@ -441,6 +441,9 @@ class LocationBarView : public LocationBar,
// after layout, so the |page_action_views_| have their bounds.
void PaintPageActionBackgrounds(gfx::Canvas* canvas);
+ // Draw the focus border when the search mode is |NTP|.
+ void PaintSearchNTPFocusBorder(gfx::Canvas* canvas);
+
#if defined(USE_AURA)
// Fade in the location bar view so the icons come in gradually.
void StartFadeAnimation();
@@ -490,7 +493,10 @@ class LocationBarView : public LocationBar,
gfx::Font font_;
// An object used to paint the normal-mode background.
- scoped_ptr<views::Painter> painter_;
+ scoped_ptr<views::Painter> background_painter_;
+
+ // An object used to paint the focus border when search mode is |NTP|.
+ scoped_ptr<views::Painter> search_focus_painter_;
// An icon to the left of the edit field.
LocationIconView* location_icon_view_;
« no previous file with comments | « chrome/app/theme/theme_resources.grd ('k') | chrome/browser/ui/views/location_bar/location_bar_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698