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

Unified Diff: content/browser/renderer_host/ui_events_helper.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/ui_events_helper.cc
diff --git a/content/browser/renderer_host/ui_events_helper.cc b/content/browser/renderer_host/ui_events_helper.cc
index 01fbe154abe6918b9d464cfa4ef63a7d4fa1534c..5e1a05831d65c1c2d97173790acac23e209c849a 100644
--- a/content/browser/renderer_host/ui_events_helper.cc
+++ b/content/browser/renderer_host/ui_events_helper.cc
@@ -45,7 +45,7 @@ bool MakeUITouchEventsFromWebTouchEvents(
TouchEventCoordinateSystem coordinate_system) {
const blink::WebTouchEvent& touch = touch_with_latency.event;
ui::EventType type = ui::ET_UNKNOWN;
- switch (touch.type) {
+ switch (touch.type()) {
case blink::WebInputEvent::TouchStart:
type = ui::ET_TOUCH_PRESSED;
break;
@@ -63,9 +63,9 @@ bool MakeUITouchEventsFromWebTouchEvents(
return false;
}
- int flags = ui::WebEventModifiersToEventFlags(touch.modifiers);
+ int flags = ui::WebEventModifiersToEventFlags(touch.modifiers());
base::TimeTicks timestamp =
- ui::EventTimeStampFromSeconds(touch.timeStampSeconds);
+ ui::EventTimeStampFromSeconds(touch.timeStampSeconds());
for (unsigned i = 0; i < touch.touchesLength; ++i) {
const blink::WebTouchPoint& point = touch.touches[i];
if (WebTouchPointStateToEventType(point.state) != type)
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_mac_unittest.mm ('k') | content/browser/site_per_process_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698