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

Unified Diff: chrome/browser/views/toolbar_star_toggle.cc

Issue 7317: Change all ConvertPointTo* methods to use gfx::Point instead of CPoint.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years, 2 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/views/tabs/tab_strip.cc ('k') | chrome/views/accessibility/view_accessibility.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/views/toolbar_star_toggle.cc
===================================================================
--- chrome/browser/views/toolbar_star_toggle.cc (revision 3347)
+++ chrome/browser/views/toolbar_star_toggle.cc (working copy)
@@ -37,12 +37,12 @@
return;
}
- CPoint star_location(0, 0);
+ gfx::Point star_location;
ChromeViews::View::ConvertPointToScreen(this, &star_location);
// Shift the x location by 1 as visually the center of the star appears 1
// pixel to the right. By doing this bubble arrow points to the center
// of the star.
- gfx::Rect star_bounds(star_location.x + 1, star_location.y, width(),
+ gfx::Rect star_bounds(star_location.x() + 1, star_location.y(), width(),
height());
BookmarkBubbleView::Show(host_->browser()->GetTopLevelHWND(), star_bounds,
this, host_->profile(), url, newly_bookmarked);
« no previous file with comments | « chrome/browser/views/tabs/tab_strip.cc ('k') | chrome/views/accessibility/view_accessibility.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698