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

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

Issue 14487003: Add a new pair of IPC categories for messages that need handling as input events (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: addresses feedback Created 7 years, 8 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_common.gypi ('k') | content/renderer/gpu/input_event_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 0b5cafa62d3b26d00f5bf3723887e0b7cb915d81..01460740524c73e273ca3d5560d643e8b22972b3 100644
--- a/content/public/test/render_view_test.cc
+++ b/content/public/test/render_view_test.cc
@@ -5,6 +5,7 @@
#include "content/public/test/render_view_test.h"
#include "base/run_loop.h"
+#include "content/common/input_messages.h"
#include "content/common/view_messages.h"
#include "content/public/browser/native_web_keyboard_event.h"
#include "content/public/common/renderer_preferences.h"
@@ -215,13 +216,14 @@ void RenderViewTest::SendNativeKeyEvent(
void RenderViewTest::SendWebKeyboardEvent(
const WebKit::WebKeyboardEvent& key_event) {
RenderViewImpl* impl = static_cast<RenderViewImpl*>(view_);
- impl->OnMessageReceived(ViewMsg_HandleInputEvent(0, &key_event, false));
+ impl->OnMessageReceived(InputMsg_HandleInputEvent(0, &key_event, false));
}
void RenderViewTest::SendWebMouseEvent(
const WebKit::WebMouseEvent& mouse_event) {
RenderViewImpl* impl = static_cast<RenderViewImpl*>(view_);
- impl->OnMessageReceived(ViewMsg_HandleInputEvent(0, &mouse_event, false));
+ impl->OnMessageReceived(
+ InputMsg_HandleInputEvent(0, &mouse_event, false));
}
const char* const kGetCoordinatesScript =
@@ -280,7 +282,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 ViewMsg_HandleInputEvent(0, &mouse_event, false));
+ new InputMsg_HandleInputEvent(0, &mouse_event, false));
RenderViewImpl* impl = static_cast<RenderViewImpl*>(view_);
impl->OnMessageReceived(*input_message);
return true;
« no previous file with comments | « content/content_common.gypi ('k') | content/renderer/gpu/input_event_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698