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