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 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
262 // absolutePoint - For wheel scrolls - the location, in absolute coordinates
, where the event occured. | 262 // absolutePoint - For wheel scrolls - the location, in absolute coordinates
, where the event occured. |
263 bool scroll(ScrollDirection, ScrollGranularity, Node* startNode = 0, Node**
stopNode = 0, float delta = 1.0f, IntPoint absolutePoint = IntPoint()); | 263 bool scroll(ScrollDirection, ScrollGranularity, Node* startNode = 0, Node**
stopNode = 0, float delta = 1.0f, IntPoint absolutePoint = IntPoint()); |
264 | 264 |
265 TouchAction intersectTouchAction(const TouchAction, const TouchAction); | 265 TouchAction intersectTouchAction(const TouchAction, const TouchAction); |
266 TouchAction computeEffectiveTouchAction(const Node&); | 266 TouchAction computeEffectiveTouchAction(const Node&); |
267 | 267 |
268 HitTestResult hitTestResultInFrame(LocalFrame*, const LayoutPoint&, HitTestR
equest::HitTestRequestType hitType = HitTestRequest::ReadOnly | HitTestRequest::
Active); | 268 HitTestResult hitTestResultInFrame(LocalFrame*, const LayoutPoint&, HitTestR
equest::HitTestRequestType hitType = HitTestRequest::ReadOnly | HitTestRequest::
Active); |
269 | 269 |
270 void invalidateClick(); | 270 void invalidateClick(); |
271 | 271 |
272 void updateMouseEventTargetNode(Node*, const PlatformMouseEvent&, bool fireM
ouseOverOut); | 272 void updateMouseEventTargetNode(Node*, const PlatformMouseEvent&, bool fireM
ouseOverOut, bool derivesFromTouch); |
273 | 273 |
274 MouseEventWithHitTestResults prepareMouseEvent(const HitTestRequest&, const
PlatformMouseEvent&); | 274 MouseEventWithHitTestResults prepareMouseEvent(const HitTestRequest&, const
PlatformMouseEvent&); |
275 | 275 |
276 bool dispatchMouseEvent(const AtomicString& eventType, Node* target, int cli
ckCount, const PlatformMouseEvent&, bool setUnder); | 276 bool dispatchMouseEvent(const AtomicString& eventType, Node* target, int cli
ckCount, const PlatformMouseEvent&, bool setUnder, bool derivesFromTouch); |
277 bool dispatchDragEvent(const AtomicString& eventType, Node* target, const Pl
atformMouseEvent&, DataTransfer*); | 277 bool dispatchDragEvent(const AtomicString& eventType, Node* target, const Pl
atformMouseEvent&, DataTransfer*); |
278 | 278 |
279 void clearDragDataTransfer(); | 279 void clearDragDataTransfer(); |
280 | 280 |
281 bool handleDrag(const MouseEventWithHitTestResults&, CheckDragHysteresis); | 281 bool handleDrag(const MouseEventWithHitTestResults&, CheckDragHysteresis); |
282 bool tryStartDrag(const MouseEventWithHitTestResults&); | 282 bool tryStartDrag(const MouseEventWithHitTestResults&); |
283 void clearDragState(); | 283 void clearDragState(); |
284 | 284 |
285 bool dispatchDragSrcEvent(const AtomicString& eventType, const PlatformMouse
Event&); | 285 bool dispatchDragSrcEvent(const AtomicString& eventType, const PlatformMouse
Event&); |
286 | 286 |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
402 bool m_longTapShouldInvokeContextMenu; | 402 bool m_longTapShouldInvokeContextMenu; |
403 | 403 |
404 Timer<EventHandler> m_activeIntervalTimer; | 404 Timer<EventHandler> m_activeIntervalTimer; |
405 double m_lastShowPressTimestamp; | 405 double m_lastShowPressTimestamp; |
406 RefPtrWillBeMember<Element> m_lastDeferredTapElement; | 406 RefPtrWillBeMember<Element> m_lastDeferredTapElement; |
407 }; | 407 }; |
408 | 408 |
409 } // namespace blink | 409 } // namespace blink |
410 | 410 |
411 #endif // EventHandler_h | 411 #endif // EventHandler_h |
OLD | NEW |