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

Unified Diff: content/browser/frame_host/render_widget_host_view_child_frame.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/frame_host/render_widget_host_view_child_frame.cc
diff --git a/content/browser/frame_host/render_widget_host_view_child_frame.cc b/content/browser/frame_host/render_widget_host_view_child_frame.cc
index a574092f22652f93d1717ff5620cde6807dd82c5..ac8340effa6b81ab8317d013cf43a1857f42d042 100644
--- a/content/browser/frame_host/render_widget_host_view_child_frame.cc
+++ b/content/browser/frame_host/render_widget_host_view_child_frame.cc
@@ -349,9 +349,9 @@ void RenderWidgetHostViewChildFrame::GestureEventAck(
// RenderWidgetHostInputEventRouter.
if (!frame_connector_)
return;
- if ((event.type == blink::WebInputEvent::GestureScrollUpdate &&
+ if ((event.type() == blink::WebInputEvent::GestureScrollUpdate &&
not_consumed) ||
- event.type == blink::WebInputEvent::GestureScrollEnd)
+ event.type() == blink::WebInputEvent::GestureScrollEnd)
frame_connector_->BubbleScrollEvent(event);
}
@@ -503,8 +503,8 @@ void RenderWidgetHostViewChildFrame::ProcessMouseWheelEvent(
void RenderWidgetHostViewChildFrame::ProcessTouchEvent(
const blink::WebTouchEvent& event,
const ui::LatencyInfo& latency) {
- if (event.type == blink::WebInputEvent::TouchStart &&
- frame_connector_ && !frame_connector_->HasFocus()) {
+ if (event.type() == blink::WebInputEvent::TouchStart && frame_connector_ &&
+ !frame_connector_->HasFocus()) {
frame_connector_->FocusRootView();
}
@@ -700,7 +700,7 @@ void RenderWidgetHostViewChildFrame::SetNeedsBeginFrames(
InputEventAckState RenderWidgetHostViewChildFrame::FilterInputEvent(
const blink::WebInputEvent& input_event) {
- if (input_event.type == blink::WebInputEvent::GestureFlingStart) {
+ if (input_event.type() == blink::WebInputEvent::GestureFlingStart) {
const blink::WebGestureEvent& gesture_event =
static_cast<const blink::WebGestureEvent&>(input_event);
// Zero-velocity touchpad flings are an Aura-specific signal that the

Powered by Google App Engine
This is Rietveld 408576698