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

Unified Diff: content/renderer/input/render_widget_input_handler.cc

Issue 2052663004: Remove canScroll from WebMouseWheelEvent as it is unused now. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix tests Created 4 years, 6 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/renderer/input/render_widget_input_handler.cc
diff --git a/content/renderer/input/render_widget_input_handler.cc b/content/renderer/input/render_widget_input_handler.cc
index 7a427303a4524558049836dcab19d3dc0ec1b451..37d31388861bf7e1d942588e3001d9ed0778b682 100644
--- a/content/renderer/input/render_widget_input_handler.cc
+++ b/content/renderer/input/render_widget_input_handler.cc
@@ -389,19 +389,9 @@ void RenderWidgetInputHandler::HandleInputEvent(
// Send mouse wheel events and their disposition to the compositor thread, so
tdresser 2016/06/10 18:06:46 Update comment - not longer mouse wheel events. n
dtapuska 2016/06/10 19:11:17 Done.
// that they can be used to produce the elastic overscroll effect on Mac.
- if (input_event.type == WebInputEvent::MouseWheel) {
- const WebMouseWheelEvent& wheel_event =
- static_cast<const WebMouseWheelEvent&>(input_event);
- if (wheel_event.canScroll) {
- delegate_->ObserveWheelEventAndResult(
- wheel_event,
- event_overscroll ? event_overscroll->latest_overscroll_delta
- : gfx::Vector2dF(),
- processed != WebInputEventResult::NotHandled);
- }
- } else if (input_event.type == WebInputEvent::GestureScrollBegin ||
- input_event.type == WebInputEvent::GestureScrollEnd ||
- input_event.type == WebInputEvent::GestureScrollUpdate) {
+ if (input_event.type == WebInputEvent::GestureScrollBegin ||
+ input_event.type == WebInputEvent::GestureScrollEnd ||
+ input_event.type == WebInputEvent::GestureScrollUpdate) {
const WebGestureEvent& gesture_event =
static_cast<const WebGestureEvent&>(input_event);
if (gesture_event.sourceDevice == blink::WebGestureDeviceTouchpad) {

Powered by Google App Engine
This is Rietveld 408576698