Chromium Code Reviews| 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 void suspendActiveIntervalTimer(); | |
|
Rick Byers
2013/12/13 22:52:25
To minimize impact on EventHandler API surface, I'
| |
| 152 void resumeActiveIntervalTimer(); | |
| 153 void fireActiveIntervalTimer(); | |
| 154 | |
| 151 bool adjustGesturePosition(const PlatformGestureEvent&, IntPoint& adjustedPo int); | 155 bool adjustGesturePosition(const PlatformGestureEvent&, IntPoint& adjustedPo int); |
| 152 | 156 |
| 153 bool sendContextMenuEvent(const PlatformMouseEvent&); | 157 bool sendContextMenuEvent(const PlatformMouseEvent&); |
| 154 bool sendContextMenuEventForKey(); | 158 bool sendContextMenuEventForKey(); |
| 155 bool sendContextMenuEventForGesture(const PlatformGestureEvent&); | 159 bool sendContextMenuEventForGesture(const PlatformGestureEvent&); |
| 156 | 160 |
| 157 void setMouseDownMayStartAutoscroll() { m_mouseDownMayStartAutoscroll = true ; } | 161 void setMouseDownMayStartAutoscroll() { m_mouseDownMayStartAutoscroll = true ; } |
| 158 | 162 |
| 159 static unsigned accessKeyModifiers(); | 163 static unsigned accessKeyModifiers(); |
| 160 bool handleAccessKey(const PlatformKeyboardEvent&); | 164 bool handleAccessKey(const PlatformKeyboardEvent&); |
| (...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 371 double m_maxMouseMovedDuration; | 375 double m_maxMouseMovedDuration; |
| 372 PlatformEvent::Type m_baseEventType; | 376 PlatformEvent::Type m_baseEventType; |
| 373 bool m_didStartDrag; | 377 bool m_didStartDrag; |
| 374 | 378 |
| 375 bool m_longTapShouldInvokeContextMenu; | 379 bool m_longTapShouldInvokeContextMenu; |
| 376 OwnPtr<IntPoint> m_lastSyntheticPinchAnchorCss; | 380 OwnPtr<IntPoint> m_lastSyntheticPinchAnchorCss; |
| 377 OwnPtr<IntPoint> m_lastSyntheticPinchAnchorDip; | 381 OwnPtr<IntPoint> m_lastSyntheticPinchAnchorDip; |
| 378 OwnPtr<IntPoint> m_lastSyntheticPanLocation; | 382 OwnPtr<IntPoint> m_lastSyntheticPanLocation; |
| 379 float m_syntheticPageScaleFactor; | 383 float m_syntheticPageScaleFactor; |
| 380 | 384 |
| 381 Timer<EventHandler> m_activeIntervalTimer; | 385 MockableTimer<EventHandler> m_activeIntervalTimer; |
| 382 double m_lastShowPressTimestamp; | 386 double m_lastShowPressTimestamp; |
| 383 RefPtr<Element> m_lastDeferredTapElement; | 387 RefPtr<Element> m_lastDeferredTapElement; |
| 384 }; | 388 }; |
| 385 | 389 |
| 386 } // namespace WebCore | 390 } // namespace WebCore |
| 387 | 391 |
| 388 #endif // EventHandler_h | 392 #endif // EventHandler_h |
| OLD | NEW |