| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #ifndef UI_BASE_TOUCH_TOUCH_DEVICE_H_ | 5 #ifndef UI_BASE_TOUCH_TOUCH_DEVICE_H_ |
| 6 #define UI_BASE_TOUCH_TOUCH_DEVICE_H_ | 6 #define UI_BASE_TOUCH_TOUCH_DEVICE_H_ |
| 7 | 7 |
| 8 #include <tuple> | 8 #include <tuple> |
| 9 | 9 |
| 10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 // GENERATED_JAVA_ENUM_PACKAGE: org.chromium.ui.base | 55 // GENERATED_JAVA_ENUM_PACKAGE: org.chromium.ui.base |
| 56 // GENERATED_JAVA_PREFIX_TO_STRIP: HOVER_TYPE_ | 56 // GENERATED_JAVA_PREFIX_TO_STRIP: HOVER_TYPE_ |
| 57 enum HoverType { | 57 enum HoverType { |
| 58 HOVER_TYPE_NONE = 1 << 0, | 58 HOVER_TYPE_NONE = 1 << 0, |
| 59 HOVER_TYPE_FIRST = HOVER_TYPE_NONE, | 59 HOVER_TYPE_FIRST = HOVER_TYPE_NONE, |
| 60 HOVER_TYPE_HOVER = 1 << 1, | 60 HOVER_TYPE_HOVER = 1 << 1, |
| 61 HOVER_TYPE_LAST = HOVER_TYPE_HOVER | 61 HOVER_TYPE_LAST = HOVER_TYPE_HOVER |
| 62 }; | 62 }; |
| 63 | 63 |
| 64 UI_BASE_EXPORT std::pair<int, int> GetAvailablePointerAndHoverTypes(); | 64 UI_BASE_EXPORT std::pair<int, int> GetAvailablePointerAndHoverTypes(); |
| 65 UI_BASE_EXPORT void SetAvailablePointerAndHoverTypesForTesting( |
| 66 int available_pointer_types, |
| 67 int available_hover_types); |
| 65 UI_BASE_EXPORT PointerType GetPrimaryPointerType(int available_pointer_types); | 68 UI_BASE_EXPORT PointerType GetPrimaryPointerType(int available_pointer_types); |
| 66 UI_BASE_EXPORT HoverType GetPrimaryHoverType(int available_hover_types); | 69 UI_BASE_EXPORT HoverType GetPrimaryHoverType(int available_hover_types); |
| 67 | 70 |
| 68 } // namespace ui | 71 } // namespace ui |
| 69 | 72 |
| 70 #endif // UI_BASE_TOUCH_TOUCH_DEVICE_H_ | 73 #endif // UI_BASE_TOUCH_TOUCH_DEVICE_H_ |
| OLD | NEW |