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

Unified Diff: chrome/browser/ui/views/omnibox/touch_omnibox_popup_contents_view.cc

Issue 11360144: Converts some of the omnibox related classes to support multiple (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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/ui/views/omnibox/touch_omnibox_popup_contents_view.cc
diff --git a/chrome/browser/ui/views/omnibox/touch_omnibox_popup_contents_view.cc b/chrome/browser/ui/views/omnibox/touch_omnibox_popup_contents_view.cc
index be8c20e74069bb8591695f93019e396e0798866c..308b8689cf52caed5706355a82e73811911e1a5d 100644
--- a/chrome/browser/ui/views/omnibox/touch_omnibox_popup_contents_view.cc
+++ b/chrome/browser/ui/views/omnibox/touch_omnibox_popup_contents_view.cc
@@ -83,13 +83,14 @@ void TouchOmniboxPopupContentsView::PaintResultViews(gfx::Canvas* canvas) {
// color of the line is determined to blend appropriately with the
// most dominant of the two surrounding cells, in precedence order,
// i.e. selected > hovered > normal.
+ const ui::NativeTheme* theme = GetNativeTheme();
for (std::vector<View*>::const_iterator i(visible_children.begin());
i + 1 != visible_children.end(); ++i) {
TouchOmniboxResultView* child = static_cast<TouchOmniboxResultView*>(*i);
TouchOmniboxResultView* next_child =
static_cast<TouchOmniboxResultView*>(*(i + 1));
SkColor divider_color = OmniboxResultView::GetColor(
- std::max(child->GetState(), next_child->GetState()),
+ theme, std::max(child->GetState(), next_child->GetState()),
OmniboxResultView::DIVIDER);
int line_y = child->y() + child->height() - 1;
canvas->DrawLine(gfx::Point(bounds.x(), line_y),

Powered by Google App Engine
This is Rietveld 408576698