Chromium Code Reviews| Index: ui/app_list/views/test/apps_grid_view_test_api.cc |
| diff --git a/ui/app_list/views/test/apps_grid_view_test_api.cc b/ui/app_list/views/test/apps_grid_view_test_api.cc |
| index b87ef28a845a577ef4941530b0aee888dde5267b..20f100700b7a46cca1420561bb4fc01ca7c5aca8 100644 |
| --- a/ui/app_list/views/test/apps_grid_view_test_api.cc |
| +++ b/ui/app_list/views/test/apps_grid_view_test_api.cc |
| @@ -4,7 +4,9 @@ |
| #include "ui/app_list/views/test/apps_grid_view_test_api.h" |
| +#include "ui/app_list/views/app_list_item_view.h" |
| #include "ui/app_list/views/apps_grid_view.h" |
| +#include "ui/events/event.h" |
| namespace app_list { |
| namespace test { |
| @@ -29,5 +31,11 @@ void AppsGridViewTestApi::SetPageFlipDelay(int page_flip_delay_in_ms) { |
| view_->page_flip_delay_in_ms_ = page_flip_delay_in_ms; |
| } |
| +void AppsGridViewTestApi::PressItemAt(int index) { |
| + view_->ButtonPressed( |
|
tapted
2014/04/01 06:28:27
what about
GetViewAtModelIndex(index)->OnKeyPres
calamity
2014/04/01 08:08:46
Done.
|
| + static_cast<AppListItemView*>(GetViewAtModelIndex(index)), |
| + ui::MouseEvent(ui::ET_MOUSE_PRESSED, gfx::PointF(), gfx::PointF(), 0, 0)); |
| +} |
| + |
| } // namespace test |
| } // namespace app_list |