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 UserGestureUtilizedCallback { |
| 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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 bool handleTextInputEvent(const String& text, Event* underlyingEvent = nullp
tr, TextEventInputType = TextEventInputKeyboard); | 202 bool handleTextInputEvent(const String& text, Event* underlyingEvent = nullp
tr, TextEventInputType = TextEventInputKeyboard); |
201 void defaultTextInputEventHandler(TextEvent*); | 203 void defaultTextInputEventHandler(TextEvent*); |
202 | 204 |
203 void dragSourceEndedAt(const PlatformMouseEvent&, DragOperation); | 205 void dragSourceEndedAt(const PlatformMouseEvent&, DragOperation); |
204 | 206 |
205 void focusDocumentView(); | 207 void focusDocumentView(); |
206 | 208 |
207 void capsLockStateMayHaveChanged(); // Only called by FrameSelection | 209 void capsLockStateMayHaveChanged(); // Only called by FrameSelection |
208 | 210 |
209 WebInputEventResult handleTouchEvent(const PlatformTouchEvent&); | 211 WebInputEventResult handleTouchEvent(const PlatformTouchEvent&); |
| 212 void userGestureUtilized() override; |
210 | 213 |
211 bool useHandCursor(Node*, bool isOverLink); | 214 bool useHandCursor(Node*, bool isOverLink); |
212 | 215 |
213 void notifyElementActivated(); | 216 void notifyElementActivated(); |
214 | 217 |
215 PassRefPtr<UserGestureToken> takeLastMouseDownGestureToken() { return m_last
MouseDownUserGestureToken.release(); } | 218 PassRefPtr<UserGestureToken> takeLastMouseDownGestureToken() { return m_last
MouseDownUserGestureToken.release(); } |
216 | 219 |
217 int clickCount() { return m_clickCount; } | 220 int clickCount() { return m_clickCount; } |
218 | 221 |
219 SelectionController& selectionController() const { return *m_selectionContro
ller; } | 222 SelectionController& selectionController() const { return *m_selectionContro
ller; } |
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
485 // scroll which shouldn't propagate can't cause any element to | 488 // scroll which shouldn't propagate can't cause any element to |
486 // scroll other than the |m_previousGestureScrolledNode|. | 489 // scroll other than the |m_previousGestureScrolledNode|. |
487 bool m_deltaConsumedForScrollSequence; | 490 bool m_deltaConsumedForScrollSequence; |
488 }; | 491 }; |
489 | 492 |
490 } // namespace blink | 493 } // namespace blink |
491 | 494 |
492 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::EventHandler::TouchInfo); | 495 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::EventHandler::TouchInfo); |
493 | 496 |
494 #endif // EventHandler_h | 497 #endif // EventHandler_h |
OLD | NEW |