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

Unified Diff: ui/app_list/search_result_list_view.cc

Issue 10832282: Replace views::MouseEvent with ui::MouseEvent (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 4 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/ui/views/tabs/tab_unittest.cc ('k') | ui/base/event.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/app_list/search_result_list_view.cc
===================================================================
--- ui/app_list/search_result_list_view.cc (revision 151406)
+++ ui/app_list/search_result_list_view.cc (working copy)
@@ -82,13 +82,8 @@
SetSelectedIndex(std::min(selected_index_ + 1, last_visible_index_));
return true;
case ui::VKEY_RETURN:
- if (selected_index_ >= 0) {
- // TODO(beng): remove once views::Event is gone.
- views::MouseEvent synthetic_event(
- ui::ET_MOUSE_RELEASED, 0, 0,
- ui::EF_LEFT_MOUSE_BUTTON | event.flags());
- ButtonPressed(GetResultViewAt(selected_index_), synthetic_event);
- }
+ if (selected_index_ >= 0)
+ ButtonPressed(GetResultViewAt(selected_index_), event);
return true;
default:
break;
« no previous file with comments | « chrome/browser/ui/views/tabs/tab_unittest.cc ('k') | ui/base/event.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698