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

Unified Diff: chrome/browser/ui/views/dropdown_bar_host.cc

Issue 10965042: Use new find in page resource on Windows too. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use same separator color on windows. 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/browser/themes/theme_service.cc ('k') | chrome/browser/ui/views/find_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/dropdown_bar_host.cc
diff --git a/chrome/browser/ui/views/dropdown_bar_host.cc b/chrome/browser/ui/views/dropdown_bar_host.cc
index 9961f3a30d5cfe459d97eeacb02f27f10973e175..53b0245621aaef54ccddb98a6e7e6a07eb34f2cf 100644
--- a/chrome/browser/ui/views/dropdown_bar_host.cc
+++ b/chrome/browser/ui/views/dropdown_bar_host.cc
@@ -237,9 +237,9 @@ void DropdownBarHost::UpdateWindowEdges(const gfx::Rect& new_pos) {
// window. Basically, it encompasses only the visible pixels of the
// concatenated find_dlg_LMR_bg images (where LMR = [left | middle | right]).
const Path::Point polygon[] = {
- {0, 0}, {0, 1}, {2, 3}, {2, h - 3}, {4, h - 1},
+ {1, 0}, {3, 2}, {3, h - 2}, {4, h - 1},
{4, h}, {w+0, h},
- {w+0, h - 1}, {w+1, h - 1}, {w+3, h - 3}, {w+3, 3}, {w+6, 0}
+ {w+2, h - 1}, {w+3, h - 2}, {w+3, 2}, {w+5, 0}
};
// Find the largest x and y value in the polygon.
@@ -278,10 +278,10 @@ void DropdownBarHost::UpdateWindowEdges(const gfx::Rect& new_pos) {
// curved edges that the view will draw to make it look like grows out of
// the toolbar.
Path::Point left_curve[] = {
- {0, y+0}, {0, y+1}, {2, y+3}, {2, y+0}, {0, y+0}
+ {1, y+0}, {3, y+2}, {3, y+0}, {1, y+0}
};
Path::Point right_curve[] = {
- {w+3, y+3}, {w+6, y+0}, {w+3, y+0}, {w+3, y+3}
+ {w+3, y+2}, {w+5, y+0}, {w+3, y+0}, {w+3, y+2}
};
// Combine the region for the curve on the left with our main region.
« no previous file with comments | « chrome/browser/themes/theme_service.cc ('k') | chrome/browser/ui/views/find_bar_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698