| Index: chrome/test/base/interactive_test_utils_common_views.cc
|
| diff --git a/chrome/test/base/interactive_test_utils_common_views.cc b/chrome/test/base/interactive_test_utils_common_views.cc
|
| index c28f5b487bf6d4b7afdb0c77f8c820deeda6f97a..fe7fbd594a3357ccc63e8b1e39c229b328e79a37 100644
|
| --- a/chrome/test/base/interactive_test_utils_common_views.cc
|
| +++ b/chrome/test/base/interactive_test_utils_common_views.cc
|
| @@ -17,6 +17,8 @@ void MoveMouseToCenterAndPress(views::View* view,
|
| ui_controls::MouseButton button,
|
| int state,
|
| const base::Closure& closure) {
|
| + if (g_crbug_639350_logging)
|
| + LOG(ERROR) << "crbug.com/639350 MoveMouseToCenterAndPress A";
|
| DCHECK(view);
|
| DCHECK(view->GetWidget());
|
| // Complete any in-progress animation before sending the events so that the
|
| @@ -24,17 +26,27 @@ void MoveMouseToCenterAndPress(views::View* view,
|
| // unreliable animation state.
|
| ui::Layer* layer = view->GetWidget()->GetLayer();
|
| if (layer) {
|
| + if (g_crbug_639350_logging)
|
| + LOG(ERROR) << "crbug.com/639350 MoveMouseToCenterAndPress B";
|
| ui::LayerAnimator* animator = layer->GetAnimator();
|
| if (animator && animator->is_animating())
|
| animator->StopAnimating();
|
| + if (g_crbug_639350_logging)
|
| + LOG(ERROR) << "crbug.com/639350 MoveMouseToCenterAndPress C";
|
| }
|
|
|
| + if (g_crbug_639350_logging)
|
| + LOG(ERROR) << "crbug.com/639350 MoveMouseToCenterAndPress D";
|
| gfx::Point view_center(view->width() / 2, view->height() / 2);
|
| views::View::ConvertPointToScreen(view, &view_center);
|
| + if (g_crbug_639350_logging)
|
| + LOG(ERROR) << "crbug.com/639350 MoveMouseToCenterAndPress E";
|
| ui_controls::SendMouseMoveNotifyWhenDone(
|
| view_center.x(),
|
| view_center.y(),
|
| base::Bind(&internal::ClickTask, button, state, closure));
|
| + if (g_crbug_639350_logging)
|
| + LOG(ERROR) << "crbug.com/639350 MoveMouseToCenterAndPress F";
|
| }
|
|
|
| } // namespace ui_test_utils
|
|
|