Chromium Code Reviews| 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 namespace blink { | 8 namespace blink { |
| 9 | 9 |
| 10 // This class encapsulates the properties that are common between mouse and | 10 // This class encapsulates the properties that are common between mouse and |
| 11 // pointer events and touch points as we transition towards the unified pointer | 11 // pointer events and touch points as we transition towards the unified pointer |
| 12 // event model. | 12 // event model. |
| 13 // TODO(e_hakkinen): Replace WebTouchEvent with WebPointerEvent, remove | 13 // TODO(e_hakkinen): Replace WebTouchEvent with WebPointerEvent, remove |
| 14 // WebTouchEvent and WebTouchPoint and merge this into WebPointerEvent. | 14 // WebTouchEvent and WebTouchPoint and merge this into WebPointerEvent. |
| 15 class WebPointerProperties { | 15 class WebPointerProperties { |
| 16 public: | 16 public: |
| 17 WebPointerProperties() | 17 WebPointerProperties() |
| 18 : button(ButtonNone) | 18 : button(ButtonNone) |
| 19 , id(0) | 19 , id(0) |
| 20 , force(0.f) | 20 , force(0.f) |
| 21 , tiltX(0) | |
| 22 , tiltY(0) | |
| 21 { | 23 { |
| 22 } | 24 } |
| 23 | 25 |
| 24 enum Button { | 26 enum Button { |
| 25 ButtonNone = -1, | 27 ButtonNone = -1, |
| 26 ButtonLeft, | 28 ButtonLeft, |
| 27 ButtonMiddle, | 29 ButtonMiddle, |
| 28 ButtonRight | 30 ButtonRight |
| 29 }; | 31 }; |
| 30 | 32 |
| 31 Button button; | 33 Button button; |
| 32 | 34 |
| 33 int id; | 35 int id; |
| 34 float force; | 36 float force; |
| 37 int tiltX; | |
|
Rick Byers
2015/07/27 14:14:19
Since these are new, can you please add some comme
USE eero AT chromium.org
2015/07/27 17:53:36
Done.
| |
| 38 int tiltY; | |
| 35 }; | 39 }; |
| 36 | 40 |
| 37 } // namespace blink | 41 } // namespace blink |
| 38 | 42 |
| 39 #endif | 43 #endif |
| OLD | NEW |