OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2009, 2010, 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2009, 2010, 2011 Apple Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 class ScrollableArea; | 79 class ScrollableArea; |
80 class Scrollbar; | 80 class Scrollbar; |
81 class ScrollState; | 81 class ScrollState; |
82 class SelectionController; | 82 class SelectionController; |
83 class TextEvent; | 83 class TextEvent; |
84 class WheelEvent; | 84 class WheelEvent; |
85 class Widget; | 85 class Widget; |
86 | 86 |
87 enum class DragInitiator; | 87 enum class DragInitiator; |
88 | 88 |
89 class CORE_EXPORT EventHandler final : public GarbageCollectedFinalized<EventHan
dler> { | 89 class CORE_EXPORT EventHandler final : public GarbageCollectedFinalized<EventHan
dler> |
| 90 , public UserGestureUsedCallback { |
| 91 |
90 WTF_MAKE_NONCOPYABLE(EventHandler); | 92 WTF_MAKE_NONCOPYABLE(EventHandler); |
91 public: | 93 public: |
92 explicit EventHandler(LocalFrame*); | 94 explicit EventHandler(LocalFrame*); |
93 ~EventHandler(); | 95 ~EventHandler(); |
94 DECLARE_TRACE(); | 96 DECLARE_TRACE(); |
95 | 97 |
96 void clear(); | 98 void clear(); |
97 void nodeWillBeRemoved(Node&); | 99 void nodeWillBeRemoved(Node&); |
98 | 100 |
99 void updateSelectionForMouseDrag(); | 101 void updateSelectionForMouseDrag(); |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 bool handleTextInputEvent(const String& text, Event* underlyingEvent = nullp
tr, TextEventInputType = TextEventInputKeyboard); | 199 bool handleTextInputEvent(const String& text, Event* underlyingEvent = nullp
tr, TextEventInputType = TextEventInputKeyboard); |
198 void defaultTextInputEventHandler(TextEvent*); | 200 void defaultTextInputEventHandler(TextEvent*); |
199 | 201 |
200 void dragSourceEndedAt(const PlatformMouseEvent&, DragOperation); | 202 void dragSourceEndedAt(const PlatformMouseEvent&, DragOperation); |
201 | 203 |
202 void focusDocumentView(); | 204 void focusDocumentView(); |
203 | 205 |
204 void capsLockStateMayHaveChanged(); // Only called by FrameSelection | 206 void capsLockStateMayHaveChanged(); // Only called by FrameSelection |
205 | 207 |
206 WebInputEventResult handleTouchEvent(const PlatformTouchEvent&); | 208 WebInputEventResult handleTouchEvent(const PlatformTouchEvent&); |
| 209 void userGestureUsed() override; |
207 | 210 |
208 bool useHandCursor(Node*, bool isOverLink); | 211 bool useHandCursor(Node*, bool isOverLink); |
209 | 212 |
210 void notifyElementActivated(); | 213 void notifyElementActivated(); |
211 | 214 |
212 PassRefPtr<UserGestureToken> takeLastMouseDownGestureToken() { return m_last
MouseDownUserGestureToken.release(); } | 215 PassRefPtr<UserGestureToken> takeLastMouseDownGestureToken() { return m_last
MouseDownUserGestureToken.release(); } |
213 | 216 |
214 int clickCount() { return m_clickCount; } | 217 int clickCount() { return m_clickCount; } |
215 | 218 |
216 SelectionController& selectionController() const { return *m_selectionContro
ller; } | 219 SelectionController& selectionController() const { return *m_selectionContro
ller; } |
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
482 // scroll which shouldn't propagate can't cause any element to | 485 // scroll which shouldn't propagate can't cause any element to |
483 // scroll other than the |m_previousGestureScrolledNode|. | 486 // scroll other than the |m_previousGestureScrolledNode|. |
484 bool m_deltaConsumedForScrollSequence; | 487 bool m_deltaConsumedForScrollSequence; |
485 }; | 488 }; |
486 | 489 |
487 } // namespace blink | 490 } // namespace blink |
488 | 491 |
489 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::EventHandler::TouchInfo); | 492 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::EventHandler::TouchInfo); |
490 | 493 |
491 #endif // EventHandler_h | 494 #endif // EventHandler_h |
OLD | NEW |