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

Side by Side Diff: third_party/WebKit/public/platform/WebGestureEvent.h

Issue 2925883003: [Touch Adjustment] Pass primary_pointer_type to WebGestureEvent and disable adjustment for stylus (Closed)
Patch Set: jochen and dtapuska's comments: Add default value Created 3 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef WebGestureEvent_h 5 #ifndef WebGestureEvent_h
6 #define WebGestureEvent_h 6 #define WebGestureEvent_h
7 7
8 #include "WebFloatSize.h" 8 #include "WebFloatSize.h"
9 #include "WebGestureDevice.h" 9 #include "WebGestureDevice.h"
10 #include "WebInputEvent.h" 10 #include "WebInputEvent.h"
(...skipping 21 matching lines...) Expand all
32 32
33 // TODO(mustaq): Make these coordinates private & fractional, as in 33 // TODO(mustaq): Make these coordinates private & fractional, as in
34 // WebMouseEvent.h . 34 // WebMouseEvent.h .
35 int x; 35 int x;
36 int y; 36 int y;
37 int global_x; 37 int global_x;
38 int global_y; 38 int global_y;
39 WebGestureDevice source_device; 39 WebGestureDevice source_device;
40 bool is_source_touch_event_set_non_blocking; 40 bool is_source_touch_event_set_non_blocking;
41 41
42 // The pointer type for the first touch point in the gesture.
43 WebPointerProperties::PointerType primary_pointer_type =
44 WebPointerProperties::PointerType::kUnknown;
45
42 // If the WebGestureEvent has sourceDevice=WebGestureDeviceTouchscreen, this 46 // If the WebGestureEvent has sourceDevice=WebGestureDeviceTouchscreen, this
43 // field contains the unique identifier for the touch event that released 47 // field contains the unique identifier for the touch event that released
44 // this event at TouchDispositionGestureFilter. If the WebGestureEvents was 48 // this event at TouchDispositionGestureFilter. If the WebGestureEvents was
45 // not released through a touch event (e.g. timer-released gesture events or 49 // not released through a touch event (e.g. timer-released gesture events or
46 // gesture events with sourceDevice!=WebGestureDeviceTouchscreen), the field 50 // gesture events with sourceDevice!=WebGestureDeviceTouchscreen), the field
47 // contains 0. See crbug.com/618738. 51 // contains 0. See crbug.com/618738.
48 uint32_t unique_touch_event_id; 52 uint32_t unique_touch_event_id;
49 53
50 // This field exists to allow BrowserPlugin to mark GestureScroll events as 54 // This field exists to allow BrowserPlugin to mark GestureScroll events as
51 // 'resent' to handle the case where an event is not consumed when first 55 // 'resent' to handle the case where an event is not consumed when first
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 return false; 244 return false;
241 } 245 }
242 } 246 }
243 }; 247 };
244 248
245 #pragma pack(pop) 249 #pragma pack(pop)
246 250
247 } // namespace blink 251 } // namespace blink
248 252
249 #endif // WebGestureEvent_h 253 #endif // WebGestureEvent_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/exported/WebInputEvent.cpp ('k') | ui/events/blink/blink_event_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698