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

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

Issue 10795013: Rename bounds accessors to be intuitive and consistent (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 5 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/ui/views/dropdown_bar_view.cc
diff --git a/chrome/browser/ui/views/dropdown_bar_view.cc b/chrome/browser/ui/views/dropdown_bar_view.cc
index 9e73d886579d2f4d07617963962ed5d9fba5b66a..b811c2136144bd8120cc0b2a29b8cf3717c65ffa 100644
--- a/chrome/browser/ui/views/dropdown_bar_view.cc
+++ b/chrome/browser/ui/views/dropdown_bar_view.cc
@@ -56,7 +56,7 @@ DropdownBackground::DropdownBackground(BrowserView* browser_view,
void DropdownBackground::Paint(gfx::Canvas* canvas, views::View* view) const {
// Find the offset from which to tile the toolbar background image.
// First, get the origin with respect to the screen.
- gfx::Point origin = view->GetWidget()->GetWindowScreenBounds().origin();
+ gfx::Point origin = view->GetWidget()->GetWindowBoundsInScreen().origin();
// Now convert from screen to parent coordinates.
view->ConvertPointToView(NULL, browser_view_, &origin);
// Finally, calculate the background image tiling offset.
« no previous file with comments | « chrome/browser/ui/views/bookmarks/bookmark_bar_view_test.cc ('k') | chrome/browser/ui/views/extensions/shell_window_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698