| 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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 void defaultWheelEventHandler(Node*, WheelEvent*); | 141 void defaultWheelEventHandler(Node*, WheelEvent*); |
| 142 | 142 |
| 143 bool handleGestureEvent(const PlatformGestureEvent&); | 143 bool handleGestureEvent(const PlatformGestureEvent&); |
| 144 bool handleGestureScrollEnd(const PlatformGestureEvent&); | 144 bool handleGestureScrollEnd(const PlatformGestureEvent&); |
| 145 bool isScrollbarHandlingGestures() const; | 145 bool isScrollbarHandlingGestures() const; |
| 146 | 146 |
| 147 bool bestClickableNodeForTouchPoint(const IntPoint& touchCenter, const IntSi
ze& touchRadius, IntPoint& targetPoint, Node*& targetNode); | 147 bool bestClickableNodeForTouchPoint(const IntPoint& touchCenter, const IntSi
ze& touchRadius, IntPoint& targetPoint, Node*& targetNode); |
| 148 bool bestContextMenuNodeForTouchPoint(const IntPoint& touchCenter, const Int
Size& touchRadius, IntPoint& targetPoint, Node*& targetNode); | 148 bool bestContextMenuNodeForTouchPoint(const IntPoint& touchCenter, const Int
Size& touchRadius, IntPoint& targetPoint, Node*& targetNode); |
| 149 bool bestZoomableAreaForTouchPoint(const IntPoint& touchCenter, const IntSiz
e& touchRadius, IntRect& targetArea, Node*& targetNode); | 149 bool bestZoomableAreaForTouchPoint(const IntPoint& touchCenter, const IntSiz
e& touchRadius, IntRect& targetArea, Node*& targetNode); |
| 150 | 150 |
| 151 MockableTimer<EventHandler>* getActiveIntervalTimerForTesting(); |
| 152 |
| 151 bool adjustGesturePosition(const PlatformGestureEvent&, IntPoint& adjustedPo
int); | 153 bool adjustGesturePosition(const PlatformGestureEvent&, IntPoint& adjustedPo
int); |
| 152 | 154 |
| 153 bool sendContextMenuEvent(const PlatformMouseEvent&); | 155 bool sendContextMenuEvent(const PlatformMouseEvent&); |
| 154 bool sendContextMenuEventForKey(); | 156 bool sendContextMenuEventForKey(); |
| 155 bool sendContextMenuEventForGesture(const PlatformGestureEvent&); | 157 bool sendContextMenuEventForGesture(const PlatformGestureEvent&); |
| 156 | 158 |
| 157 void setMouseDownMayStartAutoscroll() { m_mouseDownMayStartAutoscroll = true
; } | 159 void setMouseDownMayStartAutoscroll() { m_mouseDownMayStartAutoscroll = true
; } |
| 158 | 160 |
| 159 static unsigned accessKeyModifiers(); | 161 static unsigned accessKeyModifiers(); |
| 160 bool handleAccessKey(const PlatformKeyboardEvent&); | 162 bool handleAccessKey(const PlatformKeyboardEvent&); |
| (...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 371 double m_maxMouseMovedDuration; | 373 double m_maxMouseMovedDuration; |
| 372 PlatformEvent::Type m_baseEventType; | 374 PlatformEvent::Type m_baseEventType; |
| 373 bool m_didStartDrag; | 375 bool m_didStartDrag; |
| 374 | 376 |
| 375 bool m_longTapShouldInvokeContextMenu; | 377 bool m_longTapShouldInvokeContextMenu; |
| 376 OwnPtr<IntPoint> m_lastSyntheticPinchAnchorCss; | 378 OwnPtr<IntPoint> m_lastSyntheticPinchAnchorCss; |
| 377 OwnPtr<IntPoint> m_lastSyntheticPinchAnchorDip; | 379 OwnPtr<IntPoint> m_lastSyntheticPinchAnchorDip; |
| 378 OwnPtr<IntPoint> m_lastSyntheticPanLocation; | 380 OwnPtr<IntPoint> m_lastSyntheticPanLocation; |
| 379 float m_syntheticPageScaleFactor; | 381 float m_syntheticPageScaleFactor; |
| 380 | 382 |
| 381 Timer<EventHandler> m_activeIntervalTimer; | 383 MockableTimer<EventHandler> m_activeIntervalTimer; |
| 382 double m_lastShowPressTimestamp; | 384 double m_lastShowPressTimestamp; |
| 383 RefPtr<Element> m_lastDeferredTapElement; | 385 RefPtr<Element> m_lastDeferredTapElement; |
| 384 }; | 386 }; |
| 385 | 387 |
| 386 } // namespace WebCore | 388 } // namespace WebCore |
| 387 | 389 |
| 388 #endif // EventHandler_h | 390 #endif // EventHandler_h |
| OLD | NEW |