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

Side by Side Diff: content/common/input/web_input_event_traits.cc

Issue 259073005: Revert of [Android] Reland "Provide unhandled tap event notifications" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 7 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/common/input/web_input_event_traits.h" 5 #include "content/common/input/web_input_event_traits.h"
6 6
7 #include <bitset> 7 #include <bitset>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 10
(...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 bool WebInputEventTraits::IgnoresAckDisposition(const WebInputEvent& event) { 337 bool WebInputEventTraits::IgnoresAckDisposition(const WebInputEvent& event) {
338 switch (event.type) { 338 switch (event.type) {
339 case WebInputEvent::MouseDown: 339 case WebInputEvent::MouseDown:
340 case WebInputEvent::MouseUp: 340 case WebInputEvent::MouseUp:
341 case WebInputEvent::MouseEnter: 341 case WebInputEvent::MouseEnter:
342 case WebInputEvent::MouseLeave: 342 case WebInputEvent::MouseLeave:
343 case WebInputEvent::ContextMenu: 343 case WebInputEvent::ContextMenu:
344 case WebInputEvent::GestureScrollBegin: 344 case WebInputEvent::GestureScrollBegin:
345 case WebInputEvent::GestureScrollEnd: 345 case WebInputEvent::GestureScrollEnd:
346 case WebInputEvent::GestureShowPress: 346 case WebInputEvent::GestureShowPress:
347 case WebInputEvent::GestureTap:
347 case WebInputEvent::GestureTapUnconfirmed: 348 case WebInputEvent::GestureTapUnconfirmed:
348 case WebInputEvent::GestureTapDown: 349 case WebInputEvent::GestureTapDown:
349 case WebInputEvent::GestureTapCancel: 350 case WebInputEvent::GestureTapCancel:
350 case WebInputEvent::GesturePinchBegin: 351 case WebInputEvent::GesturePinchBegin:
351 case WebInputEvent::GesturePinchEnd: 352 case WebInputEvent::GesturePinchEnd:
352 case WebInputEvent::TouchCancel: 353 case WebInputEvent::TouchCancel:
353 return true; 354 return true;
354 case WebInputEvent::TouchStart: 355 case WebInputEvent::TouchStart:
355 case WebInputEvent::TouchMove: 356 case WebInputEvent::TouchMove:
356 case WebInputEvent::TouchEnd: 357 case WebInputEvent::TouchEnd:
357 return !static_cast<const WebTouchEvent&>(event).cancelable; 358 return !static_cast<const WebTouchEvent&>(event).cancelable;
358 default: 359 default:
359 return false; 360 return false;
360 } 361 }
361 } 362 }
362 363
363 } // namespace content 364 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698