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