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..fdf8b52f50337edb5468aafb2d7d5ea971afe609 |
| --- /dev/null |
| +++ b/public/web/WebPointerProperties.h |
| @@ -0,0 +1,31 @@ |
| +// 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 |
| +// WebPointerEvent. |
| +class WebPointerProperties { |
|
Rick Byers
2015/07/06 17:22:38
I like the idea of a common class for the properti
USE eero AT chromium.org
2015/07/07 10:00:56
Acknowledged.
|
| +public: |
| + WebPointerProperties() |
| + : pointerId(0) |
| + , width(0.f) |
| + , height(0.f) |
| + , pressure(0.f) |
| + { |
| + } |
| + |
| + int pointerId; |
| + float width; |
| + float height; |
| + float pressure; |
| +}; |
| + |
| +} // namespace blink |
| + |
| +#endif |