Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(414)

Side by Side Diff: third_party/WebKit/Source/core/input/EventHandler.cpp

Issue 1996143002: Deprecate use of user gestures during scroll-related touch events (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge with trunk Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/input/EventHandler.h ('k') | third_party/WebKit/Source/core/input/PointerEventManager.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698