| 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 class KeyboardEvent; | 64 class KeyboardEvent; |
| 65 class LocalFrame; | 65 class LocalFrame; |
| 66 class Node; | 66 class Node; |
| 67 class OptionalCursor; | 67 class OptionalCursor; |
| 68 class PlatformGestureEvent; | 68 class PlatformGestureEvent; |
| 69 class PlatformKeyboardEvent; | 69 class PlatformKeyboardEvent; |
| 70 class PlatformTouchEvent; | 70 class PlatformTouchEvent; |
| 71 class PlatformWheelEvent; | 71 class PlatformWheelEvent; |
| 72 class Layer; | 72 class Layer; |
| 73 class LayerScrollableArea; | 73 class LayerScrollableArea; |
| 74 class RenderObject; | 74 class LayoutObject; |
| 75 class ScrollableArea; | 75 class ScrollableArea; |
| 76 class Scrollbar; | 76 class Scrollbar; |
| 77 class TextEvent; | 77 class TextEvent; |
| 78 class VisibleSelection; | 78 class VisibleSelection; |
| 79 class WheelEvent; | 79 class WheelEvent; |
| 80 class Widget; | 80 class Widget; |
| 81 | 81 |
| 82 enum AppendTrailingWhitespace { ShouldAppendTrailingWhitespace, DontAppendTraili
ngWhitespace }; | 82 enum AppendTrailingWhitespace { ShouldAppendTrailingWhitespace, DontAppendTraili
ngWhitespace }; |
| 83 enum class DragInitiator; | 83 enum class DragInitiator; |
| 84 | 84 |
| 85 class EventHandler : public NoBaseWillBeGarbageCollectedFinalized<EventHandler>
{ | 85 class EventHandler : public NoBaseWillBeGarbageCollectedFinalized<EventHandler>
{ |
| 86 WTF_MAKE_NONCOPYABLE(EventHandler); | 86 WTF_MAKE_NONCOPYABLE(EventHandler); |
| 87 public: | 87 public: |
| 88 explicit EventHandler(LocalFrame*); | 88 explicit EventHandler(LocalFrame*); |
| 89 ~EventHandler(); | 89 ~EventHandler(); |
| 90 void trace(Visitor*); | 90 void trace(Visitor*); |
| 91 | 91 |
| 92 void clear(); | 92 void clear(); |
| 93 void nodeWillBeRemoved(Node&); | 93 void nodeWillBeRemoved(Node&); |
| 94 | 94 |
| 95 void updateSelectionForMouseDrag(); | 95 void updateSelectionForMouseDrag(); |
| 96 | 96 |
| 97 Node* mousePressNode() const; | 97 Node* mousePressNode() const; |
| 98 | 98 |
| 99 #if OS(WIN) | 99 #if OS(WIN) |
| 100 void startPanScrolling(RenderObject*); | 100 void startPanScrolling(LayoutObject*); |
| 101 #endif | 101 #endif |
| 102 | 102 |
| 103 void stopAutoscroll(); | 103 void stopAutoscroll(); |
| 104 | 104 |
| 105 void dispatchFakeMouseMoveEventSoon(); | 105 void dispatchFakeMouseMoveEventSoon(); |
| 106 void dispatchFakeMouseMoveEventSoonInQuad(const FloatQuad&); | 106 void dispatchFakeMouseMoveEventSoonInQuad(const FloatQuad&); |
| 107 | 107 |
| 108 HitTestResult hitTestResultAtPoint(const LayoutPoint&, | 108 HitTestResult hitTestResultAtPoint(const LayoutPoint&, |
| 109 HitTestRequest::HitTestRequestType hitType = HitTestRequest::ReadOnly |
HitTestRequest::Active, | 109 HitTestRequest::HitTestRequestType hitType = HitTestRequest::ReadOnly |
HitTestRequest::Active, |
| 110 const LayoutSize& padding = LayoutSize()); | 110 const LayoutSize& padding = LayoutSize()); |
| (...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 303 void updateLastScrollbarUnderMouse(Scrollbar*, bool); | 303 void updateLastScrollbarUnderMouse(Scrollbar*, bool); |
| 304 | 304 |
| 305 void setFrameWasScrolledByUser(); | 305 void setFrameWasScrolledByUser(); |
| 306 | 306 |
| 307 bool capturesDragging() const { return m_capturesDragging; } | 307 bool capturesDragging() const { return m_capturesDragging; } |
| 308 | 308 |
| 309 bool handleGestureShowPress(); | 309 bool handleGestureShowPress(); |
| 310 | 310 |
| 311 bool handleScrollGestureOnResizer(Node*, const PlatformGestureEvent&); | 311 bool handleScrollGestureOnResizer(Node*, const PlatformGestureEvent&); |
| 312 | 312 |
| 313 bool passScrollGestureEventToWidget(const PlatformGestureEvent&, RenderObjec
t*); | 313 bool passScrollGestureEventToWidget(const PlatformGestureEvent&, LayoutObjec
t*); |
| 314 | 314 |
| 315 AutoscrollController* autoscrollController() const; | 315 AutoscrollController* autoscrollController() const; |
| 316 bool panScrollInProgress() const; | 316 bool panScrollInProgress() const; |
| 317 void setLastKnownMousePosition(const PlatformMouseEvent&); | 317 void setLastKnownMousePosition(const PlatformMouseEvent&); |
| 318 | 318 |
| 319 // NOTE: If adding a new field to this class please ensure that it is | 319 // NOTE: If adding a new field to this class please ensure that it is |
| 320 // cleared in |EventHandler::clear()|. | 320 // cleared in |EventHandler::clear()|. |
| 321 | 321 |
| 322 LocalFrame* const m_frame; | 322 LocalFrame* const m_frame; |
| 323 | 323 |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 396 bool m_longTapShouldInvokeContextMenu; | 396 bool m_longTapShouldInvokeContextMenu; |
| 397 | 397 |
| 398 Timer<EventHandler> m_activeIntervalTimer; | 398 Timer<EventHandler> m_activeIntervalTimer; |
| 399 double m_lastShowPressTimestamp; | 399 double m_lastShowPressTimestamp; |
| 400 RefPtrWillBeMember<Element> m_lastDeferredTapElement; | 400 RefPtrWillBeMember<Element> m_lastDeferredTapElement; |
| 401 }; | 401 }; |
| 402 | 402 |
| 403 } // namespace blink | 403 } // namespace blink |
| 404 | 404 |
| 405 #endif // EventHandler_h | 405 #endif // EventHandler_h |
| OLD | NEW |