gesture_listeners.cc 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. // Copyright 2014 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #include "ui/events/gesture_detection/gesture_listeners.h"
  5. namespace ui {
  6. bool SimpleGestureListener::OnDown(const MotionEvent& e) {
  7. return false;
  8. }
  9. void SimpleGestureListener::OnShowPress(const MotionEvent& e) {}
  10. bool SimpleGestureListener::OnSingleTapUp(const MotionEvent& e,
  11. int repeat_count) {
  12. return false;
  13. }
  14. void SimpleGestureListener::OnShortPress(const MotionEvent& e) {}
  15. void SimpleGestureListener::OnLongPress(const MotionEvent& e) {}
  16. bool SimpleGestureListener::OnScroll(const MotionEvent& e1,
  17. const MotionEvent& e2,
  18. const MotionEvent& secondary_pointer_down,
  19. float distance_x,
  20. float distance_y) {
  21. return false;
  22. }
  23. bool SimpleGestureListener::OnFling(const MotionEvent& e1,
  24. const MotionEvent& e2,
  25. float velocity_x,
  26. float velocity_y) {
  27. return false;
  28. }
  29. bool SimpleGestureListener::OnSwipe(const MotionEvent& e1,
  30. const MotionEvent& e2,
  31. float velocity_x,
  32. float velocity_y) {
  33. return false;
  34. }
  35. bool SimpleGestureListener::OnTwoFingerTap(const MotionEvent& e1,
  36. const MotionEvent& e2) {
  37. return false;
  38. }
  39. bool SimpleGestureListener::OnSingleTapConfirmed(const MotionEvent& e) {
  40. return false;
  41. }
  42. bool SimpleGestureListener::OnDoubleTap(const MotionEvent& e) {
  43. return false;
  44. }
  45. bool SimpleGestureListener::OnDoubleTapEvent(const MotionEvent& e) {
  46. return false;
  47. }
  48. } // namespace ui