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

Unified Diff: third_party/WebKit/Source/core/events/MouseEvent.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/MouseEvent.cpp
diff --git a/third_party/WebKit/Source/core/events/MouseEvent.cpp b/third_party/WebKit/Source/core/events/MouseEvent.cpp
index 5d64a5f5e3706ea417a46679bf28ccade7d680b9..da7a86940579bae1224eb6205bbe0702544c44a4 100644
--- a/third_party/WebKit/Source/core/events/MouseEvent.cpp
+++ b/third_party/WebKit/Source/core/events/MouseEvent.cpp
@@ -195,8 +195,8 @@ MouseEvent::MouseEvent(
cancelable,
abstractView,
0,
- static_cast<PlatformEvent::Modifiers>(event.modifiers),
- TimeTicks::FromSeconds(event.timeStampSeconds),
+ static_cast<PlatformEvent::Modifiers>(event.modifiers()),
+ TimeTicks::FromSeconds(event.timeStampSeconds()),
syntheticEventType == PlatformMouseEvent::FromTouch
? InputDeviceCapabilities::firesTouchEventsSourceCapabilities()
: InputDeviceCapabilities::
@@ -207,7 +207,7 @@ MouseEvent::MouseEvent(
? PositionType::Positionless
: PositionType::Position),
m_button(0),
- m_buttons(platformModifiersToButtons(event.modifiers)),
+ m_buttons(platformModifiersToButtons(event.modifiers())),
m_syntheticEventType(syntheticEventType),
m_region(region) {
IntPoint rootFrameCoordinates = flooredIntPoint(event.positionInRootFrame());
« no previous file with comments | « third_party/WebKit/Source/core/events/KeyboardEvent.cpp ('k') | third_party/WebKit/Source/core/input/EventHandler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698