| 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 738 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 749 x_offset_(model.x_offset_), | 749 x_offset_(model.x_offset_), |
| 750 y_offset_(model.y_offset_), | 750 y_offset_(model.y_offset_), |
| 751 x_offset_ordinal_(model.x_offset_ordinal_), | 751 x_offset_ordinal_(model.x_offset_ordinal_), |
| 752 y_offset_ordinal_(model.y_offset_ordinal_), | 752 y_offset_ordinal_(model.y_offset_ordinal_), |
| 753 finger_count_(model.finger_count_){ | 753 finger_count_(model.finger_count_){ |
| 754 } | 754 } |
| 755 | 755 |
| 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 const gfx::PointF& root_location, |
| 759 base::TimeDelta time_stamp, | 760 base::TimeDelta time_stamp, |
| 760 int flags, | 761 int flags, |
| 761 float x_offset, | 762 float x_offset, |
| 762 float y_offset, | 763 float y_offset, |
| 763 float x_offset_ordinal, | 764 float x_offset_ordinal, |
| 764 float y_offset_ordinal, | 765 float y_offset_ordinal, |
| 765 int finger_count); | 766 int finger_count); |
| 766 | 767 |
| 767 // Scale the scroll event's offset value. | 768 // Scale the scroll event's offset value. |
| 768 // This is useful in the multi-monitor setup where it needs to be scaled | 769 // This is useful in the multi-monitor setup where it needs to be scaled |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 807 | 808 |
| 808 const GestureEventDetails& details() const { return details_; } | 809 const GestureEventDetails& details() const { return details_; } |
| 809 | 810 |
| 810 private: | 811 private: |
| 811 GestureEventDetails details_; | 812 GestureEventDetails details_; |
| 812 }; | 813 }; |
| 813 | 814 |
| 814 } // namespace ui | 815 } // namespace ui |
| 815 | 816 |
| 816 #endif // UI_EVENTS_EVENT_H_ | 817 #endif // UI_EVENTS_EVENT_H_ |
| OLD | NEW |