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 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 const WebMouseEvent&, | 194 const WebMouseEvent&, |
195 Node* override_target_node = nullptr); | 195 Node* override_target_node = nullptr); |
196 WebInputEventResult SendContextMenuEventForKey( | 196 WebInputEventResult SendContextMenuEventForKey( |
197 Element* override_target_element = nullptr); | 197 Element* override_target_element = nullptr); |
198 | 198 |
199 // Returns whether pointerId is active or not | 199 // Returns whether pointerId is active or not |
200 bool IsPointerEventActive(int); | 200 bool IsPointerEventActive(int); |
201 | 201 |
202 void SetPointerCapture(int, EventTarget*); | 202 void SetPointerCapture(int, EventTarget*); |
203 void ReleasePointerCapture(int, EventTarget*); | 203 void ReleasePointerCapture(int, EventTarget*); |
| 204 void ReleaseMousePointerCapture(); |
204 bool HasPointerCapture(int, const EventTarget*) const; | 205 bool HasPointerCapture(int, const EventTarget*) const; |
205 bool HasProcessedPointerCapture(int, const EventTarget*) const; | 206 bool HasProcessedPointerCapture(int, const EventTarget*) const; |
| 207 void ProcessPendingPointerCapture(const WebMouseEvent&, |
| 208 const Vector<WebMouseEvent>&); |
206 | 209 |
207 void ElementRemoved(EventTarget*); | 210 void ElementRemoved(EventTarget*); |
208 | 211 |
209 void SetMouseDownMayStartAutoscroll(); | 212 void SetMouseDownMayStartAutoscroll(); |
210 | 213 |
211 bool HandleAccessKey(const WebKeyboardEvent&); | 214 bool HandleAccessKey(const WebKeyboardEvent&); |
212 WebInputEventResult KeyEvent(const WebKeyboardEvent&); | 215 WebInputEventResult KeyEvent(const WebKeyboardEvent&); |
213 void DefaultKeyboardEventHandler(KeyboardEvent*); | 216 void DefaultKeyboardEventHandler(KeyboardEvent*); |
214 | 217 |
215 bool HandleTextInputEvent(const String& text, | 218 bool HandleTextInputEvent(const String& text, |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
382 | 385 |
383 // Set on GestureTapDown if the |pointerdown| event corresponding to the | 386 // Set on GestureTapDown if the |pointerdown| event corresponding to the |
384 // triggering |touchstart| event was canceled. This suppresses mouse event | 387 // triggering |touchstart| event was canceled. This suppresses mouse event |
385 // firing for the current gesture sequence (i.e. until next GestureTapDown). | 388 // firing for the current gesture sequence (i.e. until next GestureTapDown). |
386 bool suppress_mouse_events_from_gestures_; | 389 bool suppress_mouse_events_from_gestures_; |
387 }; | 390 }; |
388 | 391 |
389 } // namespace blink | 392 } // namespace blink |
390 | 393 |
391 #endif // EventHandler_h | 394 #endif // EventHandler_h |
OLD | NEW |