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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 void UpdateSelectionForMouseDrag(); | 90 void UpdateSelectionForMouseDrag(); |
91 void StartMiddleClickAutoscroll(LayoutObject*); | 91 void StartMiddleClickAutoscroll(LayoutObject*); |
92 | 92 |
93 // TODO(nzolghadr): Some of the APIs in this class only forward the action | 93 // TODO(nzolghadr): Some of the APIs in this class only forward the action |
94 // to the corresponding Manager class. We need to investigate whether it is | 94 // to the corresponding Manager class. We need to investigate whether it is |
95 // better to expose the manager instance itself later or can the access to | 95 // better to expose the manager instance itself later or can the access to |
96 // those APIs be more limited or removed. | 96 // those APIs be more limited or removed. |
97 | 97 |
98 void StopAutoscroll(); | 98 void StopAutoscroll(); |
99 | 99 |
100 void DispatchFakeMouseMoveEventSoon(); | 100 void DispatchFakeMouseMoveEventSoon(MouseEventManager::FakeMouseMoveReason); |
101 void DispatchFakeMouseMoveEventSoonInQuad(const FloatQuad&); | 101 void DispatchFakeMouseMoveEventSoonInQuad(const FloatQuad&); |
102 | 102 |
103 HitTestResult HitTestResultAtPoint( | 103 HitTestResult HitTestResultAtPoint( |
104 const LayoutPoint&, | 104 const LayoutPoint&, |
105 HitTestRequest::HitTestRequestType hit_type = HitTestRequest::kReadOnly | | 105 HitTestRequest::HitTestRequestType hit_type = HitTestRequest::kReadOnly | |
106 HitTestRequest::kActive, | 106 HitTestRequest::kActive, |
107 const LayoutSize& padding = LayoutSize()); | 107 const LayoutSize& padding = LayoutSize()); |
108 | 108 |
109 bool MousePressed() const { return mouse_event_manager_->MousePressed(); } | 109 bool MousePressed() const { return mouse_event_manager_->MousePressed(); } |
110 bool IsMousePositionUnknown() const { | 110 bool IsMousePositionUnknown() const { |
111 return mouse_event_manager_->IsMousePositionUnknown(); | 111 return mouse_event_manager_->IsMousePositionUnknown(); |
112 } | 112 } |
113 void ClearMouseEventManager() const { mouse_event_manager_->Clear(); } | 113 void ClearMouseEventManager() const { mouse_event_manager_->Clear(); } |
114 void SetCapturingMouseEventsNode( | 114 void SetCapturingMouseEventsNode( |
115 Node*); // A caller is responsible for resetting capturing node to 0. | 115 Node*); // A caller is responsible for resetting capturing node to 0. |
116 | 116 |
117 WebInputEventResult UpdateDragAndDrop(const WebMouseEvent&, DataTransfer*); | 117 WebInputEventResult UpdateDragAndDrop(const WebMouseEvent&, DataTransfer*); |
118 void CancelDragAndDrop(const WebMouseEvent&, DataTransfer*); | 118 void CancelDragAndDrop(const WebMouseEvent&, DataTransfer*); |
119 WebInputEventResult PerformDragAndDrop(const WebMouseEvent&, DataTransfer*); | 119 WebInputEventResult PerformDragAndDrop(const WebMouseEvent&, DataTransfer*); |
120 void UpdateDragStateAfterEditDragIfNeeded(Element* root_editable_element); | 120 void UpdateDragStateAfterEditDragIfNeeded(Element* root_editable_element); |
121 | 121 |
122 void ScheduleHoverStateUpdate(); | 122 void ScheduleHoverStateUpdate(); |
123 void ScheduleCursorUpdate(); | 123 void ScheduleCursorUpdate(); |
124 | 124 |
125 // Return whether a mouse cursor update is currently pending. Used for | 125 // Return whether a mouse cursor update is currently pending. Used for |
126 // testing. | 126 // testing. |
127 bool CursorUpdatePending(); | 127 bool CursorUpdatePending(); |
128 | 128 |
| 129 // Return whether sending a fake mouse move is currently pending. Used for |
| 130 // testing. |
| 131 bool FakeMouseMovePending() const; |
| 132 |
129 void SetResizingFrameSet(HTMLFrameSetElement*); | 133 void SetResizingFrameSet(HTMLFrameSetElement*); |
130 | 134 |
131 void ResizeScrollableAreaDestroyed(); | 135 void ResizeScrollableAreaDestroyed(); |
132 | 136 |
133 IntPoint LastKnownMousePosition() const; | 137 IntPoint LastKnownMousePosition() const; |
134 | 138 |
135 IntPoint DragDataTransferLocationForTesting(); | 139 IntPoint DragDataTransferLocationForTesting(); |
136 | 140 |
137 // Performs a logical scroll that chains, crossing frames, starting from | 141 // Performs a logical scroll that chains, crossing frames, starting from |
138 // the given node or a reasonable default (focus/last clicked). | 142 // the given node or a reasonable default (focus/last clicked). |
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
388 | 392 |
389 // Set on GestureTapDown if the |pointerdown| event corresponding to the | 393 // Set on GestureTapDown if the |pointerdown| event corresponding to the |
390 // triggering |touchstart| event was canceled. This suppresses mouse event | 394 // triggering |touchstart| event was canceled. This suppresses mouse event |
391 // firing for the current gesture sequence (i.e. until next GestureTapDown). | 395 // firing for the current gesture sequence (i.e. until next GestureTapDown). |
392 bool suppress_mouse_events_from_gestures_; | 396 bool suppress_mouse_events_from_gestures_; |
393 }; | 397 }; |
394 | 398 |
395 } // namespace blink | 399 } // namespace blink |
396 | 400 |
397 #endif // EventHandler_h | 401 #endif // EventHandler_h |
OLD | NEW |