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

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

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, 2009, 2010, 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2009, 2010, 2011 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 // FIXME: This doesn't appear to be used outside tests anymore, what path ar e we using now and is it tested? 174 // FIXME: This doesn't appear to be used outside tests anymore, what path ar e we using now and is it tested?
175 bool bestZoomableAreaForTouchPoint(const IntPoint& touchCenter, const IntSiz e& touchRadius, IntRect& targetArea, Node*& targetNode); 175 bool bestZoomableAreaForTouchPoint(const IntPoint& touchCenter, const IntSiz e& touchRadius, IntRect& targetArea, Node*& targetNode);
176 176
177 WebInputEventResult sendContextMenuEvent(const PlatformMouseEvent&, Node* ov errideTargetNode = nullptr); 177 WebInputEventResult sendContextMenuEvent(const PlatformMouseEvent&, Node* ov errideTargetNode = nullptr);
178 WebInputEventResult sendContextMenuEventForKey(Element* overrideTargetElemen t = nullptr); 178 WebInputEventResult sendContextMenuEventForKey(Element* overrideTargetElemen t = nullptr);
179 WebInputEventResult sendContextMenuEventForGesture(const GestureEventWithHit TestResults&); 179 WebInputEventResult sendContextMenuEventForGesture(const GestureEventWithHit TestResults&);
180 180
181 // Returns whether pointerId is active or not 181 // Returns whether pointerId is active or not
182 bool isPointerEventActive(int); 182 bool isPointerEventActive(int);
183 183
184 // Returns the type of the pointer corresponding to given pointerId
185 WebPointerProperties::PointerType getPointerEventType(int);
186
184 void setPointerCapture(int, EventTarget*); 187 void setPointerCapture(int, EventTarget*);
185 void releasePointerCapture(int, EventTarget*); 188 void releasePointerCapture(int, EventTarget*);
186 void elementRemoved(EventTarget*); 189 void elementRemoved(EventTarget*);
187 190
188 void setMouseDownMayStartAutoscroll() { m_mouseDownMayStartAutoscroll = true ; } 191 void setMouseDownMayStartAutoscroll() { m_mouseDownMayStartAutoscroll = true ; }
189 192
190 static WebInputEventResult mergeEventResult(WebInputEventResult resultA, Web InputEventResult resultB); 193 static WebInputEventResult mergeEventResult(WebInputEventResult resultA, Web InputEventResult resultB);
191 static WebInputEventResult toWebInputEventResult(DispatchEventResult); 194 static WebInputEventResult toWebInputEventResult(DispatchEventResult);
192 195
193 static PlatformEvent::Modifiers accessKeyModifiers(); 196 static PlatformEvent::Modifiers accessKeyModifiers();
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after
483 // scroll which shouldn't propagate can't cause any element to 486 // scroll which shouldn't propagate can't cause any element to
484 // scroll other than the |m_previousGestureScrolledNode|. 487 // scroll other than the |m_previousGestureScrolledNode|.
485 bool m_deltaConsumedForScrollSequence; 488 bool m_deltaConsumedForScrollSequence;
486 }; 489 };
487 490
488 } // namespace blink 491 } // namespace blink
489 492
490 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::EventHandler::TouchInfo); 493 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::EventHandler::TouchInfo);
491 494
492 #endif // EventHandler_h 495 #endif // EventHandler_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/events/PointerEventFactory.cpp ('k') | third_party/WebKit/Source/core/input/EventHandler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698