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

Unified Diff: third_party/WebKit/Source/web/tests/WebPluginContainerTest.cpp

Issue 2573073003: Collapse the API surface on WebInputEvent via accessor functions. (Closed)
Patch Set: Fix nits Created 3 years, 11 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: third_party/WebKit/Source/web/tests/WebPluginContainerTest.cpp
diff --git a/third_party/WebKit/Source/web/tests/WebPluginContainerTest.cpp b/third_party/WebKit/Source/web/tests/WebPluginContainerTest.cpp
index 0d41df291038ec32a64ca9c9e12b7f445fe353e3..8b428a7b955ef66d27e21b713dabd6e9e1327156 100644
--- a/third_party/WebKit/Source/web/tests/WebPluginContainerTest.cpp
+++ b/third_party/WebKit/Source/web/tests/WebPluginContainerTest.cpp
@@ -456,9 +456,9 @@ class EventTestPlugin : public FakeWebPlugin {
WebInputEventResult handleInputEvent(const WebInputEvent& event,
WebCursorInfo&) override {
- m_lastEventType = event.type;
- if (WebInputEvent::isMouseEventType(event.type) ||
- event.type == WebInputEvent::MouseWheel) {
+ m_lastEventType = event.type();
+ if (WebInputEvent::isMouseEventType(event.type()) ||
+ event.type() == WebInputEvent::MouseWheel) {
const WebMouseEvent& mouseEvent =
static_cast<const WebMouseEvent&>(event);
m_lastMouseEventLocation = IntPoint(mouseEvent.x, mouseEvent.y);

Powered by Google App Engine
This is Rietveld 408576698