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

Unified Diff: ui/events/gesture_event_details.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, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/events/gesture_detection/gesture_event_data.cc ('k') | ui/events/gesture_event_details.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/gesture_event_details.h
diff --git a/ui/events/gesture_event_details.h b/ui/events/gesture_event_details.h
index 907a940ead868748be92cd5c062abe0fc440ab30..f7bfb90f7df65026604d5e4ee51fc3e44093b80a 100644
--- a/ui/events/gesture_event_details.h
+++ b/ui/events/gesture_event_details.h
@@ -54,6 +54,13 @@ struct EVENTS_BASE_EXPORT GestureEventDetails {
is_source_touch_event_set_non_blocking;
}
+ EventPointerType primary_pointer_type() const {
+ return primary_pointer_type_;
+ }
+ void set_primary_pointer_type(EventPointerType primary_pointer_type) {
+ primary_pointer_type_ = primary_pointer_type;
+ }
+
int touch_points() const { return touch_points_; }
void set_touch_points(int touch_points) {
DCHECK_GT(touch_points, 0);
@@ -236,6 +243,10 @@ struct EVENTS_BASE_EXPORT GestureEventDetails {
bool is_source_touch_event_set_non_blocking_ = false;
+ // The pointer type for the first touch point in the gesture.
+ EventPointerType primary_pointer_type_ =
+ EventPointerType::POINTER_TYPE_UNKNOWN;
+
int touch_points_; // Number of active touch points in the gesture.
// Bounding box is an axis-aligned rectangle that contains all the
« no previous file with comments | « ui/events/gesture_detection/gesture_event_data.cc ('k') | ui/events/gesture_event_details.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698