OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 MouseWheelEventManager_h | 5 #ifndef MouseWheelEventManager_h |
6 #define MouseWheelEventManager_h | 6 #define MouseWheelEventManager_h |
7 | 7 |
8 #include "platform/heap/Handle.h" | 8 #include "platform/heap/Handle.h" |
9 #include "platform/heap/Visitor.h" | 9 #include "platform/heap/Visitor.h" |
10 #include "public/platform/WebInputEventResult.h" | 10 #include "public/platform/WebInputEventResult.h" |
11 | 11 |
12 namespace blink { | 12 namespace blink { |
13 | 13 |
14 class LocalFrame; | 14 class LocalFrame; |
| 15 class Node; |
15 class ScrollManager; | 16 class ScrollManager; |
16 class WebMouseWheelEvent; | 17 class WebMouseWheelEvent; |
17 | 18 |
18 class MouseWheelEventManager final | 19 class MouseWheelEventManager final |
19 : public GarbageCollectedFinalized<MouseWheelEventManager> { | 20 : public GarbageCollectedFinalized<MouseWheelEventManager> { |
20 WTF_MAKE_NONCOPYABLE(MouseWheelEventManager); | 21 WTF_MAKE_NONCOPYABLE(MouseWheelEventManager); |
21 | 22 |
22 public: | 23 public: |
23 explicit MouseWheelEventManager(LocalFrame&, ScrollManager&); | 24 explicit MouseWheelEventManager(LocalFrame&, ScrollManager&); |
24 DECLARE_TRACE(); | 25 DECLARE_TRACE(); |
25 | 26 |
| 27 void Clear(); |
| 28 |
26 WebInputEventResult HandleWheelEvent(const WebMouseWheelEvent&); | 29 WebInputEventResult HandleWheelEvent(const WebMouseWheelEvent&); |
27 | 30 |
28 private: | 31 private: |
29 const Member<LocalFrame> frame_; | 32 const Member<LocalFrame> frame_; |
| 33 Member<Node> wheel_target_; |
30 Member<ScrollManager> scroll_manager_; | 34 Member<ScrollManager> scroll_manager_; |
31 }; | 35 }; |
32 | 36 |
33 } // namespace blink | 37 } // namespace blink |
34 | 38 |
35 #endif // MouseWheelEventManager_h | 39 #endif // MouseWheelEventManager_h |
OLD | NEW |