OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2001 Peter Kelly (pmk@post.com) | 2 * Copyright (C) 2001 Peter Kelly (pmk@post.com) |
3 * Copyright (C) 2001 Tobias Anton (anton@stud.fbi.fh-darmstadt.de) | 3 * Copyright (C) 2001 Tobias Anton (anton@stud.fbi.fh-darmstadt.de) |
4 * Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com) | 4 * Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com) |
5 * Copyright (C) 2003, 2004, 2005, 2006, 2008, 2010 Apple Inc. All rights reserv
ed. | 5 * Copyright (C) 2003, 2004, 2005, 2006, 2008, 2010 Apple Inc. All rights reserv
ed. |
6 * Copyright (C) 2013 Samsung Electronics. All rights reserved. | 6 * Copyright (C) 2013 Samsung Electronics. All rights reserved. |
7 * | 7 * |
8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
11 * version 2 of the License, or (at your option) any later version. | 11 * version 2 of the License, or (at your option) any later version. |
12 * | 12 * |
13 * This library is distributed in the hope that it will be useful, | 13 * This library is distributed in the hope that it will be useful, |
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 14 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
16 * Library General Public License for more details. | 16 * Library General Public License for more details. |
17 * | 17 * |
18 * You should have received a copy of the GNU Library General Public License | 18 * You should have received a copy of the GNU Library General Public License |
19 * along with this library; see the file COPYING.LIB. If not, write to | 19 * along with this library; see the file COPYING.LIB. If not, write to |
20 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 20 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
21 * Boston, MA 02110-1301, USA. | 21 * Boston, MA 02110-1301, USA. |
22 * | 22 * |
23 */ | 23 */ |
24 | 24 |
25 #ifndef WheelEvent_h | 25 #ifndef WheelEvent_h |
26 #define WheelEvent_h | 26 #define WheelEvent_h |
27 | 27 |
28 #include "core/CoreExport.h" | 28 #include "core/CoreExport.h" |
29 #include "core/events/EventDispatchMediator.h" | |
30 #include "core/events/MouseEvent.h" | 29 #include "core/events/MouseEvent.h" |
31 #include "core/events/WheelEventInit.h" | 30 #include "core/events/WheelEventInit.h" |
32 #include "platform/geometry/FloatPoint.h" | 31 #include "platform/geometry/FloatPoint.h" |
33 | 32 |
34 namespace blink { | 33 namespace blink { |
35 | 34 |
36 class PlatformWheelEvent; | 35 class PlatformWheelEvent; |
37 | 36 |
38 class CORE_EXPORT WheelEvent final : public MouseEvent { | 37 class CORE_EXPORT WheelEvent final : public MouseEvent { |
39 DEFINE_WRAPPERTYPEINFO(); | 38 DEFINE_WRAPPERTYPEINFO(); |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 double m_deltaZ; | 104 double m_deltaZ; |
106 unsigned m_deltaMode; | 105 unsigned m_deltaMode; |
107 bool m_canScroll; | 106 bool m_canScroll; |
108 int m_resendingPluginId; | 107 int m_resendingPluginId; |
109 bool m_hasPreciseScrollingDeltas; | 108 bool m_hasPreciseScrollingDeltas; |
110 RailsMode m_railsMode; | 109 RailsMode m_railsMode; |
111 }; | 110 }; |
112 | 111 |
113 DEFINE_EVENT_TYPE_CASTS(WheelEvent); | 112 DEFINE_EVENT_TYPE_CASTS(WheelEvent); |
114 | 113 |
115 class WheelEventDispatchMediator final : public EventDispatchMediator { | |
116 public: | |
117 static PassRefPtrWillBeRawPtr<WheelEventDispatchMediator> create(PassRefPtrW
illBeRawPtr<WheelEvent>); | |
118 | |
119 private: | |
120 explicit WheelEventDispatchMediator(PassRefPtrWillBeRawPtr<WheelEvent>); | |
121 WheelEvent& event() const; | |
122 bool dispatchEvent(EventDispatcher&) const override; | |
123 }; | |
124 | |
125 } // namespace blink | 114 } // namespace blink |
126 | 115 |
127 #endif // WheelEvent_h | 116 #endif // WheelEvent_h |
OLD | NEW |