| 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 13 matching lines...) Expand all Loading... |
| 24 , tiltY(0) | 24 , tiltY(0) |
| 25 , button(Button::NoButton) | 25 , button(Button::NoButton) |
| 26 , pointerType(PointerType::Unknown) | 26 , pointerType(PointerType::Unknown) |
| 27 { | 27 { |
| 28 } | 28 } |
| 29 | 29 |
| 30 enum class Button { | 30 enum class Button { |
| 31 NoButton = -1, | 31 NoButton = -1, |
| 32 Left, | 32 Left, |
| 33 Middle, | 33 Middle, |
| 34 Right | 34 Right, |
| 35 X1, |
| 36 X2, |
| 37 Eraser |
| 38 }; |
| 39 |
| 40 enum class Buttons : unsigned { |
| 41 NoButton = 0, |
| 42 Left = 1 << 0, |
| 43 Right = 1 << 1, |
| 44 Middle = 1 << 2, |
| 45 X1 = 1 << 3, |
| 46 X2 = 1 << 4, |
| 47 Eraser = 1 << 5 |
| 35 }; | 48 }; |
| 36 | 49 |
| 37 enum class PointerType { | 50 enum class PointerType { |
| 38 Unknown, | 51 Unknown, |
| 39 Mouse, | 52 Mouse, |
| 40 Pen, | 53 Pen, |
| 41 Eraser, | 54 Eraser, |
| 42 Touch, | 55 Touch, |
| 43 LastEntry = Touch // Must be the last entry in the list | 56 LastEntry = Touch // Must be the last entry in the list |
| 44 }; | 57 }; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 55 int tiltX; | 68 int tiltX; |
| 56 int tiltY; | 69 int tiltY; |
| 57 | 70 |
| 58 Button button; | 71 Button button; |
| 59 PointerType pointerType; | 72 PointerType pointerType; |
| 60 }; | 73 }; |
| 61 | 74 |
| 62 } // namespace blink | 75 } // namespace blink |
| 63 | 76 |
| 64 #endif | 77 #endif |
| OLD | NEW |