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

Unified Diff: chrome/views/tree_view.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/tooltip_manager.cc ('k') | chrome/views/view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/views/tree_view.cc
===================================================================
--- chrome/views/tree_view.cc (revision 3347)
+++ chrome/views/tree_view.cc (working copy)
@@ -447,20 +447,20 @@
x = width() / 2;
y = height() / 2;
}
- CPoint screen_loc(x, y);
+ gfx::Point screen_loc(x, y);
ConvertPointToScreen(this, &screen_loc);
- GetContextMenuController()->ShowContextMenu(this, screen_loc.x,
- screen_loc.y, false);
+ GetContextMenuController()->ShowContextMenu(this, screen_loc.x(),
+ screen_loc.y(), false);
} else if (!show_context_menu_only_when_node_selected_) {
GetContextMenuController()->ShowContextMenu(this, location.x, location.y,
true);
} else if (GetSelectedNode()) {
// Make sure the mouse is over the selected node.
TVHITTESTINFO hit_info;
- CPoint local_loc(location);
+ gfx::Point local_loc(location);
ConvertPointToView(NULL, this, &local_loc);
- hit_info.pt.x = local_loc.x;
- hit_info.pt.y = local_loc.y;
+ hit_info.pt.x = local_loc.x();
+ hit_info.pt.y = local_loc.y();
HTREEITEM hit_item = TreeView_HitTest(tree_view_, &hit_info);
if (hit_item &&
GetNodeDetails(GetSelectedNode())->tree_item == hit_item &&
« no previous file with comments | « chrome/views/tooltip_manager.cc ('k') | chrome/views/view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698