| 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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 class ScrollableArea; | 80 class ScrollableArea; |
| 81 class Scrollbar; | 81 class Scrollbar; |
| 82 class ScrollState; | 82 class ScrollState; |
| 83 class SelectionController; | 83 class SelectionController; |
| 84 class TextEvent; | 84 class TextEvent; |
| 85 class WheelEvent; | 85 class WheelEvent; |
| 86 class Widget; | 86 class Widget; |
| 87 | 87 |
| 88 enum class DragInitiator; | 88 enum class DragInitiator; |
| 89 | 89 |
| 90 class CORE_EXPORT EventHandler final : public GarbageCollectedFinalized<EventHan
dler> | 90 class CORE_EXPORT EventHandler final : public GarbageCollectedFinalized<EventHan
dler> { |
| 91 , public UserGestureUtilizedCallback { | |
| 92 | 91 |
| 93 WTF_MAKE_NONCOPYABLE(EventHandler); | 92 WTF_MAKE_NONCOPYABLE(EventHandler); |
| 94 public: | 93 public: |
| 95 explicit EventHandler(LocalFrame*); | 94 explicit EventHandler(LocalFrame*); |
| 96 ~EventHandler(); | 95 ~EventHandler(); |
| 97 DECLARE_TRACE(); | 96 DECLARE_TRACE(); |
| 98 | 97 |
| 99 void clear(); | 98 void clear(); |
| 100 void nodeWillBeRemoved(Node&); | 99 void nodeWillBeRemoved(Node&); |
| 101 | 100 |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 bool handleTextInputEvent(const String& text, Event* underlyingEvent = nullp
tr, TextEventInputType = TextEventInputKeyboard); | 204 bool handleTextInputEvent(const String& text, Event* underlyingEvent = nullp
tr, TextEventInputType = TextEventInputKeyboard); |
| 206 void defaultTextInputEventHandler(TextEvent*); | 205 void defaultTextInputEventHandler(TextEvent*); |
| 207 | 206 |
| 208 void dragSourceEndedAt(const PlatformMouseEvent&, DragOperation); | 207 void dragSourceEndedAt(const PlatformMouseEvent&, DragOperation); |
| 209 | 208 |
| 210 void focusDocumentView(); | 209 void focusDocumentView(); |
| 211 | 210 |
| 212 void capsLockStateMayHaveChanged(); // Only called by FrameSelection | 211 void capsLockStateMayHaveChanged(); // Only called by FrameSelection |
| 213 | 212 |
| 214 WebInputEventResult handleTouchEvent(const PlatformTouchEvent&); | 213 WebInputEventResult handleTouchEvent(const PlatformTouchEvent&); |
| 215 void userGestureUtilized() override; | |
| 216 | 214 |
| 217 bool useHandCursor(Node*, bool isOverLink); | 215 bool useHandCursor(Node*, bool isOverLink); |
| 218 | 216 |
| 219 void notifyElementActivated(); | 217 void notifyElementActivated(); |
| 220 | 218 |
| 221 PassRefPtr<UserGestureToken> takeLastMouseDownGestureToken() { return m_last
MouseDownUserGestureToken.release(); } | 219 PassRefPtr<UserGestureToken> takeLastMouseDownGestureToken() { return m_last
MouseDownUserGestureToken.release(); } |
| 222 | 220 |
| 223 int clickCount() { return m_clickCount; } | 221 int clickCount() { return m_clickCount; } |
| 224 | 222 |
| 225 SelectionController& selectionController() const { return *m_selectionContro
ller; } | 223 SelectionController& selectionController() const { return *m_selectionContro
ller; } |
| (...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 461 // scroll sequence in this frame, or any child frames. Only used | 459 // scroll sequence in this frame, or any child frames. Only used |
| 462 // with ScrollCustomization. If some delta has been consumed, a | 460 // with ScrollCustomization. If some delta has been consumed, a |
| 463 // scroll which shouldn't propagate can't cause any element to | 461 // scroll which shouldn't propagate can't cause any element to |
| 464 // scroll other than the |m_previousGestureScrolledNode|. | 462 // scroll other than the |m_previousGestureScrolledNode|. |
| 465 bool m_deltaConsumedForScrollSequence; | 463 bool m_deltaConsumedForScrollSequence; |
| 466 }; | 464 }; |
| 467 | 465 |
| 468 } // namespace blink | 466 } // namespace blink |
| 469 | 467 |
| 470 #endif // EventHandler_h | 468 #endif // EventHandler_h |
| OLD | NEW |