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

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

Issue 13931009: Add latency info to input events sent to RenderWidget. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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_browser.gypi ('k') | content/renderer/gpu/input_event_filter_unittest.cc » ('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 da2513e5c8b3ef334229088ef913a6391680a874..410ee6ea0d8784e9f5784df2561150aa7abd2ff5 100644
--- a/content/public/test/render_view_test.cc
+++ b/content/public/test/render_view_test.cc
@@ -216,14 +216,15 @@ void RenderViewTest::SendNativeKeyEvent(
void RenderViewTest::SendWebKeyboardEvent(
const WebKit::WebKeyboardEvent& key_event) {
RenderViewImpl* impl = static_cast<RenderViewImpl*>(view_);
- impl->OnMessageReceived(InputMsg_HandleInputEvent(0, &key_event, false));
+ impl->OnMessageReceived(
+ InputMsg_HandleInputEvent(0, &key_event, cc::LatencyInfo(), false));
}
void RenderViewTest::SendWebMouseEvent(
const WebKit::WebMouseEvent& mouse_event) {
RenderViewImpl* impl = static_cast<RenderViewImpl*>(view_);
impl->OnMessageReceived(
- InputMsg_HandleInputEvent(0, &mouse_event, false));
+ InputMsg_HandleInputEvent(0, &mouse_event, cc::LatencyInfo(), false));
}
const char* const kGetCoordinatesScript =
@@ -282,7 +283,7 @@ bool RenderViewTest::SimulateElementClick(const std::string& element_id) {
mouse_event.y = bounds.CenterPoint().y();
mouse_event.clickCount = 1;
scoped_ptr<IPC::Message> input_message(
- new InputMsg_HandleInputEvent(0, &mouse_event, false));
+ new InputMsg_HandleInputEvent(0, &mouse_event, cc::LatencyInfo(), false));
RenderViewImpl* impl = static_cast<RenderViewImpl*>(view_);
impl->OnMessageReceived(*input_message);
return true;
« no previous file with comments | « content/content_browser.gypi ('k') | content/renderer/gpu/input_event_filter_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698