Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 27 matching lines...) Expand all Loading... | |
| 38 | 38 |
| 39 class WebTouchPoint { | 39 class WebTouchPoint { |
| 40 public: | 40 public: |
| 41 WebTouchPoint() | 41 WebTouchPoint() |
| 42 : id(0) | 42 : id(0) |
| 43 , state(StateUndefined) | 43 , state(StateUndefined) |
| 44 , radiusX(0) | 44 , radiusX(0) |
| 45 , radiusY(0) | 45 , radiusY(0) |
| 46 , rotationAngle(0) | 46 , rotationAngle(0) |
| 47 , force(0) | 47 , force(0) |
| 48 , tilt(0) | |
| 49 , tiltRad(0) | |
| 50 , tiltOrientation(0) | |
| 51 , tiltOrientationRad(0) | |
| 52 , tiltX(0) | |
| 53 , tiltY(0) | |
| 48 { | 54 { |
| 49 } | 55 } |
| 50 | 56 |
| 51 enum State { | 57 enum State { |
| 52 StateUndefined, | 58 StateUndefined, |
| 53 StateReleased, | 59 StateReleased, |
| 54 StatePressed, | 60 StatePressed, |
| 55 StateMoved, | 61 StateMoved, |
| 56 StateStationary, | 62 StateStationary, |
| 57 StateCancelled, | 63 StateCancelled, |
| 58 }; | 64 }; |
| 59 | 65 |
| 60 int id; | 66 int id; |
| 61 State state; | 67 State state; |
| 62 WebFloatPoint screenPosition; | 68 WebFloatPoint screenPosition; |
| 63 WebFloatPoint position; | 69 WebFloatPoint position; |
| 64 | 70 |
| 65 float radiusX; | 71 float radiusX; |
| 66 float radiusY; | 72 float radiusY; |
| 67 float rotationAngle; | 73 float rotationAngle; |
| 68 float force; | 74 float force; |
| 75 // TODO(e_hakkinen): Leave only either tilt and tiltOrientation, tiltRad and | |
| 76 // tiltOrientationRad or tiltX and tiltY. | |
| 77 float tilt; | |
| 78 float tiltRad; | |
| 79 float tiltOrientation; | |
| 80 float tiltOrientationRad; | |
| 81 float tiltX; | |
|
mustaq
2015/06/17 19:43:28
I think we should use type 'int' for tiltX and til
USE eero AT chromium.org
2015/06/18 11:34:08
Done.
| |
| 82 float tiltY; | |
| 69 }; | 83 }; |
| 70 | 84 |
| 71 } // namespace blink | 85 } // namespace blink |
| 72 | 86 |
| 73 #endif | 87 #endif |
| OLD | NEW |