OLD | NEW |
---|---|
1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2015 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 WebPointerProperties_h | 5 #ifndef WebPointerProperties_h |
6 #define WebPointerProperties_h | 6 #define WebPointerProperties_h |
7 | 7 |
8 #include <cstdint> | 8 #include <cstdint> |
9 #include <limits> | 9 #include <limits> |
10 | 10 |
(...skipping 28 matching lines...) Expand all Loading... | |
39 | 39 |
40 enum class PointerType { | 40 enum class PointerType { |
41 kUnknown, | 41 kUnknown, |
42 kMouse, | 42 kMouse, |
43 kPen, | 43 kPen, |
44 kEraser, | 44 kEraser, |
45 kTouch, | 45 kTouch, |
46 kLastEntry = kTouch // Must be the last entry in the list | 46 kLastEntry = kTouch // Must be the last entry in the list |
47 }; | 47 }; |
48 | 48 |
49 enum class PointerAction { | |
50 kPointerUndefined, | |
use mustaq_at_chromium.org
2017/05/08 17:07:31
kPointerUndefined is unused in Blink, and WebTouch
Navid Zolghadr
2017/06/08 16:38:26
I did the same idea in the new CL. But I don't add
| |
51 kPointerUp, | |
52 kPointerDown, | |
53 kPointerMove, | |
54 kPointerCancel, | |
55 kPointerActionMax = kPointerCancel | |
56 }; | |
57 | |
49 WebPointerProperties() | 58 WebPointerProperties() |
50 : id(0), | 59 : id(0), |
51 force(std::numeric_limits<float>::quiet_NaN()), | 60 force(std::numeric_limits<float>::quiet_NaN()), |
52 tilt_x(0), | 61 tilt_x(0), |
53 tilt_y(0), | 62 tilt_y(0), |
54 tangential_pressure(0.0f), | 63 tangential_pressure(0.0f), |
55 twist(0), | 64 twist(0), |
56 button(Button::kNoButton), | 65 button(Button::kNoButton), |
57 pointer_type(PointerType::kUnknown), | 66 pointer_type(PointerType::kUnknown), |
58 movement_x(0), | 67 movement_x(0), |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
101 | 110 |
102 PointerType pointer_type; | 111 PointerType pointer_type; |
103 | 112 |
104 int movement_x; | 113 int movement_x; |
105 int movement_y; | 114 int movement_y; |
106 }; | 115 }; |
107 | 116 |
108 } // namespace blink | 117 } // namespace blink |
109 | 118 |
110 #endif | 119 #endif |
OLD | NEW |