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 793 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
804 } | 804 } |
805 | 805 |
806 ~GestureEvent() override; | 806 ~GestureEvent() override; |
807 | 807 |
808 const GestureEventDetails& details() const { return details_; } | 808 const GestureEventDetails& details() const { return details_; } |
809 | 809 |
810 private: | 810 private: |
811 GestureEventDetails details_; | 811 GestureEventDetails details_; |
812 }; | 812 }; |
813 | 813 |
| 814 class EVENTS_EXPORT CustomEvent : public Event { |
| 815 public: |
| 816 CustomEvent(EventType type, |
| 817 base::TimeDelta time_stamp, |
| 818 void* generic_event_data); |
| 819 ~CustomEvent() override; |
| 820 |
| 821 void* generic_event_data() const { return generic_event_data_; } |
| 822 |
| 823 private: |
| 824 void* generic_event_data_; |
| 825 }; |
| 826 |
814 } // namespace ui | 827 } // namespace ui |
815 | 828 |
816 #endif // UI_EVENTS_EVENT_H_ | 829 #endif // UI_EVENTS_EVENT_H_ |
OLD | NEW |