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

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

Issue 547673003: Don't use SetShape() to round the Findbar views widget corners. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 | « no previous file | chrome/browser/ui/views/dropdown_bar_host.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.h
diff --git a/chrome/browser/ui/views/dropdown_bar_host.h b/chrome/browser/ui/views/dropdown_bar_host.h
index 96eeecbbd21dd92670d0ae5a3c8abc14c92ab3a8..4e0265882c60e8643b744dc5613bb4cc0c5414ac 100644
--- a/chrome/browser/ui/views/dropdown_bar_host.h
+++ b/chrome/browser/ui/views/dropdown_bar_host.h
@@ -142,15 +142,6 @@ class DropdownBarHost : public ui::AcceleratorTarget,
// can be shown in any client area.
virtual void GetWidgetBounds(gfx::Rect* bounds);
- // The find bar widget needs rounded edges, so we create a polygon
- // that corresponds to the background images for this window (and
- // make the polygon only contain the pixels that we want to
- // draw). The polygon is then given to SetWindowRgn which changes
- // the window from being a rectangle in shape, to being a rect with
- // curved edges. We also check to see if the region should be
- // truncated to prevent from drawing onto Chrome's window border.
- void UpdateWindowEdges(const gfx::Rect& new_pos);
-
// Allows implementation to tweak widget position.
void SetWidgetPositionNative(const gfx::Rect& new_pos, bool no_redraw);
« no previous file with comments | « no previous file | chrome/browser/ui/views/dropdown_bar_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698