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

Unified Diff: content/browser/renderer_host/input/input_router_impl.cc

Issue 2686683004: ABANDONED CL: WaitForChildFrameSurfaceReady to avoid flaky test hangs. (Closed)
Patch Set: Created 3 years, 10 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
Index: content/browser/renderer_host/input/input_router_impl.cc
diff --git a/content/browser/renderer_host/input/input_router_impl.cc b/content/browser/renderer_host/input/input_router_impl.cc
index 1dc0f2ccd07bfd3a03d0e7b821edf4bd3e263b45..b0ead629a878809d9bb4241985e569b4f40430da 100644
--- a/content/browser/renderer_host/input/input_router_impl.cc
+++ b/content/browser/renderer_host/input/input_router_impl.cc
@@ -8,6 +8,10 @@
#include <utility>
+#include "base/debug/debugger.h"
+// TODO: DO NOT SUBMIT: Remove ad-hoc debugging before submitting.
+#include "base/debug/stack_trace.h"
+
#include "base/auto_reset.h"
#include "base/command_line.h"
#include "base/memory/ptr_util.h"
@@ -437,8 +441,27 @@ bool InputRouterImpl::OfferToRenderer(const WebInputEvent& input_event,
// or in-flight event count metrics.
if (dispatch_type == InputEventDispatchType::DISPATCH_TYPE_BLOCKING)
client_->IncrementInFlightEventCount(input_event.type());
+
+ if (WebInputEvent::isMouseEventType(input_event.type())) {
+ const WebMouseEvent* me = static_cast<const WebMouseEvent*>(&input_event);
+ LOG(ERROR) << "; button = " << static_cast<int>(me->button)
+ << "; local = (" << me->x << ", " << me->y << ")"
+ << "; global = (" << me->globalX << ", " << me->globalY << ")";
+ if (me->button == blink::WebPointerProperties::Button::NoButton &&
+ me->x == 55) {
+ static int counter = 0;
+ counter++;
+ if (counter == 3) {
+ LOG(ERROR) << "; stack = " << base::debug::StackTrace().ToString();
+ }
+ }
+ }
+
return true;
}
+
+ LOG(ERROR) << "OfferToRenderer - Send returned false - !!!!!!!!!!!";
+
return false;
}
« no previous file with comments | « chrome/browser/ui/views/drag_and_drop_interactive_uitest.cc ('k') | content/browser/site_per_process_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698