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 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 WebInputEventResult handleGestureScrollEnd(const PlatformGestureEvent&); | 173 WebInputEventResult handleGestureScrollEnd(const PlatformGestureEvent&); |
174 bool isScrollbarHandlingGestures() const; | 174 bool isScrollbarHandlingGestures() const; |
175 | 175 |
176 bool bestClickableNodeForHitTestResult(const HitTestResult&, IntPoint& targe
tPoint, Node*& targetNode); | 176 bool bestClickableNodeForHitTestResult(const HitTestResult&, IntPoint& targe
tPoint, Node*& targetNode); |
177 bool bestContextMenuNodeForHitTestResult(const HitTestResult&, IntPoint& tar
getPoint, Node*& targetNode); | 177 bool bestContextMenuNodeForHitTestResult(const HitTestResult&, IntPoint& tar
getPoint, Node*& targetNode); |
178 // FIXME: This doesn't appear to be used outside tests anymore, what path ar
e we using now and is it tested? | 178 // FIXME: This doesn't appear to be used outside tests anymore, what path ar
e we using now and is it tested? |
179 bool bestZoomableAreaForTouchPoint(const IntPoint& touchCenter, const IntSiz
e& touchRadius, IntRect& targetArea, Node*& targetNode); | 179 bool bestZoomableAreaForTouchPoint(const IntPoint& touchCenter, const IntSiz
e& touchRadius, IntRect& targetArea, Node*& targetNode); |
180 | 180 |
181 WebInputEventResult sendContextMenuEvent(const PlatformMouseEvent&, Node* ov
errideTargetNode = nullptr); | 181 WebInputEventResult sendContextMenuEvent(const PlatformMouseEvent&, Node* ov
errideTargetNode = nullptr); |
182 WebInputEventResult sendContextMenuEventForKey(Element* overrideTargetElemen
t = nullptr); | 182 WebInputEventResult sendContextMenuEventForKey(Element* overrideTargetElemen
t = nullptr); |
183 WebInputEventResult sendContextMenuEventForGesture(const GestureEventWithHit
TestResults&); | |
184 | 183 |
185 // Returns whether pointerId is active or not | 184 // Returns whether pointerId is active or not |
186 bool isPointerEventActive(int); | 185 bool isPointerEventActive(int); |
187 | 186 |
188 void setPointerCapture(int, EventTarget*); | 187 void setPointerCapture(int, EventTarget*); |
189 void releasePointerCapture(int, EventTarget*); | 188 void releasePointerCapture(int, EventTarget*); |
190 void elementRemoved(EventTarget*); | 189 void elementRemoved(EventTarget*); |
191 | 190 |
192 void setMouseDownMayStartAutoscroll() { m_mouseDownMayStartAutoscroll = true
; } | 191 void setMouseDownMayStartAutoscroll() { m_mouseDownMayStartAutoscroll = true
; } |
193 | 192 |
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
412 // firing for the current gesture sequence (i.e. until next GestureTapDown). | 411 // firing for the current gesture sequence (i.e. until next GestureTapDown). |
413 bool m_suppressMouseEventsFromGestures; | 412 bool m_suppressMouseEventsFromGestures; |
414 | 413 |
415 // TODO(nzolghadr): Temporary until further refactoring | 414 // TODO(nzolghadr): Temporary until further refactoring |
416 friend GestureManager; | 415 friend GestureManager; |
417 }; | 416 }; |
418 | 417 |
419 } // namespace blink | 418 } // namespace blink |
420 | 419 |
421 #endif // EventHandler_h | 420 #endif // EventHandler_h |
OLD | NEW |