| 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 727 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 738 static bool CanConvertFrom(const Event& event); | 738 static bool CanConvertFrom(const Event& event); |
| 739 | 739 |
| 740 PointerEvent(const PointerEvent& pointer_event); | 740 PointerEvent(const PointerEvent& pointer_event); |
| 741 explicit PointerEvent(const MouseEvent& mouse_event); | 741 explicit PointerEvent(const MouseEvent& mouse_event); |
| 742 explicit PointerEvent(const TouchEvent& touch_event); | 742 explicit PointerEvent(const TouchEvent& touch_event); |
| 743 | 743 |
| 744 PointerEvent(EventType type, | 744 PointerEvent(EventType type, |
| 745 const gfx::Point& location, | 745 const gfx::Point& location, |
| 746 const gfx::Point& root_location, | 746 const gfx::Point& root_location, |
| 747 int flags, | 747 int flags, |
| 748 int pointer_id, | |
| 749 int changed_button_flags, | 748 int changed_button_flags, |
| 750 const PointerDetails& pointer_details, | 749 const PointerDetails& pointer_details, |
| 751 base::TimeTicks time_stamp); | 750 base::TimeTicks time_stamp); |
| 752 | 751 |
| 753 int changed_button_flags() const { return changed_button_flags_; } | 752 int changed_button_flags() const { return changed_button_flags_; } |
| 754 void set_changed_button_flags(int flags) { changed_button_flags_ = flags; } | 753 void set_changed_button_flags(int flags) { changed_button_flags_ = flags; } |
| 755 const PointerDetails& pointer_details() const { return details_; } | 754 const PointerDetails& pointer_details() const { return details_; } |
| 756 | 755 |
| 757 private: | 756 private: |
| 758 int changed_button_flags_; | 757 int changed_button_flags_; |
| (...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1035 // dispatched. This field gets a non-zero value only for gestures that are | 1034 // dispatched. This field gets a non-zero value only for gestures that are |
| 1036 // released through TouchDispositionGestureFilter::SendGesture. The gesture | 1035 // released through TouchDispositionGestureFilter::SendGesture. The gesture |
| 1037 // events that aren't fired directly in response to processing a touch-event | 1036 // events that aren't fired directly in response to processing a touch-event |
| 1038 // (e.g. timer fired ones), this id is zero. See crbug.com/618738. | 1037 // (e.g. timer fired ones), this id is zero. See crbug.com/618738. |
| 1039 uint32_t unique_touch_event_id_; | 1038 uint32_t unique_touch_event_id_; |
| 1040 }; | 1039 }; |
| 1041 | 1040 |
| 1042 } // namespace ui | 1041 } // namespace ui |
| 1043 | 1042 |
| 1044 #endif // UI_EVENTS_EVENT_H_ | 1043 #endif // UI_EVENTS_EVENT_H_ |
| OLD | NEW |