| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 UI_EVENTS_EVENT_H_ | 5 #ifndef UI_EVENTS_EVENT_H_ |
| 6 #define UI_EVENTS_EVENT_H_ | 6 #define UI_EVENTS_EVENT_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 699 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 710 const PointerDetails& pointer_details() const { return pointer_details_; } | 710 const PointerDetails& pointer_details() const { return pointer_details_; } |
| 711 void set_pointer_details(const PointerDetails& pointer_details); | 711 void set_pointer_details(const PointerDetails& pointer_details); |
| 712 | 712 |
| 713 private: | 713 private: |
| 714 // Adjusts rotation_angle_ to within the acceptable range. | 714 // Adjusts rotation_angle_ to within the acceptable range. |
| 715 void FixRotationAngle(); | 715 void FixRotationAngle(); |
| 716 | 716 |
| 717 // A unique identifier for the touch event. | 717 // A unique identifier for the touch event. |
| 718 uint32_t unique_event_id_; | 718 uint32_t unique_event_id_; |
| 719 | 719 |
| 720 // TODO(726824): Remove rotation_angle_ from ui::TouchEvent, just use twist |
| 721 // in PointerDetails. |
| 720 // Clockwise angle (in degrees) of the major axis from the X axis. Must be | 722 // Clockwise angle (in degrees) of the major axis from the X axis. Must be |
| 721 // less than 180 and non-negative. | 723 // less than 180 and non-negative. |
| 722 float rotation_angle_; | 724 float rotation_angle_; |
| 723 | 725 |
| 724 // Whether the (unhandled) touch event will produce a scroll event (e.g., a | 726 // Whether the (unhandled) touch event will produce a scroll event (e.g., a |
| 725 // touchmove that exceeds the platform slop region, or a touchend that | 727 // touchmove that exceeds the platform slop region, or a touchend that |
| 726 // causes a fling). Defaults to false. | 728 // causes a fling). Defaults to false. |
| 727 bool may_cause_scrolling_; | 729 bool may_cause_scrolling_; |
| 728 | 730 |
| 729 // True if this event should remove the mapping between the native | 731 // True if this event should remove the mapping between the native |
| (...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1054 // dispatched. This field gets a non-zero value only for gestures that are | 1056 // dispatched. This field gets a non-zero value only for gestures that are |
| 1055 // released through TouchDispositionGestureFilter::SendGesture. The gesture | 1057 // released through TouchDispositionGestureFilter::SendGesture. The gesture |
| 1056 // events that aren't fired directly in response to processing a touch-event | 1058 // events that aren't fired directly in response to processing a touch-event |
| 1057 // (e.g. timer fired ones), this id is zero. See crbug.com/618738. | 1059 // (e.g. timer fired ones), this id is zero. See crbug.com/618738. |
| 1058 uint32_t unique_touch_event_id_; | 1060 uint32_t unique_touch_event_id_; |
| 1059 }; | 1061 }; |
| 1060 | 1062 |
| 1061 } // namespace ui | 1063 } // namespace ui |
| 1062 | 1064 |
| 1063 #endif // UI_EVENTS_EVENT_H_ | 1065 #endif // UI_EVENTS_EVENT_H_ |
| OLD | NEW |