Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights | 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights |
| 3 * reserved. | 3 * reserved. |
| 4 * Copyright (C) 2006 Alexey Proskuryakov (ap@webkit.org) | 4 * Copyright (C) 2006 Alexey Proskuryakov (ap@webkit.org) |
| 5 * Copyright (C) 2012 Digia Plc. and/or its subsidiary(-ies) | 5 * Copyright (C) 2012 Digia Plc. and/or its subsidiary(-ies) |
| 6 * | 6 * |
| 7 * Redistribution and use in source and binary forms, with or without | 7 * Redistribution and use in source and binary forms, with or without |
| 8 * modification, are permitted provided that the following conditions | 8 * modification, are permitted provided that the following conditions |
| 9 * are met: | 9 * are met: |
| 10 * 1. Redistributions of source code must retain the above copyright | 10 * 1. Redistributions of source code must retain the above copyright |
| (...skipping 1175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1186 | 1186 |
| 1187 void EventHandler::releasePointerCapture(int pointerId, EventTarget* target) { | 1187 void EventHandler::releasePointerCapture(int pointerId, EventTarget* target) { |
| 1188 if (rootFrameTouchPointerActiveInCurrentFrame(pointerId)) { | 1188 if (rootFrameTouchPointerActiveInCurrentFrame(pointerId)) { |
| 1189 m_frame->localFrameRoot()->eventHandler().releasePointerCapture(pointerId, | 1189 m_frame->localFrameRoot()->eventHandler().releasePointerCapture(pointerId, |
| 1190 target); | 1190 target); |
| 1191 } else { | 1191 } else { |
| 1192 m_pointerEventManager->releasePointerCapture(pointerId, target); | 1192 m_pointerEventManager->releasePointerCapture(pointerId, target); |
| 1193 } | 1193 } |
| 1194 } | 1194 } |
| 1195 | 1195 |
| 1196 void EventHandler::releasePointerCapture() { | |
|
Navid Zolghadr
2017/04/10 17:16:14
Can we use a mouse specific name for this function
lanwei
2017/05/17 13:56:00
Done.
| |
| 1197 m_pointerEventManager->releasePointerCapture(PointerEventFactory::s_mouseId); | |
| 1198 } | |
| 1199 | |
| 1196 bool EventHandler::hasPointerCapture(int pointerId, | 1200 bool EventHandler::hasPointerCapture(int pointerId, |
| 1197 const EventTarget* target) const { | 1201 const EventTarget* target) const { |
| 1198 if (rootFrameTouchPointerActiveInCurrentFrame(pointerId)) { | 1202 if (rootFrameTouchPointerActiveInCurrentFrame(pointerId)) { |
| 1199 return m_frame->localFrameRoot()->eventHandler().hasPointerCapture( | 1203 return m_frame->localFrameRoot()->eventHandler().hasPointerCapture( |
| 1200 pointerId, target); | 1204 pointerId, target); |
| 1201 } else { | 1205 } else { |
| 1202 return m_pointerEventManager->hasPointerCapture(pointerId, target); | 1206 return m_pointerEventManager->hasPointerCapture(pointerId, target); |
| 1203 } | 1207 } |
| 1204 } | 1208 } |
| 1205 | 1209 |
| (...skipping 880 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2086 MouseEventWithHitTestResults& mev, | 2090 MouseEventWithHitTestResults& mev, |
| 2087 LocalFrame* subframe) { | 2091 LocalFrame* subframe) { |
| 2088 WebInputEventResult result = | 2092 WebInputEventResult result = |
| 2089 subframe->eventHandler().handleMouseReleaseEvent(mev.event()); | 2093 subframe->eventHandler().handleMouseReleaseEvent(mev.event()); |
| 2090 if (result != WebInputEventResult::NotHandled) | 2094 if (result != WebInputEventResult::NotHandled) |
| 2091 return result; | 2095 return result; |
| 2092 return WebInputEventResult::HandledSystem; | 2096 return WebInputEventResult::HandledSystem; |
| 2093 } | 2097 } |
| 2094 | 2098 |
| 2095 } // namespace blink | 2099 } // namespace blink |
| OLD | NEW |