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

Unified Diff: third_party/WebKit/Source/core/events/GestureEvent.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/core/events/GestureEvent.cpp
diff --git a/third_party/WebKit/Source/core/events/GestureEvent.cpp b/third_party/WebKit/Source/core/events/GestureEvent.cpp
index 8aed86381d8523e3681e617c0ce9712b37f4bb60..1943c764be76b4fb6f30cc0307a6a4d3f7f6cb03 100644
--- a/third_party/WebKit/Source/core/events/GestureEvent.cpp
+++ b/third_party/WebKit/Source/core/events/GestureEvent.cpp
@@ -34,7 +34,7 @@ GestureEvent* GestureEvent::create(AbstractView* view,
const WebGestureEvent& event) {
AtomicString eventType;
- switch (event.type) {
+ switch (event.type()) {
case WebInputEvent::GestureScrollBegin:
eventType = EventTypeNames::gesturescrollstart;
break;
@@ -82,8 +82,8 @@ GestureEvent::GestureEvent(const AtomicString& eventType,
true,
view,
0,
- static_cast<PlatformEvent::Modifiers>(event.modifiers),
- TimeTicks::FromSeconds(event.timeStampSeconds),
+ static_cast<PlatformEvent::Modifiers>(event.modifiers()),
+ TimeTicks::FromSeconds(event.timeStampSeconds()),
nullptr),
m_nativeEvent(event) {}
« no previous file with comments | « third_party/WebKit/Source/core/editing/EditorKeyBindings.cpp ('k') | third_party/WebKit/Source/core/events/KeyboardEvent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698