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

Unified Diff: chrome/test/base/interactive_test_utils_common_views.cc

Issue 2286853002: Add temporary debug logging for crbug.com/639350. (Closed)
Patch Set: Add logging for mouse moves and events. Created 4 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/test/base/interactive_test_utils.cc ('k') | chrome/test/base/interactive_test_utils_views.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « chrome/test/base/interactive_test_utils.cc ('k') | chrome/test/base/interactive_test_utils_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698