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 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 bool bestZoomableAreaForTouchPoint(const IntPoint& touchCenter, const IntSiz
e& touchRadius, IntRect& targetArea, Node*& targetNode); | 179 bool bestZoomableAreaForTouchPoint(const IntPoint& touchCenter, const IntSiz
e& touchRadius, IntRect& targetArea, Node*& targetNode); |
180 | 180 |
181 WebInputEventResult sendContextMenuEvent(const PlatformMouseEvent&, Node* ov
errideTargetNode = nullptr); | 181 WebInputEventResult sendContextMenuEvent(const PlatformMouseEvent&, Node* ov
errideTargetNode = nullptr); |
182 WebInputEventResult sendContextMenuEventForKey(Element* overrideTargetElemen
t = nullptr); | 182 WebInputEventResult sendContextMenuEventForKey(Element* overrideTargetElemen
t = nullptr); |
183 | 183 |
184 // Returns whether pointerId is active or not | 184 // Returns whether pointerId is active or not |
185 bool isPointerEventActive(int); | 185 bool isPointerEventActive(int); |
186 | 186 |
187 void setPointerCapture(int, EventTarget*); | 187 void setPointerCapture(int, EventTarget*); |
188 void releasePointerCapture(int, EventTarget*); | 188 void releasePointerCapture(int, EventTarget*); |
189 bool hasPointerCapture(int, EventTarget*); | 189 bool hasPointerCapture(int, const EventTarget*) const; |
| 190 bool hasProcessedPointerCapture(int, const EventTarget*) const; |
190 | 191 |
191 void elementRemoved(EventTarget*); | 192 void elementRemoved(EventTarget*); |
192 | 193 |
193 void setMouseDownMayStartAutoscroll() { m_mouseDownMayStartAutoscroll = true
; } | 194 void setMouseDownMayStartAutoscroll() { m_mouseDownMayStartAutoscroll = true
; } |
194 | 195 |
195 static WebInputEventResult mergeEventResult(WebInputEventResult resultA, Web
InputEventResult resultB); | 196 static WebInputEventResult mergeEventResult(WebInputEventResult resultA, Web
InputEventResult resultB); |
196 static WebInputEventResult toWebInputEventResult(DispatchEventResult); | 197 static WebInputEventResult toWebInputEventResult(DispatchEventResult); |
197 | 198 |
198 bool handleAccessKey(const PlatformKeyboardEvent&); | 199 bool handleAccessKey(const PlatformKeyboardEvent&); |
199 WebInputEventResult keyEvent(const PlatformKeyboardEvent&); | 200 WebInputEventResult keyEvent(const PlatformKeyboardEvent&); |
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
413 // firing for the current gesture sequence (i.e. until next GestureTapDown). | 414 // firing for the current gesture sequence (i.e. until next GestureTapDown). |
414 bool m_suppressMouseEventsFromGestures; | 415 bool m_suppressMouseEventsFromGestures; |
415 | 416 |
416 // TODO(nzolghadr): Temporary until further refactoring | 417 // TODO(nzolghadr): Temporary until further refactoring |
417 friend GestureManager; | 418 friend GestureManager; |
418 }; | 419 }; |
419 | 420 |
420 } // namespace blink | 421 } // namespace blink |
421 | 422 |
422 #endif // EventHandler_h | 423 #endif // EventHandler_h |
OLD | NEW |