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

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

Issue 1971473002: Move touch hit testing to PointerEventManager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 bool useHandCursor(Node*, bool isOverLink); 217 bool useHandCursor(Node*, bool isOverLink);
218 218
219 void notifyElementActivated(); 219 void notifyElementActivated();
220 220
221 PassRefPtr<UserGestureToken> takeLastMouseDownGestureToken() { return m_last MouseDownUserGestureToken.release(); } 221 PassRefPtr<UserGestureToken> takeLastMouseDownGestureToken() { return m_last MouseDownUserGestureToken.release(); }
222 222
223 int clickCount() { return m_clickCount; } 223 int clickCount() { return m_clickCount; }
224 224
225 SelectionController& selectionController() const { return *m_selectionContro ller; } 225 SelectionController& selectionController() const { return *m_selectionContro ller; }
226 226
227 class TouchInfo {
228 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW();
229 public:
230 DEFINE_INLINE_TRACE()
231 {
232 visitor->trace(touchTarget);
233 visitor->trace(targetFrame);
234 }
235
236 PlatformTouchPoint point;
237 Member<EventTarget> touchTarget;
238 Member<LocalFrame> targetFrame;
239 FloatPoint adjustedPagePoint;
240 FloatSize adjustedRadius;
241 bool knownTarget;
242 bool consumed;
243 String region;
244 };
245
246 private: 227 private:
247 static DragState& dragState(); 228 static DragState& dragState();
248 229
249 DataTransfer* createDraggingDataTransfer() const; 230 DataTransfer* createDraggingDataTransfer() const;
250 231
251 WebInputEventResult handleMouseMoveOrLeaveEvent(const PlatformMouseEvent&, H itTestResult* hoveredNode = nullptr, bool onlyUpdateScrollbars = false, bool for ceLeave = false); 232 WebInputEventResult handleMouseMoveOrLeaveEvent(const PlatformMouseEvent&, H itTestResult* hoveredNode = nullptr, bool onlyUpdateScrollbars = false, bool for ceLeave = false);
252 WebInputEventResult handleMousePressEvent(const MouseEventWithHitTestResults &); 233 WebInputEventResult handleMousePressEvent(const MouseEventWithHitTestResults &);
253 WebInputEventResult handleMouseFocus(const MouseEventWithHitTestResults&, In putDeviceCapabilities* sourceCapabilities); 234 WebInputEventResult handleMouseFocus(const MouseEventWithHitTestResults&, In putDeviceCapabilities* sourceCapabilities);
254 WebInputEventResult handleMouseDraggedEvent(const MouseEventWithHitTestResul ts&); 235 WebInputEventResult handleMouseDraggedEvent(const MouseEventWithHitTestResul ts&);
255 WebInputEventResult handleMouseReleaseEvent(const MouseEventWithHitTestResul ts&); 236 WebInputEventResult handleMouseReleaseEvent(const MouseEventWithHitTestResul ts&);
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
479 // True iff some of the delta has been consumed for the current 460 // True iff some of the delta has been consumed for the current
480 // scroll sequence in this frame, or any child frames. Only used 461 // scroll sequence in this frame, or any child frames. Only used
481 // with ScrollCustomization. If some delta has been consumed, a 462 // with ScrollCustomization. If some delta has been consumed, a
482 // scroll which shouldn't propagate can't cause any element to 463 // scroll which shouldn't propagate can't cause any element to
483 // scroll other than the |m_previousGestureScrolledNode|. 464 // scroll other than the |m_previousGestureScrolledNode|.
484 bool m_deltaConsumedForScrollSequence; 465 bool m_deltaConsumedForScrollSequence;
485 }; 466 };
486 467
487 } // namespace blink 468 } // namespace blink
488 469
489 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::EventHandler::TouchInfo);
490
491 #endif // EventHandler_h 470 #endif // EventHandler_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698