Commit fcd069be authored by Dave Tapuska's avatar Dave Tapuska Committed by Commit Bot

Remove some unneeded methods.

In https://crrev.com/0bb413bf71 WillHandleGestureEvent was no longer
needed on the public API.
In https://crrev.com//23748d4a10c7a DidHandleGestureScrollEvent was
no longer needed on the public API.

BUG=1097816

Change-Id: I5981bb76f875bde137aa50c88cb5516d12b7ea02
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2424503
Commit-Queue: Dave Tapuska <dtapuska@chromium.org>
Reviewed-by: default avatardanakj <danakj@chromium.org>
Cr-Commit-Position: refs/heads/master@{#809988}
parent affe1977
......@@ -69,7 +69,6 @@ struct ImeTextSpan;
namespace blink {
class WebDragData;
class WebMouseEvent;
class WebGestureEvent;
struct WebFloatRect;
class WebWidget;
class WebLocalFrame;
......@@ -202,20 +201,6 @@ class WebWidgetClient {
// from background inactive to active.
virtual void RecordTimeToFirstActivePaint(base::TimeDelta duration) {}
// Returns whether we handled a GestureScrollEvent.
virtual void DidHandleGestureScrollEvent(
const WebGestureEvent& gesture_event,
const gfx::Vector2dF& unused_delta,
const cc::OverscrollBehavior& overscroll_behavior,
bool event_processed) {}
// Called before gesture events are processed and allows the
// client to handle the event itself. Return true if event was handled
// and further processing should stop.
virtual bool WillHandleGestureEvent(const WebGestureEvent& event) {
return false;
}
// Called before mouse events are processed and allows the
// client to handle the event itself. Return true if event was handled
// and further processing should stop.
......
......@@ -662,7 +662,7 @@ void WebPagePopupImpl::BeginMainFrame(base::TimeTicks last_frame_time) {
}
bool WebPagePopupImpl::WillHandleGestureEvent(const WebGestureEvent& event) {
return WidgetClient()->WillHandleGestureEvent(event);
return false;
}
bool WebPagePopupImpl::WillHandleMouseEvent(const WebMouseEvent& event) {
......@@ -674,8 +674,6 @@ void WebPagePopupImpl::ObserveGestureEventAndResult(
const gfx::Vector2dF& unused_delta,
const cc::OverscrollBehavior& overscroll_behavior,
bool event_processed) {
WidgetClient()->DidHandleGestureScrollEvent(
gesture_event, unused_delta, overscroll_behavior, event_processed);
}
WebInputEventResult WebPagePopupImpl::HandleCharEvent(
......
......@@ -1050,7 +1050,7 @@ bool WebFrameWidgetBase::WillHandleGestureEvent(const WebGestureEvent& event) {
possible_drag_event_info_.source = ui::mojom::blink::DragEventSource::kTouch;
possible_drag_event_info_.location =
gfx::ToFlooredPoint(event.PositionInScreen());
return Client()->WillHandleGestureEvent(event);
return false;
}
bool WebFrameWidgetBase::WillHandleMouseEvent(const WebMouseEvent& event) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment