Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef WebPointerProperties_h | |
| 6 #define WebPointerProperties_h | |
| 7 | |
| 8 namespace blink { | |
| 9 | |
| 10 // TODO(e_hakkinen): Replace WebTouchEvent with WebPointerEvent, remove | |
| 11 // WebTouchEvent and WebTouchPoint and merge this into | |
|
Rick Byers
2015/07/09 00:44:26
nit: don't add extra space at the beginning of the
USE eero AT chromium.org
2015/07/14 23:44:13
Done.
| |
| 12 // WebPointerEvent. | |
| 13 class WebPointerProperties { | |
|
Rick Byers
2015/07/09 00:44:27
Please add a high level description that describes
USE eero AT chromium.org
2015/07/14 23:44:13
Done.
| |
| 14 public: | |
| 15 WebPointerProperties() | |
| 16 : button(ButtonNone) | |
| 17 , id(0) | |
| 18 , radiusX(0.f) | |
| 19 , radiusY(0.f) | |
| 20 , force(0.f) | |
| 21 { | |
| 22 } | |
| 23 | |
| 24 enum Button { | |
| 25 ButtonNone = -1, | |
| 26 ButtonLeft, | |
| 27 ButtonMiddle, | |
| 28 ButtonRight | |
| 29 }; | |
| 30 | |
| 31 Button button; | |
| 32 | |
| 33 int id; | |
| 34 float radiusX; | |
|
mustaq
2015/07/09 17:47:01
A quick suggestion around the touch orientation pr
| |
| 35 float radiusY; | |
| 36 float force; | |
| 37 }; | |
| 38 | |
| 39 } // namespace blink | |
| 40 | |
| 41 #endif | |
| OLD | NEW |