| 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 3620 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3631 return result; | 3631 return result; |
| 3632 } | 3632 } |
| 3633 | 3633 |
| 3634 WebInputEventResult EventHandler::handleTouchEvent(const PlatformTouchEvent& eve
nt) | 3634 WebInputEventResult EventHandler::handleTouchEvent(const PlatformTouchEvent& eve
nt) |
| 3635 { | 3635 { |
| 3636 TRACE_EVENT0("blink", "EventHandler::handleTouchEvent"); | 3636 TRACE_EVENT0("blink", "EventHandler::handleTouchEvent"); |
| 3637 | 3637 |
| 3638 return m_pointerEventManager.handleTouchEvents(event); | 3638 return m_pointerEventManager.handleTouchEvents(event); |
| 3639 } | 3639 } |
| 3640 | 3640 |
| 3641 void EventHandler::userGestureUtilized() | |
| 3642 { | |
| 3643 // This is invoked for UserGestureIndicators created in TouchEventManger::ha
ndleTouchEvent which perhaps | |
| 3644 // represent touch actions which shouldn't be considered a user-gesture. | |
| 3645 UseCounter::count(m_frame, UseCounter::TouchDragUserGestureUsed); | |
| 3646 } | |
| 3647 | |
| 3648 void EventHandler::setLastKnownMousePosition(const PlatformMouseEvent& event) | 3641 void EventHandler::setLastKnownMousePosition(const PlatformMouseEvent& event) |
| 3649 { | 3642 { |
| 3650 m_mousePositionIsUnknown = false; | 3643 m_mousePositionIsUnknown = false; |
| 3651 m_lastKnownMousePosition = event.position(); | 3644 m_lastKnownMousePosition = event.position(); |
| 3652 m_lastKnownMouseGlobalPosition = event.globalPosition(); | 3645 m_lastKnownMouseGlobalPosition = event.globalPosition(); |
| 3653 } | 3646 } |
| 3654 | 3647 |
| 3655 WebInputEventResult EventHandler::passMousePressEventToSubframe(MouseEventWithHi
tTestResults& mev, LocalFrame* subframe) | 3648 WebInputEventResult EventHandler::passMousePressEventToSubframe(MouseEventWithHi
tTestResults& mev, LocalFrame* subframe) |
| 3656 { | 3649 { |
| 3657 selectionController().passMousePressEventToSubframe(mev); | 3650 selectionController().passMousePressEventToSubframe(mev); |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3703 | 3696 |
| 3704 FrameHost* EventHandler::frameHost() const | 3697 FrameHost* EventHandler::frameHost() const |
| 3705 { | 3698 { |
| 3706 if (!m_frame->page()) | 3699 if (!m_frame->page()) |
| 3707 return nullptr; | 3700 return nullptr; |
| 3708 | 3701 |
| 3709 return &m_frame->page()->frameHost(); | 3702 return &m_frame->page()->frameHost(); |
| 3710 } | 3703 } |
| 3711 | 3704 |
| 3712 } // namespace blink | 3705 } // namespace blink |
| OLD | NEW |