| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserv
ed. | 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserv
ed. |
| 3 * Copyright (C) 2006 Alexey Proskuryakov (ap@webkit.org) | 3 * Copyright (C) 2006 Alexey Proskuryakov (ap@webkit.org) |
| 4 * Copyright (C) 2012 Digia Plc. and/or its subsidiary(-ies) | 4 * Copyright (C) 2012 Digia Plc. and/or its subsidiary(-ies) |
| 5 * | 5 * |
| 6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
| 7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
| 8 * are met: | 8 * are met: |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 3624 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3635 return result; | 3635 return result; |
| 3636 } | 3636 } |
| 3637 | 3637 |
| 3638 WebInputEventResult EventHandler::handleTouchEvent(const PlatformTouchEvent& eve
nt) | 3638 WebInputEventResult EventHandler::handleTouchEvent(const PlatformTouchEvent& eve
nt) |
| 3639 { | 3639 { |
| 3640 TRACE_EVENT0("blink", "EventHandler::handleTouchEvent"); | 3640 TRACE_EVENT0("blink", "EventHandler::handleTouchEvent"); |
| 3641 | 3641 |
| 3642 return m_pointerEventManager.handleTouchEvents(event); | 3642 return m_pointerEventManager.handleTouchEvents(event); |
| 3643 } | 3643 } |
| 3644 | 3644 |
| 3645 void EventHandler::userGestureUtilized() | |
| 3646 { | |
| 3647 // This is invoked for UserGestureIndicators created in TouchEventManger::ha
ndleTouchEvent which perhaps | |
| 3648 // represent touch actions which shouldn't be considered a user-gesture. | |
| 3649 UseCounter::count(m_frame, UseCounter::TouchDragUserGestureUsed); | |
| 3650 } | |
| 3651 | |
| 3652 void EventHandler::setLastKnownMousePosition(const PlatformMouseEvent& event) | 3645 void EventHandler::setLastKnownMousePosition(const PlatformMouseEvent& event) |
| 3653 { | 3646 { |
| 3654 m_mousePositionIsUnknown = false; | 3647 m_mousePositionIsUnknown = false; |
| 3655 m_lastKnownMousePosition = event.position(); | 3648 m_lastKnownMousePosition = event.position(); |
| 3656 m_lastKnownMouseGlobalPosition = event.globalPosition(); | 3649 m_lastKnownMouseGlobalPosition = event.globalPosition(); |
| 3657 } | 3650 } |
| 3658 | 3651 |
| 3659 WebInputEventResult EventHandler::passMousePressEventToSubframe(MouseEventWithHi
tTestResults& mev, LocalFrame* subframe) | 3652 WebInputEventResult EventHandler::passMousePressEventToSubframe(MouseEventWithHi
tTestResults& mev, LocalFrame* subframe) |
| 3660 { | 3653 { |
| 3661 selectionController().passMousePressEventToSubframe(mev); | 3654 selectionController().passMousePressEventToSubframe(mev); |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3707 | 3700 |
| 3708 FrameHost* EventHandler::frameHost() const | 3701 FrameHost* EventHandler::frameHost() const |
| 3709 { | 3702 { |
| 3710 if (!m_frame->page()) | 3703 if (!m_frame->page()) |
| 3711 return nullptr; | 3704 return nullptr; |
| 3712 | 3705 |
| 3713 return &m_frame->page()->frameHost(); | 3706 return &m_frame->page()->frameHost(); |
| 3714 } | 3707 } |
| 3715 | 3708 |
| 3716 } // namespace blink | 3709 } // namespace blink |
| OLD | NEW |