Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Side by Side Diff: third_party/WebKit/Source/core/input/EventHandler.h

Issue 2220043002: Added PointerEvent.hasPointerCapture API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added a missing element interface. Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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*);
190
189 void elementRemoved(EventTarget*); 191 void elementRemoved(EventTarget*);
190 192
191 void setMouseDownMayStartAutoscroll() { m_mouseDownMayStartAutoscroll = true ; } 193 void setMouseDownMayStartAutoscroll() { m_mouseDownMayStartAutoscroll = true ; }
192 194
193 static WebInputEventResult mergeEventResult(WebInputEventResult resultA, Web InputEventResult resultB); 195 static WebInputEventResult mergeEventResult(WebInputEventResult resultA, Web InputEventResult resultB);
194 static WebInputEventResult toWebInputEventResult(DispatchEventResult); 196 static WebInputEventResult toWebInputEventResult(DispatchEventResult);
195 197
196 bool handleAccessKey(const PlatformKeyboardEvent&); 198 bool handleAccessKey(const PlatformKeyboardEvent&);
197 WebInputEventResult keyEvent(const PlatformKeyboardEvent&); 199 WebInputEventResult keyEvent(const PlatformKeyboardEvent&);
198 void defaultKeyboardEventHandler(KeyboardEvent*); 200 void defaultKeyboardEventHandler(KeyboardEvent*);
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
411 // firing for the current gesture sequence (i.e. until next GestureTapDown). 413 // firing for the current gesture sequence (i.e. until next GestureTapDown).
412 bool m_suppressMouseEventsFromGestures; 414 bool m_suppressMouseEventsFromGestures;
413 415
414 // TODO(nzolghadr): Temporary until further refactoring 416 // TODO(nzolghadr): Temporary until further refactoring
415 friend GestureManager; 417 friend GestureManager;
416 }; 418 };
417 419
418 } // namespace blink 420 } // namespace blink
419 421
420 #endif // EventHandler_h 422 #endif // EventHandler_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/Element.idl ('k') | third_party/WebKit/Source/core/input/EventHandler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698