summaryrefslogtreecommitdiffstats
path: root/chrome/views/tree_view.cc
diff options
context:
space:
mode:
authorben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-14 20:58:44 +0000
committerben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-14 20:58:44 +0000
commit96b667d273c25e55150785848942c51f1a98851b (patch)
tree21ad2f8bc3a2148a517998f4ebb0157b22a75082 /chrome/views/tree_view.cc
parentdf40752a0913948b49086fee421b0d019f7de8da (diff)
downloadchromium_src-96b667d273c25e55150785848942c51f1a98851b.zip
chromium_src-96b667d273c25e55150785848942c51f1a98851b.tar.gz
chromium_src-96b667d273c25e55150785848942c51f1a98851b.tar.bz2
Change all ConvertPointTo* methods to use gfx::Point instead of CPoint.
http://crbug.com/2186 Review URL: http://codereview.chromium.org/7317 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3365 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/views/tree_view.cc')
-rw-r--r--chrome/views/tree_view.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/chrome/views/tree_view.cc b/chrome/views/tree_view.cc
index 3952ec0..662f7194 100644
--- a/chrome/views/tree_view.cc
+++ b/chrome/views/tree_view.cc
@@ -447,20 +447,20 @@ void TreeView::OnContextMenu(const CPoint& location) {
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 &&