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

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

Issue 2193473002: Revert "Send got/lostpointercapture immediately if possible" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 // most recently clicked node, falling back to the frame. 226 // most recently clicked node, falling back to the frame.
227 // Returns true if the scroll was consumed. 227 // Returns true if the scroll was consumed.
228 // direction - The logical direction to scroll in. This will be converted to 228 // direction - The logical direction to scroll in. This will be converted to
229 // a physical direction for each LayoutBox we try to scroll 229 // a physical direction for each LayoutBox we try to scroll
230 // based on that box's writing mode. 230 // based on that box's writing mode.
231 // granularity - The units that the scroll delta parameter is in. 231 // granularity - The units that the scroll delta parameter is in.
232 // startNode - Optional. If provided, start chaining from the given node. 232 // startNode - Optional. If provided, start chaining from the given node.
233 // If not, use the current focus or last clicked node. 233 // If not, use the current focus or last clicked node.
234 bool logicalScroll(ScrollDirection, ScrollGranularity, Node* startNode = nul lptr); 234 bool logicalScroll(ScrollDirection, ScrollGranularity, Node* startNode = nul lptr);
235 235
236 // TODO(crbug.com/629935): This function is only used by PointerEventManager
237 // and should be removed as soon as PointerEventManager is a GC object.
238 void immediatelyProcessPendingPointerCapture(int pointerId);
239
240 private: 236 private:
241 static DragState& dragState(); 237 static DragState& dragState();
242 238
243 DataTransfer* createDraggingDataTransfer() const; 239 DataTransfer* createDraggingDataTransfer() const;
244 240
245 WebInputEventResult handleMouseMoveOrLeaveEvent(const PlatformMouseEvent&, H itTestResult* hoveredNode = nullptr, bool onlyUpdateScrollbars = false, bool for ceLeave = false); 241 WebInputEventResult handleMouseMoveOrLeaveEvent(const PlatformMouseEvent&, H itTestResult* hoveredNode = nullptr, bool onlyUpdateScrollbars = false, bool for ceLeave = false);
246 WebInputEventResult handleMousePressEvent(const MouseEventWithHitTestResults &); 242 WebInputEventResult handleMousePressEvent(const MouseEventWithHitTestResults &);
247 WebInputEventResult handleMouseFocus(const MouseEventWithHitTestResults&, In putDeviceCapabilities* sourceCapabilities); 243 WebInputEventResult handleMouseFocus(const MouseEventWithHitTestResults&, In putDeviceCapabilities* sourceCapabilities);
248 WebInputEventResult handleMouseDraggedEvent(const MouseEventWithHitTestResul ts&); 244 WebInputEventResult handleMouseDraggedEvent(const MouseEventWithHitTestResul ts&);
249 WebInputEventResult handleMouseReleaseEvent(const MouseEventWithHitTestResul ts&); 245 WebInputEventResult handleMouseReleaseEvent(const MouseEventWithHitTestResul ts&);
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
415 // firing for the current gesture sequence (i.e. until next GestureTapDown). 411 // firing for the current gesture sequence (i.e. until next GestureTapDown).
416 bool m_suppressMouseEventsFromGestures; 412 bool m_suppressMouseEventsFromGestures;
417 413
418 // TODO(nzolghadr): Temporary until further refactoring 414 // TODO(nzolghadr): Temporary until further refactoring
419 friend GestureManager; 415 friend GestureManager;
420 }; 416 };
421 417
422 } // namespace blink 418 } // namespace blink
423 419
424 #endif // EventHandler_h 420 #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