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

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

Issue 1838973003: Send lostpointercapture on touch capturing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 1644 matching lines...) Expand 10 before | Expand all | Expand 10 after
1655 1655
1656 RefPtrWillBeRawPtr<MouseEvent> event = MouseEvent::create(eventType, m_nodeU nderMouse->document().domWindow(), mouseEvent, clickCount, nullptr); 1656 RefPtrWillBeRawPtr<MouseEvent> event = MouseEvent::create(eventType, m_nodeU nderMouse->document().domWindow(), mouseEvent, clickCount, nullptr);
1657 return toWebInputEventResult(m_nodeUnderMouse->dispatchEvent(event)); 1657 return toWebInputEventResult(m_nodeUnderMouse->dispatchEvent(event));
1658 } 1658 }
1659 1659
1660 bool EventHandler::isPointerEventActive(int pointerId) 1660 bool EventHandler::isPointerEventActive(int pointerId)
1661 { 1661 {
1662 return m_pointerEventManager.isActive(pointerId); 1662 return m_pointerEventManager.isActive(pointerId);
1663 } 1663 }
1664 1664
1665 WebPointerProperties::PointerType EventHandler::getPointerEventType(int pointerI d)
1666 {
1667 return m_pointerEventManager.getPointerEventType(pointerId);
1668 }
1669
1665 void EventHandler::setPointerCapture(int pointerId, EventTarget* target) 1670 void EventHandler::setPointerCapture(int pointerId, EventTarget* target)
1666 { 1671 {
1667 // TODO(crbug.com/591387): This functionality should be per page not per fra me. 1672 // TODO(crbug.com/591387): This functionality should be per page not per fra me.
1668 m_pointerEventManager.setPointerCapture(pointerId, target); 1673 m_pointerEventManager.setPointerCapture(pointerId, target);
1669 } 1674 }
1670 1675
1671 void EventHandler::releasePointerCapture(int pointerId, EventTarget* target) 1676 void EventHandler::releasePointerCapture(int pointerId, EventTarget* target)
1672 { 1677 {
1673 m_pointerEventManager.releasePointerCapture(pointerId, target); 1678 m_pointerEventManager.releasePointerCapture(pointerId, target);
1674 } 1679 }
(...skipping 2301 matching lines...) Expand 10 before | Expand all | Expand 10 after
3976 PlatformEvent::Modifiers EventHandler::accessKeyModifiers() 3981 PlatformEvent::Modifiers EventHandler::accessKeyModifiers()
3977 { 3982 {
3978 #if OS(MACOSX) 3983 #if OS(MACOSX)
3979 return static_cast<PlatformEvent::Modifiers>(PlatformEvent::CtrlKey | Platfo rmEvent::AltKey); 3984 return static_cast<PlatformEvent::Modifiers>(PlatformEvent::CtrlKey | Platfo rmEvent::AltKey);
3980 #else 3985 #else
3981 return PlatformEvent::AltKey; 3986 return PlatformEvent::AltKey;
3982 #endif 3987 #endif
3983 } 3988 }
3984 3989
3985 } // namespace blink 3990 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/input/EventHandler.h ('k') | third_party/WebKit/Source/core/input/PointerEventManager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698