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

Unified Diff: chrome/views/bitmap_scroll_bar.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/views/accessibility/view_accessibility.cc ('k') | chrome/views/button_dropdown.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/views/bitmap_scroll_bar.cc
===================================================================
--- chrome/views/bitmap_scroll_bar.cc (revision 3348)
+++ chrome/views/bitmap_scroll_bar.cc (working copy)
@@ -542,9 +542,9 @@
ViewContainer* vc = GetViewContainer();
CRect vc_bounds;
vc->GetBounds(&vc_bounds, true);
- CPoint temp_pt(x - vc_bounds.left, y - vc_bounds.top);
+ gfx::Point temp_pt(x - vc_bounds.left, y - vc_bounds.top);
View::ConvertPointFromViewContainer(this, &temp_pt);
- context_menu_mouse_position_ = IsHorizontal() ? temp_pt.x : temp_pt.y;
+ context_menu_mouse_position_ = IsHorizontal() ? temp_pt.x() : temp_pt.y();
Menu menu(this, Menu::TOPLEFT, GetViewContainer()->GetHWND());
menu.AppendDelegateMenuItem(ScrollBarContextMenuCommand_ScrollHere);
« no previous file with comments | « chrome/views/accessibility/view_accessibility.cc ('k') | chrome/views/button_dropdown.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698