| 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 356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 367 void setLastKnownMousePosition(const PlatformMouseEvent&); | 367 void setLastKnownMousePosition(const PlatformMouseEvent&); |
| 368 | 368 |
| 369 bool shouldTopControlsConsumeScroll(FloatSize) const; | 369 bool shouldTopControlsConsumeScroll(FloatSize) const; |
| 370 | 370 |
| 371 // If the given element is a shadow host and its root has delegatesFocus=fal
se flag, | 371 // If the given element is a shadow host and its root has delegatesFocus=fal
se flag, |
| 372 // slide focus to its inner element. Returns true if the resulting focus is
different from | 372 // slide focus to its inner element. Returns true if the resulting focus is
different from |
| 373 // the given element. | 373 // the given element. |
| 374 bool slideFocusOnShadowHostIfNecessary(const Element&); | 374 bool slideFocusOnShadowHostIfNecessary(const Element&); |
| 375 | 375 |
| 376 void dispatchPointerEvents(const PlatformTouchEvent&, WillBeHeapVector<Touch
Info>&); | 376 void dispatchPointerEvents(const PlatformTouchEvent&, WillBeHeapVector<Touch
Info>&); |
| 377 void sendPointerCancels(WillBeHeapVector<TouchInfo>&); | |
| 378 | 377 |
| 379 WebInputEventResult dispatchTouchEvents(const PlatformTouchEvent&, WillBeHea
pVector<TouchInfo>&, bool, bool); | 378 WebInputEventResult dispatchTouchEvents(const PlatformTouchEvent&, WillBeHea
pVector<TouchInfo>&, bool, bool); |
| 380 | 379 |
| 381 // NOTE: If adding a new field to this class please ensure that it is | 380 // NOTE: If adding a new field to this class please ensure that it is |
| 382 // cleared in |EventHandler::clear()|. | 381 // cleared in |EventHandler::clear()|. |
| 383 | 382 |
| 384 const RawPtrWillBeMember<LocalFrame> m_frame; | 383 const RawPtrWillBeMember<LocalFrame> m_frame; |
| 385 | 384 |
| 386 // Current button-press state for mouse/mouse-like-stylus. | 385 // Current button-press state for mouse/mouse-like-stylus. |
| 387 // TODO(crbug.com/563676): Buggy for chorded buttons. | 386 // TODO(crbug.com/563676): Buggy for chorded buttons. |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 446 TouchRegionMap m_regionForTouchID; | 445 TouchRegionMap m_regionForTouchID; |
| 447 | 446 |
| 448 // If set, the document of the active touch sequence. Unset if no touch sequ
ence active. | 447 // If set, the document of the active touch sequence. Unset if no touch sequ
ence active. |
| 449 RefPtrWillBeMember<Document> m_touchSequenceDocument; | 448 RefPtrWillBeMember<Document> m_touchSequenceDocument; |
| 450 RefPtr<UserGestureToken> m_touchSequenceUserGestureToken; | 449 RefPtr<UserGestureToken> m_touchSequenceUserGestureToken; |
| 451 | 450 |
| 452 bool m_touchPressed; | 451 bool m_touchPressed; |
| 453 | 452 |
| 454 PointerEventManager m_pointerEventManager; | 453 PointerEventManager m_pointerEventManager; |
| 455 | 454 |
| 456 // This is set upon sending a pointercancel for touch, prevents PE dispatche
s for touches until | |
| 457 // all touch-points become inactive. | |
| 458 // TODO(mustaq): Consider a state per pointerType, as in PointerIdManager? E
xclude mouse? | |
| 459 bool m_inPointerCanceledState; | |
| 460 | |
| 461 RefPtrWillBeMember<Node> m_scrollGestureHandlingNode; | 455 RefPtrWillBeMember<Node> m_scrollGestureHandlingNode; |
| 462 bool m_lastGestureScrollOverWidget; | 456 bool m_lastGestureScrollOverWidget; |
| 463 // The most recent element to scroll natively during this scroll | 457 // The most recent element to scroll natively during this scroll |
| 464 // sequence. Null if no native element has scrolled this scroll | 458 // sequence. Null if no native element has scrolled this scroll |
| 465 // sequence, or if the most recent element to scroll used scroll | 459 // sequence, or if the most recent element to scroll used scroll |
| 466 // customization. | 460 // customization. |
| 467 RefPtrWillBeMember<Node> m_previousGestureScrolledNode; | 461 RefPtrWillBeMember<Node> m_previousGestureScrolledNode; |
| 468 RefPtrWillBeMember<Scrollbar> m_scrollbarHandlingScrollGesture; | 462 RefPtrWillBeMember<Scrollbar> m_scrollbarHandlingScrollGesture; |
| 469 | 463 |
| 470 double m_maxMouseMovedDuration; | 464 double m_maxMouseMovedDuration; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 483 // scroll which shouldn't propagate can't cause any element to | 477 // scroll which shouldn't propagate can't cause any element to |
| 484 // scroll other than the |m_previousGestureScrolledNode|. | 478 // scroll other than the |m_previousGestureScrolledNode|. |
| 485 bool m_deltaConsumedForScrollSequence; | 479 bool m_deltaConsumedForScrollSequence; |
| 486 }; | 480 }; |
| 487 | 481 |
| 488 } // namespace blink | 482 } // namespace blink |
| 489 | 483 |
| 490 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::EventHandler::TouchInfo); | 484 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::EventHandler::TouchInfo); |
| 491 | 485 |
| 492 #endif // EventHandler_h | 486 #endif // EventHandler_h |
| OLD | NEW |