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 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
235 // If not, use the current focus or last clicked node. | 235 // If not, use the current focus or last clicked node. |
236 bool logicalScroll(ScrollDirection, ScrollGranularity, Node* startNode = nul
lptr); | 236 bool logicalScroll(ScrollDirection, ScrollGranularity, Node* startNode = nul
lptr); |
237 | 237 |
238 private: | 238 private: |
239 static DragState& dragState(); | 239 static DragState& dragState(); |
240 | 240 |
241 DataTransfer* createDraggingDataTransfer() const; | 241 DataTransfer* createDraggingDataTransfer() const; |
242 | 242 |
243 WebInputEventResult handleMouseMoveOrLeaveEvent(const PlatformMouseEvent&, H
itTestResult* hoveredNode = nullptr, bool onlyUpdateScrollbars = false, bool for
ceLeave = false); | 243 WebInputEventResult handleMouseMoveOrLeaveEvent(const PlatformMouseEvent&, H
itTestResult* hoveredNode = nullptr, bool onlyUpdateScrollbars = false, bool for
ceLeave = false); |
244 WebInputEventResult handleMousePressEvent(const MouseEventWithHitTestResults
&); | 244 WebInputEventResult handleMousePressEvent(const MouseEventWithHitTestResults
&); |
245 WebInputEventResult handleMouseFocus(const MouseEventWithHitTestResults&, In
putDeviceCapabilities* sourceCapabilities); | 245 WebInputEventResult handleMouseFocus(const HitTestResult&, InputDeviceCapabi
lities* sourceCapabilities); |
246 WebInputEventResult handleMouseDraggedEvent(const MouseEventWithHitTestResul
ts&); | 246 WebInputEventResult handleMouseDraggedEvent(const MouseEventWithHitTestResul
ts&); |
247 WebInputEventResult handleMouseReleaseEvent(const MouseEventWithHitTestResul
ts&); | 247 WebInputEventResult handleMouseReleaseEvent(const MouseEventWithHitTestResul
ts&); |
248 | 248 |
249 HitTestRequest::HitTestRequestType getHitTypeForGestureType(PlatformEvent::E
ventType); | 249 HitTestRequest::HitTestRequestType getHitTypeForGestureType(PlatformEvent::E
ventType); |
250 void applyTouchAdjustment(PlatformGestureEvent*, HitTestResult*); | 250 void applyTouchAdjustment(PlatformGestureEvent*, HitTestResult*); |
251 WebInputEventResult handleGestureTapDown(const GestureEventWithHitTestResult
s&); | 251 WebInputEventResult handleGestureTapDown(const GestureEventWithHitTestResult
s&); |
252 WebInputEventResult handleGestureTap(const GestureEventWithHitTestResults&); | 252 WebInputEventResult handleGestureTap(const GestureEventWithHitTestResults&); |
253 WebInputEventResult handleGestureLongPress(const GestureEventWithHitTestResu
lts&); | 253 WebInputEventResult handleGestureLongPress(const GestureEventWithHitTestResu
lts&); |
254 WebInputEventResult handleGestureLongTap(const GestureEventWithHitTestResult
s&); | 254 WebInputEventResult handleGestureLongTap(const GestureEventWithHitTestResult
s&); |
255 | 255 |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
413 // firing for the current gesture sequence (i.e. until next GestureTapDown). | 413 // firing for the current gesture sequence (i.e. until next GestureTapDown). |
414 bool m_suppressMouseEventsFromGestures; | 414 bool m_suppressMouseEventsFromGestures; |
415 | 415 |
416 // TODO(nzolghadr): Temporary until further refactoring | 416 // TODO(nzolghadr): Temporary until further refactoring |
417 friend GestureManager; | 417 friend GestureManager; |
418 }; | 418 }; |
419 | 419 |
420 } // namespace blink | 420 } // namespace blink |
421 | 421 |
422 #endif // EventHandler_h | 422 #endif // EventHandler_h |
OLD | NEW |