Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(96)

Side by Side Diff: public/platform/WebPointerProperties.h

Issue 1212113007: Add WebPointerProperties type. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Comments, do not touch radiusX/Y, relocate WebPointerProperties.h Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/web/WebInputEvent.cpp ('k') | public/web/WebInputEvent.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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 // This class encapsulates the properties that are common between mouse and
11 // pointer events and touch points as we transition towards the unified pointer
12 // event model.
13 // TODO(e_hakkinen): Replace WebTouchEvent with WebPointerEvent, remove
14 // WebTouchEvent and WebTouchPoint and merge this into WebPointerEvent.
15 class WebPointerProperties {
16 public:
17 WebPointerProperties()
18 : button(ButtonNone)
19 , id(0)
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 force;
35 };
36
37 } // namespace blink
38
39 #endif
OLDNEW
« no previous file with comments | « Source/web/WebInputEvent.cpp ('k') | public/web/WebInputEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698