| 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 "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/event_types.h" | 10 #include "base/event_types.h" |
| (...skipping 745 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 756 // Used for tests. | 756 // Used for tests. |
| 757 ScrollEvent(EventType type, | 757 ScrollEvent(EventType type, |
| 758 const gfx::PointF& location, | 758 const gfx::PointF& location, |
| 759 base::TimeDelta time_stamp, | 759 base::TimeDelta time_stamp, |
| 760 int flags, | 760 int flags, |
| 761 float x_offset, | 761 float x_offset, |
| 762 float y_offset, | 762 float y_offset, |
| 763 float x_offset_ordinal, | 763 float x_offset_ordinal, |
| 764 float y_offset_ordinal, | 764 float y_offset_ordinal, |
| 765 int finger_count); | 765 int finger_count); |
| 766 ScrollEvent(EventType type, |
| 767 const gfx::PointF& location, |
| 768 const gfx::PointF& root_location, |
| 769 base::TimeDelta time_stamp, |
| 770 int flags, |
| 771 float x_offset, |
| 772 float y_offset, |
| 773 float x_offset_ordinal, |
| 774 float y_offset_ordinal, |
| 775 int finger_count); |
| 766 | 776 |
| 767 // Scale the scroll event's offset value. | 777 // Scale the scroll event's offset value. |
| 768 // This is useful in the multi-monitor setup where it needs to be scaled | 778 // This is useful in the multi-monitor setup where it needs to be scaled |
| 769 // to provide a consistent user experience. | 779 // to provide a consistent user experience. |
| 770 void Scale(const float factor); | 780 void Scale(const float factor); |
| 771 | 781 |
| 772 float x_offset() const { return x_offset_; } | 782 float x_offset() const { return x_offset_; } |
| 773 float y_offset() const { return y_offset_; } | 783 float y_offset() const { return y_offset_; } |
| 774 float x_offset_ordinal() const { return x_offset_ordinal_; } | 784 float x_offset_ordinal() const { return x_offset_ordinal_; } |
| 775 float y_offset_ordinal() const { return y_offset_ordinal_; } | 785 float y_offset_ordinal() const { return y_offset_ordinal_; } |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 807 | 817 |
| 808 const GestureEventDetails& details() const { return details_; } | 818 const GestureEventDetails& details() const { return details_; } |
| 809 | 819 |
| 810 private: | 820 private: |
| 811 GestureEventDetails details_; | 821 GestureEventDetails details_; |
| 812 }; | 822 }; |
| 813 | 823 |
| 814 } // namespace ui | 824 } // namespace ui |
| 815 | 825 |
| 816 #endif // UI_EVENTS_EVENT_H_ | 826 #endif // UI_EVENTS_EVENT_H_ |
| OLD | NEW |