Chromium Code Reviews| Index: public/web/WebPointerProperties.h |
| diff --git a/public/web/WebPointerProperties.h b/public/web/WebPointerProperties.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..4fc7413a2762055ec3d1bf975fcb98afcbf40263 |
| --- /dev/null |
| +++ b/public/web/WebPointerProperties.h |
| @@ -0,0 +1,41 @@ |
| +// Copyright (c) 2015 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef WebPointerProperties_h |
| +#define WebPointerProperties_h |
| + |
| +namespace blink { |
| + |
| +// TODO(e_hakkinen): Replace WebTouchEvent with WebPointerEvent, remove |
| +// 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.
|
| +// WebPointerEvent. |
| +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.
|
| +public: |
| + WebPointerProperties() |
| + : button(ButtonNone) |
| + , id(0) |
| + , radiusX(0.f) |
| + , radiusY(0.f) |
| + , force(0.f) |
| + { |
| + } |
| + |
| + enum Button { |
| + ButtonNone = -1, |
| + ButtonLeft, |
| + ButtonMiddle, |
| + ButtonRight |
| + }; |
| + |
| + Button button; |
| + |
| + int id; |
| + float radiusX; |
|
mustaq
2015/07/09 17:47:01
A quick suggestion around the touch orientation pr
|
| + float radiusY; |
| + float force; |
| +}; |
| + |
| +} // namespace blink |
| + |
| +#endif |