| Index: public/platform/WebPointerProperties.h
|
| diff --git a/public/platform/WebPointerProperties.h b/public/platform/WebPointerProperties.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..d75bdc8eef918eb064728d55632dba838c8f9f6b
|
| --- /dev/null
|
| +++ b/public/platform/WebPointerProperties.h
|
| @@ -0,0 +1,39 @@
|
| +// 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 {
|
| +
|
| +// This class encapsulates the properties that are common between mouse and
|
| +// pointer events and touch points as we transition towards the unified pointer
|
| +// event model.
|
| +// TODO(e_hakkinen): Replace WebTouchEvent with WebPointerEvent, remove
|
| +// WebTouchEvent and WebTouchPoint and merge this into WebPointerEvent.
|
| +class WebPointerProperties {
|
| +public:
|
| + WebPointerProperties()
|
| + : button(ButtonNone)
|
| + , id(0)
|
| + , force(0.f)
|
| + {
|
| + }
|
| +
|
| + enum Button {
|
| + ButtonNone = -1,
|
| + ButtonLeft,
|
| + ButtonMiddle,
|
| + ButtonRight
|
| + };
|
| +
|
| + Button button;
|
| +
|
| + int id;
|
| + float force;
|
| +};
|
| +
|
| +} // namespace blink
|
| +
|
| +#endif
|
|
|