pointer_device.cc 913 B

12345678910111213141516171819202122232425262728293031323334
  1. // Copyright (c) 2013 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/base/pointer/pointer_device.h"
  5. namespace ui {
  6. // Platforms supporting touch link in an alternate implementation of this
  7. // method.
  8. TouchScreensAvailability GetTouchScreensAvailability() {
  9. return TouchScreensAvailability::NONE;
  10. }
  11. int MaxTouchPoints() {
  12. return 0;
  13. }
  14. std::pair<int, int> GetAvailablePointerAndHoverTypes() {
  15. // Assume a non-touch-device with a mouse
  16. return std::make_pair(POINTER_TYPE_FINE, HOVER_TYPE_HOVER);
  17. }
  18. PointerType GetPrimaryPointerType(int available_pointer_types) {
  19. // Assume a non-touch-device with a mouse
  20. return POINTER_TYPE_FINE;
  21. }
  22. HoverType GetPrimaryHoverType(int available_hover_types) {
  23. // Assume a non-touch-device with a mouse
  24. return HOVER_TYPE_HOVER;
  25. }
  26. } // namespace ui