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

Unified Diff: views/controls/tree/tree_view.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 | « chrome/browser/views/keyword_editor_view.cc ('k') | views/widget/aero_tooltip_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/controls/tree/tree_view.cc
===================================================================
--- views/controls/tree/tree_view.cc (revision 25700)
+++ views/controls/tree/tree_view.cc (working copy)
@@ -4,15 +4,14 @@
#include "views/controls/tree/tree_view.h"
-#include <atlbase.h>
-#include <atlapp.h>
-#include <atlmisc.h>
+#include <vector>
#include "app/gfx/canvas_paint.h"
#include "app/gfx/icon_util.h"
#include "app/l10n_util.h"
#include "app/l10n_util_win.h"
#include "app/resource_bundle.h"
+#include "base/gfx/point.h"
#include "base/stl_util-inl.h"
#include "base/win_util.h"
#include "grit/app_resources.h"
@@ -53,7 +52,7 @@
void TreeView::SetModel(TreeModel* model) {
if (model == model_)
return;
- if(model_ && tree_view_)
+ if (model_ && tree_view_)
DeleteRootItems();
if (model_)
model_->SetObserver(NULL);
@@ -727,8 +726,7 @@
case WM_RBUTTONDOWN:
if (tree->select_on_right_mouse_down_) {
TVHITTESTINFO hit_info;
- hit_info.pt.x = GET_X_LPARAM(l_param);
- hit_info.pt.y = GET_Y_LPARAM(l_param);
+ hit_info.pt = gfx::Point(l_param).ToPOINT();
HTREEITEM hit_item = TreeView_HitTest(window, &hit_info);
if (hit_item && (hit_info.flags & (TVHT_ONITEM | TVHT_ONITEMRIGHT |
TVHT_ONITEMINDENT)) != 0)
« no previous file with comments | « chrome/browser/views/keyword_editor_view.cc ('k') | views/widget/aero_tooltip_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698