diff options
author | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-04 21:29:16 +0000 |
---|---|---|
committer | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-04 21:29:16 +0000 |
commit | 8cefdea4356a7007ddc26fc77c6cad2fac0ce7d0 (patch) | |
tree | fc172944eb761781da019c8de96f512db624902e /views/widget/tooltip_manager_win.h | |
parent | fcc4447615226cb80f28fade563e50d3328d5908 (diff) | |
download | chromium_src-8cefdea4356a7007ddc26fc77c6cad2fac0ce7d0.zip chromium_src-8cefdea4356a7007ddc26fc77c6cad2fac0ce7d0.tar.gz chromium_src-8cefdea4356a7007ddc26fc77c6cad2fac0ce7d0.tar.bz2 |
Clean up TooltipManagerWin a bit. Original patch by Jay Soffian (see http://codereview.chromium.org/668021 ), r=me.
BUG=37368
TEST=none
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40662 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/widget/tooltip_manager_win.h')
-rw-r--r-- | views/widget/tooltip_manager_win.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/views/widget/tooltip_manager_win.h b/views/widget/tooltip_manager_win.h index af5e3fe..5a05a45 100644 --- a/views/widget/tooltip_manager_win.h +++ b/views/widget/tooltip_manager_win.h @@ -1,4 +1,4 @@ -// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. +// Copyright (c) 2010 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -11,11 +11,12 @@ #include "app/gfx/native_widget_types.h" #include "base/basictypes.h" +#include "base/gfx/point.h" #include "base/task.h" #include "views/widget/tooltip_manager.h" namespace gfx { -class Font; +class Point; } namespace views { @@ -84,7 +85,7 @@ class TooltipManagerWin : public TooltipManager { gfx::NativeView GetParent(); // Updates the tooltip for the specified location. - void UpdateTooltip(int x, int y); + void UpdateTooltip(const gfx::Point& location); // Tooltip control window. HWND tooltip_hwnd_; @@ -93,8 +94,7 @@ class TooltipManagerWin : public TooltipManager { TOOLINFO toolinfo_; // Last location of the mouse. This is in the coordinates of the rootview. - int last_mouse_x_; - int last_mouse_y_; + gfx::Point last_mouse_pos_; // Whether or not the tooltip is showing. bool tooltip_showing_; |