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 448 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
459 IntPoint m_lastKnownMousePosition; | 459 IntPoint m_lastKnownMousePosition; |
460 IntPoint m_lastKnownMouseGlobalPosition; | 460 IntPoint m_lastKnownMouseGlobalPosition; |
461 IntPoint m_mouseDownPos; // In our view's coords. | 461 IntPoint m_mouseDownPos; // In our view's coords. |
462 double m_mouseDownTimestamp; | 462 double m_mouseDownTimestamp; |
463 PlatformMouseEvent m_mouseDown; | 463 PlatformMouseEvent m_mouseDown; |
464 RefPtr<UserGestureToken> m_lastMouseDownUserGestureToken; | 464 RefPtr<UserGestureToken> m_lastMouseDownUserGestureToken; |
465 | 465 |
466 // The target of each active touch point indexed by the touch ID. | 466 // The target of each active touch point indexed by the touch ID. |
467 using TouchTargetMap = HeapHashMap<unsigned, Member<EventTarget>, DefaultHas
h<unsigned>::Hash, WTF::UnsignedWithZeroKeyHashTraits<unsigned>>; | 467 using TouchTargetMap = HeapHashMap<unsigned, Member<EventTarget>, DefaultHas
h<unsigned>::Hash, WTF::UnsignedWithZeroKeyHashTraits<unsigned>>; |
468 TouchTargetMap m_targetForTouchID; | 468 TouchTargetMap m_targetForTouchID; |
469 using TouchRegionMap = HeapHashMap<unsigned, String, DefaultHash<unsigned>::
Hash, WTF::UnsignedWithZeroKeyHashTraits<unsigned>>; | 469 using TouchRegionMap = HashMap<unsigned, String, DefaultHash<unsigned>::Hash
, WTF::UnsignedWithZeroKeyHashTraits<unsigned>>; |
470 TouchRegionMap m_regionForTouchID; | 470 TouchRegionMap m_regionForTouchID; |
471 | 471 |
472 // If set, the document of the active touch sequence. Unset if no touch sequ
ence active. | 472 // If set, the document of the active touch sequence. Unset if no touch sequ
ence active. |
473 Member<Document> m_touchSequenceDocument; | 473 Member<Document> m_touchSequenceDocument; |
474 RefPtr<UserGestureToken> m_touchSequenceUserGestureToken; | 474 RefPtr<UserGestureToken> m_touchSequenceUserGestureToken; |
475 | 475 |
476 bool m_touchPressed; | 476 bool m_touchPressed; |
477 | 477 |
478 PointerEventManager m_pointerEventManager; | 478 PointerEventManager m_pointerEventManager; |
479 | 479 |
(...skipping 22 matching lines...) Expand all Loading... |
502 // scroll which shouldn't propagate can't cause any element to | 502 // scroll which shouldn't propagate can't cause any element to |
503 // scroll other than the |m_previousGestureScrolledNode|. | 503 // scroll other than the |m_previousGestureScrolledNode|. |
504 bool m_deltaConsumedForScrollSequence; | 504 bool m_deltaConsumedForScrollSequence; |
505 }; | 505 }; |
506 | 506 |
507 } // namespace blink | 507 } // namespace blink |
508 | 508 |
509 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::EventHandler::TouchInfo); | 509 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::EventHandler::TouchInfo); |
510 | 510 |
511 #endif // EventHandler_h | 511 #endif // EventHandler_h |
OLD | NEW |