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

Unified Diff: content/browser/renderer_host/input/motion_event_web.cc

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: content/browser/renderer_host/input/motion_event_web.cc
diff --git a/content/browser/renderer_host/input/motion_event_web.cc b/content/browser/renderer_host/input/motion_event_web.cc
index 166d34d58fbe3445faef5e192ece05ce556224ed..8db90a2c14ff57f2b00f686acbefb436589fcc4e 100644
--- a/content/browser/renderer_host/input/motion_event_web.cc
+++ b/content/browser/renderer_host/input/motion_event_web.cc
@@ -23,7 +23,7 @@ namespace {
ui::MotionEvent::Action GetActionFrom(const WebTouchEvent& event) {
DCHECK(event.touchesLength);
- switch (event.type) {
+ switch (event.type()) {
case WebInputEvent::TouchStart:
if (WebTouchEventTraits::AllTouchPointsHaveState(
event, WebTouchPoint::StatePressed))
@@ -188,7 +188,7 @@ float MotionEventWeb::GetTilt(size_t pointer_index) const {
base::TimeTicks MotionEventWeb::GetEventTime() const {
return base::TimeTicks() +
- base::TimeDelta::FromMicroseconds(event_.timeStampSeconds *
+ base::TimeDelta::FromMicroseconds(event_.timeStampSeconds() *
base::Time::kMicrosecondsPerSecond);
}
@@ -219,7 +219,7 @@ int MotionEventWeb::GetButtonState() const {
}
int MotionEventWeb::GetFlags() const {
- return ui::WebEventModifiersToEventFlags(event_.modifiers);
+ return ui::WebEventModifiersToEventFlags(event_.modifiers());
}
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698