summaryrefslogtreecommitdiffstats
path: root/chrome/views/tooltip_manager.cc
diff options
context:
space:
mode:
authorben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-14 23:45:09 +0000
committerben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-14 23:45:09 +0000
commit613b80638081101368e31300f6e729c720b160e0 (patch)
tree0b3dc7c7e0dde27abc814d13bdff3a1758ccde2f /chrome/views/tooltip_manager.cc
parent41a5ca123f45f471457485e87681c02a21a2f052 (diff)
downloadchromium_src-613b80638081101368e31300f6e729c720b160e0.zip
chromium_src-613b80638081101368e31300f6e729c720b160e0.tar.gz
chromium_src-613b80638081101368e31300f6e729c720b160e0.tar.bz2
Convert HitTest/GetViewForPoint to use gfx::Point
http://crbug.com/2186 Review URL: http://codereview.chromium.org/7331 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3384 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/views/tooltip_manager.cc')
-rw-r--r--chrome/views/tooltip_manager.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/chrome/views/tooltip_manager.cc b/chrome/views/tooltip_manager.cc
index 4d4e4d8..e4ea574 100644
--- a/chrome/views/tooltip_manager.cc
+++ b/chrome/views/tooltip_manager.cc
@@ -148,7 +148,8 @@ LRESULT TooltipManager::OnNotify(int w_param, NMHDR* l_param, bool* handled) {
if (last_view_out_of_sync_) {
// View under the mouse is out of sync, determine it now.
RootView* root_view = view_container_->GetRootView();
- last_tooltip_view_ = root_view->GetViewForPoint(CPoint(last_mouse_x_, last_mouse_y_));
+ last_tooltip_view_ = root_view->GetViewForPoint(
+ gfx::Point(last_mouse_x_, last_mouse_y_));
last_view_out_of_sync_ = false;
}
// Tooltip control is asking for the tooltip to display.
@@ -319,7 +320,7 @@ void TooltipManager::TrimTooltipToFit(std::wstring* text,
void TooltipManager::UpdateTooltip(int x, int y) {
RootView* root_view = view_container_->GetRootView();
- View* view = root_view->GetViewForPoint(CPoint(x, y));
+ View* view = root_view->GetViewForPoint(gfx::Point(x, y));
if (view != last_tooltip_view_) {
// NOTE: This *must* be sent regardless of the visibility of the tooltip.
// It triggers Windows to ask for the tooltip again.