| 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 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/event_types.h" | 10 #include "base/event_types.h" |
| (...skipping 734 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 745 EventPointerType pointer_type, | 745 EventPointerType pointer_type, |
| 746 const gfx::Point& location, | 746 const gfx::Point& location, |
| 747 const gfx::Point& root_location, | 747 const gfx::Point& root_location, |
| 748 int flags, | 748 int flags, |
| 749 int pointer_id, | 749 int pointer_id, |
| 750 base::TimeDelta time_stamp); | 750 base::TimeDelta time_stamp); |
| 751 | 751 |
| 752 int32_t pointer_id() const { return pointer_id_; } | 752 int32_t pointer_id() const { return pointer_id_; } |
| 753 const PointerDetails& pointer_details() const { return details_; } | 753 const PointerDetails& pointer_details() const { return details_; } |
| 754 | 754 |
| 755 protected: |
| 756 // For (de)serialization. |
| 757 PointerEvent(EventType type, base::TimeDelta time_stamp, int flags) |
| 758 : LocatedEvent(type, time_stamp, flags) {} |
| 759 friend struct IPC::ParamTraits<ui::ScopedEvent>; |
| 760 friend struct IPC::ParamTraits<ui::PointerEvent>; |
| 761 |
| 755 private: | 762 private: |
| 756 int32_t pointer_id_; | 763 int32_t pointer_id_; |
| 757 PointerDetails details_; | 764 PointerDetails details_; |
| 758 }; | 765 }; |
| 759 | 766 |
| 760 // An interface that individual platforms can use to store additional data on | 767 // An interface that individual platforms can use to store additional data on |
| 761 // KeyEvent. | 768 // KeyEvent. |
| 762 // | 769 // |
| 763 // Currently only used in mojo. | 770 // Currently only used in mojo. |
| 764 class EVENTS_EXPORT ExtendedKeyEventData { | 771 class EVENTS_EXPORT ExtendedKeyEventData { |
| (...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1048 : LocatedEvent(type, time_stamp, flags) {} | 1055 : LocatedEvent(type, time_stamp, flags) {} |
| 1049 friend struct IPC::ParamTraits<ui::ScopedEvent>; | 1056 friend struct IPC::ParamTraits<ui::ScopedEvent>; |
| 1050 friend struct IPC::ParamTraits<ui::GestureEvent>; | 1057 friend struct IPC::ParamTraits<ui::GestureEvent>; |
| 1051 | 1058 |
| 1052 GestureEventDetails details_; | 1059 GestureEventDetails details_; |
| 1053 }; | 1060 }; |
| 1054 | 1061 |
| 1055 } // namespace ui | 1062 } // namespace ui |
| 1056 | 1063 |
| 1057 #endif // UI_EVENTS_EVENT_H_ | 1064 #endif // UI_EVENTS_EVENT_H_ |
| OLD | NEW |