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

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

Issue 1216053014: Add WebPointerEvent, WebMouseProperties and WebPointerProperties types. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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 | « public/web/WebMouseProperties.h ('k') | public/web/WebTouchPoint.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 // TODO(e_hakkinen): Replace WebTouchEvent with WebPointerEvent, remove
11 // WebTouchEvent and WebTouchPoint and merge this into
12 // WebPointerEvent.
13 class WebPointerProperties {
14 public:
15 WebPointerProperties()
16 : pointerId(0)
17 , width(0.f)
18 , height(0.f)
19 , pressure(0.f)
20 {
21 }
22
23 // TODO(e_hakkinen): Remove old names once Chromium is updated.
24 union {
25 int pointerId;
26 int id;
27 };
28 union {
29 float width;
30 float radiusX;
31 };
32 union {
33 float height;
34 float radiusY;
35 };
36 union {
37 float pressure;
38 float force;
39 };
40 };
41
42 } // namespace blink
43
44 #endif
OLDNEW
« no previous file with comments | « public/web/WebMouseProperties.h ('k') | public/web/WebTouchPoint.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698