diff options
author | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-09 21:17:44 +0000 |
---|---|---|
committer | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-09 21:17:44 +0000 |
commit | 938d54ac33044905429ca7f0f55eb7fe2d459321 (patch) | |
tree | ef28224eb9b066b102862c314738873fc081920b /chrome | |
parent | 9343914ea1812ea24afd00724f6a38bf60b2f67c (diff) | |
download | chromium_src-938d54ac33044905429ca7f0f55eb7fe2d459321.zip chromium_src-938d54ac33044905429ca7f0f55eb7fe2d459321.tar.gz chromium_src-938d54ac33044905429ca7f0f55eb7fe2d459321.tar.bz2 |
Use gfx::Point instead of GET_X/Y_LPARAM to reduce a dependency on ATL.
BUG=5027
TEST=none
Review URL: http://codereview.chromium.org/195035
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@25788 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r-- | chrome/browser/views/keyword_editor_view.cc | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/chrome/browser/views/keyword_editor_view.cc b/chrome/browser/views/keyword_editor_view.cc index b12e5c4..587dce6 100644 --- a/chrome/browser/views/keyword_editor_view.cc +++ b/chrome/browser/views/keyword_editor_view.cc @@ -4,11 +4,10 @@ #include "chrome/browser/views/keyword_editor_view.h" -#include <atlbase.h> -#include <atlapp.h> #include <vector> #include "app/l10n_util.h" +#include "base/gfx/point.h" #include "base/stl_util-inl.h" #include "base/string_util.h" #include "chrome/browser/profile.h" @@ -219,9 +218,9 @@ void KeywordEditorView::OnSelectionChanged() { void KeywordEditorView::OnDoubleClick() { if (edit_button_->IsEnabled()) { DWORD pos = GetMessagePos(); - POINT cursor_point = { GET_X_LPARAM(pos), GET_Y_LPARAM(pos) }; + gfx::Point cursor_point(pos); views::MouseEvent event(views::Event::ET_MOUSE_RELEASED, - cursor_point.x, cursor_point.y, + cursor_point.x(), cursor_point.y(), views::Event::EF_LEFT_BUTTON_DOWN); ButtonPressed(edit_button_, event); } @@ -233,7 +232,7 @@ void KeywordEditorView::ButtonPressed( browser::EditSearchEngine(GetWindow()->GetNativeWindow(), NULL, this, profile_); } else if (sender == remove_button_) { - DCHECK(table_view_->SelectedRowCount() == 1); + DCHECK_EQ(1, table_view_->SelectedRowCount()); int last_view_row = -1; for (views::TableView::iterator i = table_view_->SelectionBegin(); i != table_view_->SelectionEnd(); ++i) { |