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

Unified Diff: views/widget/aero_tooltip_manager.cc

Issue 195035: Use MAKEPOINTS instead of GET_X/Y_LPARAM to reduce a dependency on ATL.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 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 | « views/controls/tree/tree_view.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/widget/aero_tooltip_manager.cc
===================================================================
--- views/widget/aero_tooltip_manager.cc (revision 25700)
+++ views/widget/aero_tooltip_manager.cc (working copy)
@@ -5,12 +5,11 @@
#include "views/widget/aero_tooltip_manager.h"
#include <windows.h>
-#include <atlbase.h>
-#include <atlapp.h> // for GET_X/Y_LPARAM
#include <commctrl.h>
#include <shlobj.h>
#include "app/l10n_util_win.h"
+#include "base/gfx/point.h"
#include "base/message_loop.h"
namespace views {
@@ -33,13 +32,12 @@
initial_timer_->Disown();
if (u_msg == WM_MOUSEMOVE || u_msg == WM_NCMOUSEMOVE) {
- int x = GET_X_LPARAM(l_param);
- int y = GET_Y_LPARAM(l_param);
- if (last_mouse_x_ != x || last_mouse_y_ != y) {
- last_mouse_x_ = x;
- last_mouse_y_ = y;
+ gfx::Point mouse_pos(l_param);
+ if (last_mouse_x_ != mouse_pos.x() || last_mouse_y_ != mouse_pos.y()) {
+ last_mouse_x_ = mouse_pos.x();
+ last_mouse_y_ = mouse_pos.y();
HideKeyboardTooltip();
- UpdateTooltip(x, y);
+ UpdateTooltip(mouse_pos.x(), mouse_pos.y());
}
// Delay opening of the tooltip just in case the user moves their
« no previous file with comments | « views/controls/tree/tree_view.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698