scroll_types.h 581 B

1234567891011121314151617181920212223
  1. // Copyright 2019 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 UI_EVENTS_TYPES_SCROLL_TYPES_H_
  5. #define UI_EVENTS_TYPES_SCROLL_TYPES_H_
  6. namespace ui {
  7. enum class ScrollGranularity : uint8_t {
  8. kScrollByPrecisePixel = 0,
  9. kFirstScrollGranularity = kScrollByPrecisePixel,
  10. kScrollByPixel,
  11. kScrollByLine,
  12. kScrollByPage,
  13. kScrollByDocument,
  14. kScrollByPercentage,
  15. kMaxValue = kScrollByPercentage
  16. };
  17. } // namespace ui
  18. #endif // UI_EVENTS_TYPES_SCROLL_TYPES_H_