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 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
300 // preventDefaulted pointerdown (i.e., one of | 300 // preventDefaulted pointerdown (i.e., one of |
301 // {mousedown, mousemove, mouseup}). | 301 // {mousedown, mousemove, mouseup}). |
302 // TODO(mustaq): Can we avoid the clickCount param, instead use | 302 // TODO(mustaq): Can we avoid the clickCount param, instead use |
303 // WebmMouseEvent's count? | 303 // WebmMouseEvent's count? |
304 // Same applied to dispatchMouseEvent() above. | 304 // Same applied to dispatchMouseEvent() above. |
305 WebInputEventResult updatePointerTargetAndDispatchEvents( | 305 WebInputEventResult updatePointerTargetAndDispatchEvents( |
306 const AtomicString& mouseEventType, | 306 const AtomicString& mouseEventType, |
307 Node* target, | 307 Node* target, |
308 const String& canvasRegionId, | 308 const String& canvasRegionId, |
309 const WebMouseEvent&, | 309 const WebMouseEvent&, |
310 const Vector<WebMouseEvent>& coalescedEvents); | 310 const Vector<WebMouseEvent>& coalescedEvents, |
| 311 bool sendClickIfNeeded = false); |
311 | 312 |
312 // Clears drag target and related states. It is called when drag is done or | 313 // Clears drag target and related states. It is called when drag is done or |
313 // canceled. | 314 // canceled. |
314 void clearDragState(); | 315 void clearDragState(); |
315 | 316 |
316 WebInputEventResult passMousePressEventToSubframe( | 317 WebInputEventResult passMousePressEventToSubframe( |
317 MouseEventWithHitTestResults&, | 318 MouseEventWithHitTestResults&, |
318 LocalFrame* subframe); | 319 LocalFrame* subframe); |
319 WebInputEventResult passMouseMoveEventToSubframe( | 320 WebInputEventResult passMouseMoveEventToSubframe( |
320 MouseEventWithHitTestResults&, | 321 MouseEventWithHitTestResults&, |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
386 | 387 |
387 // Set on GestureTapDown if the |pointerdown| event corresponding to the | 388 // Set on GestureTapDown if the |pointerdown| event corresponding to the |
388 // triggering |touchstart| event was canceled. This suppresses mouse event | 389 // triggering |touchstart| event was canceled. This suppresses mouse event |
389 // firing for the current gesture sequence (i.e. until next GestureTapDown). | 390 // firing for the current gesture sequence (i.e. until next GestureTapDown). |
390 bool m_suppressMouseEventsFromGestures; | 391 bool m_suppressMouseEventsFromGestures; |
391 }; | 392 }; |
392 | 393 |
393 } // namespace blink | 394 } // namespace blink |
394 | 395 |
395 #endif // EventHandler_h | 396 #endif // EventHandler_h |
OLD | NEW |