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

Unified Diff: content/public/test/render_view_test.cc

Issue 1780953003: Change the non-blocking event queue to the main thread event queue. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master_wheel_regression_5
Patch Set: Fix android Created 4 years, 9 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 | « content/content_tests.gypi ('k') | content/renderer/android/synchronous_compositor_filter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/test/render_view_test.cc
diff --git a/content/public/test/render_view_test.cc b/content/public/test/render_view_test.cc
index 8b2d2cf715c689340c613d582ad358f062d0660a..ff945b60261097e5841d19d6a0d22e8f70f274b6 100644
--- a/content/public/test/render_view_test.cc
+++ b/content/public/test/render_view_test.cc
@@ -440,17 +440,17 @@ void RenderViewTest::SendNativeKeyEvent(
void RenderViewTest::SendWebKeyboardEvent(
const blink::WebKeyboardEvent& key_event) {
RenderViewImpl* impl = static_cast<RenderViewImpl*>(view_);
- impl->OnMessageReceived(
- InputMsg_HandleInputEvent(0, &key_event, ui::LatencyInfo(),
- InputEventDispatchType::DISPATCH_TYPE_NORMAL));
+ impl->OnMessageReceived(InputMsg_HandleInputEvent(
+ 0, &key_event, ui::LatencyInfo(),
+ InputEventDispatchType::DISPATCH_TYPE_BLOCKING));
}
void RenderViewTest::SendWebMouseEvent(
const blink::WebMouseEvent& mouse_event) {
RenderViewImpl* impl = static_cast<RenderViewImpl*>(view_);
- impl->OnMessageReceived(
- InputMsg_HandleInputEvent(0, &mouse_event, ui::LatencyInfo(),
- InputEventDispatchType::DISPATCH_TYPE_NORMAL));
+ impl->OnMessageReceived(InputMsg_HandleInputEvent(
+ 0, &mouse_event, ui::LatencyInfo(),
+ InputEventDispatchType::DISPATCH_TYPE_BLOCKING));
}
const char* const kGetCoordinatesScript =
@@ -516,13 +516,13 @@ void RenderViewTest::SimulatePointClick(const gfx::Point& point) {
mouse_event.y = point.y();
mouse_event.clickCount = 1;
RenderViewImpl* impl = static_cast<RenderViewImpl*>(view_);
- impl->OnMessageReceived(
- InputMsg_HandleInputEvent(0, &mouse_event, ui::LatencyInfo(),
- InputEventDispatchType::DISPATCH_TYPE_NORMAL));
+ impl->OnMessageReceived(InputMsg_HandleInputEvent(
+ 0, &mouse_event, ui::LatencyInfo(),
+ InputEventDispatchType::DISPATCH_TYPE_BLOCKING));
mouse_event.type = WebInputEvent::MouseUp;
- impl->OnMessageReceived(
- InputMsg_HandleInputEvent(0, &mouse_event, ui::LatencyInfo(),
- InputEventDispatchType::DISPATCH_TYPE_NORMAL));
+ impl->OnMessageReceived(InputMsg_HandleInputEvent(
+ 0, &mouse_event, ui::LatencyInfo(),
+ InputEventDispatchType::DISPATCH_TYPE_BLOCKING));
}
@@ -542,13 +542,13 @@ void RenderViewTest::SimulatePointRightClick(const gfx::Point& point) {
mouse_event.y = point.y();
mouse_event.clickCount = 1;
RenderViewImpl* impl = static_cast<RenderViewImpl*>(view_);
- impl->OnMessageReceived(
- InputMsg_HandleInputEvent(0, &mouse_event, ui::LatencyInfo(),
- InputEventDispatchType::DISPATCH_TYPE_NORMAL));
+ impl->OnMessageReceived(InputMsg_HandleInputEvent(
+ 0, &mouse_event, ui::LatencyInfo(),
+ InputEventDispatchType::DISPATCH_TYPE_BLOCKING));
mouse_event.type = WebInputEvent::MouseUp;
- impl->OnMessageReceived(
- InputMsg_HandleInputEvent(0, &mouse_event, ui::LatencyInfo(),
- InputEventDispatchType::DISPATCH_TYPE_NORMAL));
+ impl->OnMessageReceived(InputMsg_HandleInputEvent(
+ 0, &mouse_event, ui::LatencyInfo(),
+ InputEventDispatchType::DISPATCH_TYPE_BLOCKING));
}
void RenderViewTest::SimulateRectTap(const gfx::Rect& rect) {
@@ -561,9 +561,9 @@ void RenderViewTest::SimulateRectTap(const gfx::Rect& rect) {
gesture_event.type = WebInputEvent::GestureTap;
gesture_event.sourceDevice = blink::WebGestureDeviceTouchpad;
RenderViewImpl* impl = static_cast<RenderViewImpl*>(view_);
- impl->OnMessageReceived(
- InputMsg_HandleInputEvent(0, &gesture_event, ui::LatencyInfo(),
- InputEventDispatchType::DISPATCH_TYPE_NORMAL));
+ impl->OnMessageReceived(InputMsg_HandleInputEvent(
+ 0, &gesture_event, ui::LatencyInfo(),
+ InputEventDispatchType::DISPATCH_TYPE_BLOCKING));
impl->FocusChangeComplete();
}
« no previous file with comments | « content/content_tests.gypi ('k') | content/renderer/android/synchronous_compositor_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698