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 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 WebInputEventResult sendContextMenuEvent(const WebMouseEvent&, | 193 WebInputEventResult sendContextMenuEvent(const WebMouseEvent&, |
194 Node* overrideTargetNode = nullptr); | 194 Node* overrideTargetNode = nullptr); |
195 WebInputEventResult sendContextMenuEventForKey( | 195 WebInputEventResult sendContextMenuEventForKey( |
196 Element* overrideTargetElement = nullptr); | 196 Element* overrideTargetElement = nullptr); |
197 | 197 |
198 // Returns whether pointerId is active or not | 198 // Returns whether pointerId is active or not |
199 bool isPointerEventActive(int); | 199 bool isPointerEventActive(int); |
200 | 200 |
201 void setPointerCapture(int, EventTarget*); | 201 void setPointerCapture(int, EventTarget*); |
202 void releasePointerCapture(int, EventTarget*); | 202 void releasePointerCapture(int, EventTarget*); |
| 203 void releasePointerCapture(); |
203 bool hasPointerCapture(int, const EventTarget*) const; | 204 bool hasPointerCapture(int, const EventTarget*) const; |
204 bool hasProcessedPointerCapture(int, const EventTarget*) const; | 205 bool hasProcessedPointerCapture(int, const EventTarget*) const; |
205 | 206 |
206 void elementRemoved(EventTarget*); | 207 void elementRemoved(EventTarget*); |
207 | 208 |
208 void setMouseDownMayStartAutoscroll(); | 209 void setMouseDownMayStartAutoscroll(); |
209 | 210 |
210 bool handleAccessKey(const WebKeyboardEvent&); | 211 bool handleAccessKey(const WebKeyboardEvent&); |
211 WebInputEventResult keyEvent(const WebKeyboardEvent&); | 212 WebInputEventResult keyEvent(const WebKeyboardEvent&); |
212 void defaultKeyboardEventHandler(KeyboardEvent*); | 213 void defaultKeyboardEventHandler(KeyboardEvent*); |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
381 | 382 |
382 // Set on GestureTapDown if the |pointerdown| event corresponding to the | 383 // Set on GestureTapDown if the |pointerdown| event corresponding to the |
383 // triggering |touchstart| event was canceled. This suppresses mouse event | 384 // triggering |touchstart| event was canceled. This suppresses mouse event |
384 // firing for the current gesture sequence (i.e. until next GestureTapDown). | 385 // firing for the current gesture sequence (i.e. until next GestureTapDown). |
385 bool m_suppressMouseEventsFromGestures; | 386 bool m_suppressMouseEventsFromGestures; |
386 }; | 387 }; |
387 | 388 |
388 } // namespace blink | 389 } // namespace blink |
389 | 390 |
390 #endif // EventHandler_h | 391 #endif // EventHandler_h |
OLD | NEW |