event_listener_properties.h 882 B

1234567891011121314151617181920212223242526272829303132
  1. // Copyright 2016 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. #ifndef CC_INPUT_EVENT_LISTENER_PROPERTIES_H_
  5. #define CC_INPUT_EVENT_LISTENER_PROPERTIES_H_
  6. namespace cc {
  7. enum class EventListenerClass {
  8. // This includes the pointerrawupdate events which are non-rAF-aligned.
  9. kPointerRawUpdate,
  10. // This value includes "touchstart", "touchmove", and "pointer" events.
  11. kTouchStartOrMove,
  12. // This value includes "wheel" and "mousewheel" events.
  13. kMouseWheel,
  14. // This value includes "touchend" and "touchcancel" events.
  15. kTouchEndOrCancel,
  16. kLast = kTouchEndOrCancel
  17. };
  18. enum class EventListenerProperties {
  19. kNone,
  20. kPassive,
  21. kBlocking,
  22. kBlockingAndPassive,
  23. kLast = kBlockingAndPassive
  24. };
  25. } // namespace cc
  26. #endif // CC_INPUT_EVENT_LISTENER_PROPERTIES_H_